#include <SoHepMCSvc.h>
Inheritance diagram for SoHepMCSvc:
Public Types | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
enum | Status |
Public Member Functions | |
virtual StatusCode | initialize () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual StatusCode | finalize () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
virtual const std::string & | name () const |
virtual const InterfaceID & | type () const |
virtual StatusCode | configure () |
virtual StatusCode | start () |
virtual StatusCode | stop () |
virtual StatusCode | terminate () |
virtual Gaudi::StateMachine::State | FSMState () const |
virtual Gaudi::StateMachine::State | targetFSMState () const |
virtual StatusCode | reinitialize () |
virtual StatusCode | restart () |
virtual StatusCode | sysInitialize () |
virtual StatusCode | sysStart () |
virtual StatusCode | sysStop () |
virtual StatusCode | sysFinalize () |
virtual StatusCode | sysReinitialize () |
virtual StatusCode | sysRestart () |
virtual StatusCode | setProperty (const Property &p) |
virtual StatusCode | setProperty (const std::string &s) |
virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
virtual StatusCode | getProperty (Property *p) const |
virtual const Property & | getProperty (const std::string &name) const |
virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
virtual const std::vector< Property * > & | getProperties () const |
ISvcLocator * | serviceLocator () const |
IMessageSvc * | msgSvc () |
IMessageSvc * | msgSvc () const |
IMessageSvc * | messageService () |
IMessageSvc * | messageService () const |
StatusCode | setProperties () |
StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
IAuditorSvc * | auditorSvc () const |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
static const InterfaceID & | interfaceID () |
static const InterfaceID & | interfaceID () |
Public Attributes | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
Protected Member Functions | |
SoHepMCSvc (const std::string &, ISvcLocator *) | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual | ~SoHepMCSvc () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
int | outputLevel () const |
Protected Attributes | |
IUserInterfaceSvc * | m_uiSvc |
IDataProviderSvc * | m_eventDataSvc |
IParticlePropertySvc * | m_particlePropertySvc |
IntegerProperty | m_outputLevel |
Gaudi::StateMachine::State | m_state |
Gaudi::StateMachine::State | m_targetState |
IMessageSvc * | m_messageSvc |
Friends | |
class | SvcFactory< SoHepMCSvc > |
friend class | ServiceManager |
Definition at line 14 of file SoHepMCSvc.h.
SoHepMCSvc::SoHepMCSvc | ( | const std::string & | , | |
ISvcLocator * | ||||
) | [protected] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 19 of file SoHepMCSvc.cpp.
00023 :Service(aName,aSvcLoc) 00024 ,m_uiSvc(0) 00025 ,m_eventDataSvc(0) 00026 ,m_particlePropertySvc(0) 00029 { 00030 }
SoHepMCSvc::~SoHepMCSvc | ( | ) | [protected, virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 32 of file SoHepMCSvc.cpp.
StatusCode SoHepMCSvc::initialize | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Reimplemented from Service.
Definition at line 39 of file SoHepMCSvc.cpp.
00043 { 00044 StatusCode status = Service::initialize(); 00045 if( status.isFailure() ) return status; 00046 00047 MsgStream log(messageService(), Service::name()); 00048 00049 log << MSG::INFO << " SoHepMCSvc::initialize " << endreq; 00050 00051 setProperties(); 00052 00053 if(!serviceLocator()) { 00054 log << MSG::INFO << " service locator not found " << endreq; 00055 return StatusCode::FAILURE; 00056 } 00057 00058 // Get the Detector data service : 00059 00060 if(m_uiSvc) { 00061 m_uiSvc->release(); 00062 m_uiSvc = 0; 00063 } 00064 status = service("OnXSvc",m_uiSvc,true); 00065 if(status.isFailure() || !m_uiSvc) { 00066 log << MSG::INFO << " OnXSvc not found " << endreq; 00067 return StatusCode::FAILURE; 00068 } 00069 m_uiSvc->addRef(); 00070 00071 if(m_eventDataSvc) { 00072 m_eventDataSvc->release(); 00073 m_eventDataSvc = 0; 00074 } 00075 status = service("EventDataSvc" , m_eventDataSvc , true ); 00076 if(status.isFailure() || !m_eventDataSvc) { 00077 log << MSG::INFO << " EventDataSvc not found " << endreq; 00078 } 00079 m_eventDataSvc->addRef(); 00080 00081 if(m_particlePropertySvc) { 00082 m_particlePropertySvc->release(); 00083 m_particlePropertySvc = 0; 00084 } 00085 status = service("ParticlePropertySvc" , m_particlePropertySvc , true ); 00086 if(status.isFailure() || !m_particlePropertySvc) { 00087 log << MSG::INFO << " ParticlePropertySvc not found " << endreq; 00088 } 00089 m_particlePropertySvc->addRef(); 00090 00091 00092 if(m_eventDataSvc) { 00093 if(m_particlePropertySvc) { 00094 m_uiSvc->addType(new GenParticleType(m_particlePropertySvc, 00095 m_eventDataSvc, 00096 m_uiSvc)); 00097 } 00098 } 00099 00100 return status; 00101 }
StatusCode SoHepMCSvc::finalize | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Reimplemented from Service.
Definition at line 103 of file SoHepMCSvc.cpp.
00107 { 00108 if(m_uiSvc) { 00109 m_uiSvc->release(); 00110 m_uiSvc = 0; 00111 } 00112 if(m_eventDataSvc) { 00113 m_eventDataSvc->release(); 00114 m_eventDataSvc = 0; 00115 } 00116 if(m_particlePropertySvc) { 00117 m_particlePropertySvc->release(); 00118 m_particlePropertySvc = 0; 00119 } 00120 00121 MsgStream log(messageService(), Service::name()); 00122 log << MSG::INFO << "SoHepMCSvc finalized successfully" << endreq; 00123 return StatusCode::SUCCESS; 00124 }
friend class SvcFactory< SoHepMCSvc > [friend] |
Definition at line 22 of file SoHepMCSvc.h.
IUserInterfaceSvc* SoHepMCSvc::m_uiSvc [protected] |
Definition at line 23 of file SoHepMCSvc.h.
IDataProviderSvc* SoHepMCSvc::m_eventDataSvc [protected] |
Definition at line 24 of file SoHepMCSvc.h.
IParticlePropertySvc* SoHepMCSvc::m_particlePropertySvc [protected] |
Definition at line 25 of file SoHepMCSvc.h.