BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
IEFAlgorithm Class Referenceabstract

#include <IEFAlgorithm.h>

+ Inheritance diagram for IEFAlgorithm:

Public Member Functions

 IEFAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~IEFAlgorithm ()
 
virtual StatusCode initialize ()
 
virtual void reset ()=0
 
 IEFAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~IEFAlgorithm ()
 
virtual StatusCode initialize ()
 
virtual void reset ()=0
 

Protected Attributes

int m_output
 
float m_beam
 
PropertyMgr m_propMgr
 
bool m_run
 
HltStoreSvcm_HltStoreSvc
 
IRawDataProviderSvcm_rawDigiSvc
 
EFResultm_ef
 

Detailed Description

Constructor & Destructor Documentation

◆ IEFAlgorithm() [1/2]

IEFAlgorithm::IEFAlgorithm ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 9 of file IEFAlgorithm.cxx.

9 :
10 Algorithm(name, pSvcLocator){
11 m_propMgr.declareProperty("OutputLevel",m_output = 7777777);
12 m_propMgr.declareProperty("BeamEnergy",m_beam = 1.89);
13 //cout << "OutputLevel="<<m_output<<"; name="<<name<<endl;
14 // Get a pointer to the Job Options Service
15 IJobOptionsSvc* jobSvc;
16 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
17 jobSvc->setMyProperties("EFAlgorithm", &m_propMgr);
18
19 //cout << "OutputLevel="<<m_output<<"; name="<<name<<endl;
20 //MsgStream log(msgSvc(), name);
21 //msgSvc()->setOutputLevel(name,m_output);
22}

◆ ~IEFAlgorithm() [1/2]

virtual IEFAlgorithm::~IEFAlgorithm ( )
inlinevirtual

◆ IEFAlgorithm() [2/2]

IEFAlgorithm::IEFAlgorithm ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

◆ ~IEFAlgorithm() [2/2]

virtual IEFAlgorithm::~IEFAlgorithm ( )
inlinevirtual

Member Function Documentation

◆ initialize() [1/2]

StatusCode IEFAlgorithm::initialize ( )
virtual

Reimplemented in EFChargedTrack, EFDetectorHits, EFFlightTime, EFGlobalEnergy, EFProcessCluster, EFSectorHits, EFChargedTrack, EFDetectorHits, EFFlightTime, EFGlobalEnergy, EFProcessCluster, and EFSectorHits.

Definition at line 24 of file IEFAlgorithm.cxx.

24 {
25 MsgStream log(msgSvc(), name());
26 log << MSG::INFO << "in initialize()" << endreq;
27
28 m_run=0;
29
30 StatusCode sc = service( "HltStoreSvc", m_HltStoreSvc);
31 if( sc.isFailure() ) {
32 log << MSG::FATAL << name() << ": Unable to locate Service HltStoreSvc" << endreq;
33 return sc;
34 }
35
36 sc = m_HltStoreSvc->get("EFResult", m_ef);
37 if ( sc.isFailure() ) {
38 log << MSG::ERROR << "m_HltStoreSvc->get(EFResult) wrong" << endreq;
39 return sc;
40 }
41
42 sc = service("RawDataProviderSvc", m_rawDigiSvc);
43 if (sc == StatusCode::SUCCESS) {
44 log << MSG::INFO << "Raw Data Service Sucessfully at " << m_rawDigiSvc << " for " << name() << endreq;
45 }
46 else {
47 log << MSG::ERROR << "Raw Data Service Failed !! " << endreq;
48 return StatusCode::FAILURE;
49 }
50
51 log << MSG::DEBUG << "finish initialize()" << endreq;
52 return StatusCode::SUCCESS;
53}

Referenced by EFChargedTrack::initialize(), EFDetectorHits::initialize(), EFFlightTime::initialize(), EFGlobalEnergy::initialize(), EFProcessCluster::initialize(), and EFSectorHits::initialize().

◆ initialize() [2/2]

◆ reset() [1/2]

◆ reset() [2/2]

Member Data Documentation

◆ m_beam

◆ m_ef

◆ m_HltStoreSvc

◆ m_output

◆ m_propMgr

PropertyMgr IEFAlgorithm::m_propMgr
protected

◆ m_rawDigiSvc

◆ m_run


The documentation for this class was generated from the following files: