#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 |
HltStoreSvc * | m_HltStoreSvc |
IRawDataProviderSvc * | m_rawDigiSvc |
EFResult * | m_ef |
Definition at line 9 of file IEFAlgorithm.h.
IEFAlgorithm::IEFAlgorithm | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Definition at line 9 of file IEFAlgorithm.cxx.
References m_beam, m_output, and m_propMgr.
00009 : 00010 Algorithm(name, pSvcLocator){ 00011 m_propMgr.declareProperty("OutputLevel",m_output = 7777777); 00012 m_propMgr.declareProperty("BeamEnergy",m_beam = 1.89); 00013 //cout << "OutputLevel="<<m_output<<"; name="<<name<<endl; 00014 // Get a pointer to the Job Options Service 00015 IJobOptionsSvc* jobSvc; 00016 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc); 00017 jobSvc->setMyProperties("EFAlgorithm", &m_propMgr); 00018 00019 //cout << "OutputLevel="<<m_output<<"; name="<<name<<endl; 00020 //MsgStream log(msgSvc(), name); 00021 //msgSvc()->setOutputLevel(name,m_output); 00022 }
virtual IEFAlgorithm::~IEFAlgorithm | ( | ) | [inline, virtual] |
StatusCode IEFAlgorithm::initialize | ( | ) | [virtual] |
Reimplemented in EFChargedTrack, EFDetectorHits, EFFlightTime, EFGlobalEnergy, EFProcessCluster, and EFSectorHits.
Definition at line 24 of file IEFAlgorithm.cxx.
References Bes_Common::DEBUG, calibUtil::ERROR, Bes_Common::FATAL, HltStoreSvc::get(), Bes_Common::INFO, m_ef, m_HltStoreSvc, m_rawDigiSvc, m_run, and msgSvc().
Referenced by EFSectorHits::initialize(), EFProcessCluster::initialize(), EFGlobalEnergy::initialize(), EFFlightTime::initialize(), EFDetectorHits::initialize(), and EFChargedTrack::initialize().
00024 { 00025 MsgStream log(msgSvc(), name()); 00026 log << MSG::INFO << "in initialize()" << endreq; 00027 00028 m_run=0; 00029 00030 StatusCode sc = service( "HltStoreSvc", m_HltStoreSvc); 00031 if( sc.isFailure() ) { 00032 log << MSG::FATAL << name() << ": Unable to locate Service HltStoreSvc" << endreq; 00033 return sc; 00034 } 00035 00036 sc = m_HltStoreSvc->get("EFResult", m_ef); 00037 if ( sc.isFailure() ) { 00038 log << MSG::ERROR << "m_HltStoreSvc->get(EFResult) wrong" << endreq; 00039 return sc; 00040 } 00041 00042 sc = service("RawDataProviderSvc", m_rawDigiSvc); 00043 if (sc == StatusCode::SUCCESS) { 00044 log << MSG::INFO << "Raw Data Service Sucessfully at " << m_rawDigiSvc << " for " << name() << endreq; 00045 } 00046 else { 00047 log << MSG::ERROR << "Raw Data Service Failed !! " << endreq; 00048 return StatusCode::FAILURE; 00049 } 00050 00051 log << MSG::DEBUG << "finish initialize()" << endreq; 00052 return StatusCode::SUCCESS; 00053 }
virtual void IEFAlgorithm::reset | ( | ) | [pure virtual] |
Implemented in EFChargedTrack, EFDetectorHits, EFFlightTime, EFGlobalEnergy, EFProcessCluster, and EFSectorHits.
float IEFAlgorithm::m_beam [protected] |
Definition at line 17 of file IEFAlgorithm.h.
Referenced by EFProcessCluster::execute(), EFGlobalEnergy::execute(), IEFAlgorithm(), and EFGlobalEnergy::initialize().
EFResult* IEFAlgorithm::m_ef [protected] |
Definition at line 22 of file IEFAlgorithm.h.
Referenced by EFSectorHits::execute(), EFProcessCluster::execute(), EFGlobalEnergy::execute(), EFFlightTime::execute(), EFDetectorHits::execute(), EFChargedTrack::execute(), and initialize().
HltStoreSvc* IEFAlgorithm::m_HltStoreSvc [protected] |
Definition at line 20 of file IEFAlgorithm.h.
Referenced by EFSectorHits::execute(), initialize(), EFSectorHits::initialize(), EFProcessCluster::initialize(), EFGlobalEnergy::initialize(), EFFlightTime::initialize(), EFDetectorHits::initialize(), and EFChargedTrack::initialize().
int IEFAlgorithm::m_output [protected] |
Definition at line 16 of file IEFAlgorithm.h.
Referenced by EFChargedTrack::EFChargedTrack(), EFDetectorHits::EFDetectorHits(), EFFlightTime::EFFlightTime(), EFGlobalEnergy::EFGlobalEnergy(), EFProcessCluster::EFProcessCluster(), EFSectorHits::EFSectorHits(), and IEFAlgorithm().
PropertyMgr IEFAlgorithm::m_propMgr [protected] |
IRawDataProviderSvc* IEFAlgorithm::m_rawDigiSvc [protected] |
Definition at line 21 of file IEFAlgorithm.h.
Referenced by EFGlobalEnergy::execute(), EFFlightTime::execute(), EFDetectorHits::execute(), initialize(), and EFGlobalEnergy::initialize().
bool IEFAlgorithm::m_run [protected] |
Definition at line 19 of file IEFAlgorithm.h.
Referenced by EFSectorHits::execute(), EFProcessCluster::execute(), EFGlobalEnergy::execute(), EFFlightTime::execute(), EFDetectorHits::execute(), EFChargedTrack::execute(), initialize(), EFSectorHits::reset(), EFProcessCluster::reset(), EFGlobalEnergy::reset(), EFFlightTime::reset(), EFDetectorHits::reset(), and EFChargedTrack::reset().