#include <G4SimEvent.h>
Public Member Functions | |
G4SimEvent (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual | ~G4SimEvent () |
StatusCode | initialize () |
StatusCode | finalize () |
StatusCode | execute () |
Private Attributes | |
IG4Svc * | p_G4Svc |
Friends | |
class | AlgFactory< G4SimEvent > |
Definition at line 23 of file G4SimEvent.h.
G4SimEvent::G4SimEvent | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Definition at line 8 of file G4SimEvent.cpp.
00008 : 00009 Algorithm(name, pSvcLocator) 00010 { 00011 }
virtual G4SimEvent::~G4SimEvent | ( | ) | [inline, virtual] |
StatusCode G4SimEvent::execute | ( | ) |
Definition at line 41 of file G4SimEvent.cpp.
References msgSvc(), p_G4Svc, and VERBOSE.
00041 { 00042 00043 MsgStream log(msgSvc(), name()); 00044 log << MSG::VERBOSE << "Calling SimulateG4Event" << endreq; 00045 00046 p_G4Svc->SimulateG4Event(); 00047 00048 return StatusCode::SUCCESS; 00049 00050 }
StatusCode G4SimEvent::finalize | ( | ) |
StatusCode G4SimEvent::initialize | ( | ) |
Definition at line 16 of file G4SimEvent.cpp.
References Bes_Common::DEBUG, calibUtil::ERROR, msgSvc(), and p_G4Svc.
00016 { 00017 00018 MsgStream log(msgSvc(), name()); 00019 StatusCode status = service("G4Svc",p_G4Svc); 00020 00021 if (status.isSuccess()) { 00022 log << MSG::DEBUG << "got the G4Svc" << endreq; 00023 } else { 00024 log << MSG::ERROR << "could not get the G4Svc" << endreq; 00025 } 00026 00027 return status; 00028 00029 }
friend class AlgFactory< G4SimEvent > [friend] |
Definition at line 25 of file G4SimEvent.h.
IG4Svc* G4SimEvent::p_G4Svc [private] |