BOSS 8.0.0
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

Protected Attributes

int m_output
float m_beam
PropertyMgr m_propMgr
bool m_run
HltStoreSvcm_HltStoreSvc
IRawDataProviderSvcm_rawDigiSvc
EFResultm_ef

Detailed Description

Definition at line 9 of file IEFAlgorithm.h.

Constructor & Destructor Documentation

◆ IEFAlgorithm()

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

Definition at line 9 of file IEFAlgorithm.cxx.

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}
PropertyMgr m_propMgr

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

◆ ~IEFAlgorithm()

virtual IEFAlgorithm::~IEFAlgorithm ( )
inlinevirtual

Definition at line 12 of file IEFAlgorithm.h.

12{};

Member Function Documentation

◆ initialize()

StatusCode IEFAlgorithm::initialize ( )
virtual

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

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

◆ reset()

virtual void IEFAlgorithm::reset ( )
pure virtual

Member Data Documentation

◆ m_beam

float IEFAlgorithm::m_beam
protected

◆ m_ef

◆ m_HltStoreSvc

◆ m_output

◆ m_propMgr

PropertyMgr IEFAlgorithm::m_propMgr
protected

Definition at line 19 of file IEFAlgorithm.h.

Referenced by IEFAlgorithm().

◆ m_rawDigiSvc

◆ m_run


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