BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
G4SimEvent Class Reference

#include <G4SimEvent.h>

Inheritance diagram for G4SimEvent:

Public Member Functions

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

Friends

class AlgFactory< G4SimEvent >

Detailed Description

Definition at line 23 of file G4SimEvent.h.

Constructor & Destructor Documentation

◆ G4SimEvent()

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

Definition at line 8 of file G4SimEvent.cpp.

9 : Algorithm( name, pSvcLocator ) {}

◆ ~G4SimEvent()

virtual G4SimEvent::~G4SimEvent ( )
inlinevirtual

Definition at line 29 of file G4SimEvent.h.

29{};

Member Function Documentation

◆ execute()

StatusCode G4SimEvent::execute ( )

Definition at line 30 of file G4SimEvent.cpp.

30 {
31
32 MsgStream log( msgSvc(), name() );
33 log << MSG::VERBOSE << "Calling SimulateG4Event" << endmsg;
34
35 p_G4Svc->SimulateG4Event();
36
37 return StatusCode::SUCCESS;
38}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode G4SimEvent::finalize ( )

Definition at line 26 of file G4SimEvent.cpp.

26{ return StatusCode::SUCCESS; }

◆ initialize()

StatusCode G4SimEvent::initialize ( )

Definition at line 13 of file G4SimEvent.cpp.

13 {
14
15 MsgStream log( msgSvc(), name() );
16 StatusCode status = service( "G4Svc", p_G4Svc );
17
18 if ( status.isSuccess() ) { log << MSG::DEBUG << "got the G4Svc" << endmsg; }
19 else { log << MSG::ERROR << "could not get the G4Svc" << endmsg; }
20
21 return status;
22}

◆ AlgFactory< G4SimEvent >

friend class AlgFactory< G4SimEvent >
friend

Definition at line 1 of file G4SimEvent.h.


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