G4SimEvent Class Reference

#include <G4SimEvent.h>

List of all members.

Public Member Functions

 G4SimEvent (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~G4SimEvent ()
StatusCode initialize ()
StatusCode finalize ()
StatusCode execute ()

Private Attributes

IG4Svcp_G4Svc

Friends

class AlgFactory< G4SimEvent >


Detailed Description

Definition at line 23 of file G4SimEvent.h.


Constructor & Destructor Documentation

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]

Definition at line 29 of file G4SimEvent.h.

00029 {};


Member Function Documentation

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 (  ) 

Definition at line 33 of file G4SimEvent.cpp.

00033                                 {
00034 
00035   return StatusCode::SUCCESS;
00036 
00037 }

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 }


Friends And Related Function Documentation

friend class AlgFactory< G4SimEvent > [friend]

Definition at line 25 of file G4SimEvent.h.


Member Data Documentation

IG4Svc* G4SimEvent::p_G4Svc [private]

Definition at line 37 of file G4SimEvent.h.

Referenced by execute(), and initialize().


Generated on Tue Nov 29 23:19:37 2016 for BOSS_7.0.2 by  doxygen 1.4.7