CGEM BOSS 6.6.5.h
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.

8 :
9 Algorithm(name, pSvcLocator)
10{
11}

◆ ~G4SimEvent()

virtual G4SimEvent::~G4SimEvent ( )
inlinevirtual

Definition at line 29 of file G4SimEvent.h.

29{};

Member Function Documentation

◆ execute()

StatusCode G4SimEvent::execute ( )

Definition at line 41 of file G4SimEvent.cpp.

41 {
42
43 MsgStream log(msgSvc(), name());
44 log << MSG::VERBOSE << "Calling SimulateG4Event" << endreq;
45
46 p_G4Svc->SimulateG4Event();
47
48 return StatusCode::SUCCESS;
49
50}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode G4SimEvent::finalize ( )

Definition at line 33 of file G4SimEvent.cpp.

33 {
34
35 return StatusCode::SUCCESS;
36
37}

◆ initialize()

StatusCode G4SimEvent::initialize ( )

Definition at line 16 of file G4SimEvent.cpp.

16 {
17
18 MsgStream log(msgSvc(), name());
19 StatusCode status = service("G4Svc",p_G4Svc);
20
21 if (status.isSuccess()) {
22 log << MSG::DEBUG << "got the G4Svc" << endreq;
23 } else {
24 log << MSG::ERROR << "could not get the G4Svc" << endreq;
25 }
26
27 return status;
28
29}

Friends And Related Symbol Documentation

◆ 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: