#include <BesHepMCInterface.h>
◆ BesHepMCInterface() [1/2]
BesHepMCInterface::BesHepMCInterface |
( |
| ) |
|
◆ ~BesHepMCInterface() [1/2]
BesHepMCInterface::~BesHepMCInterface |
( |
| ) |
|
◆ BesHepMCInterface() [2/2]
BesHepMCInterface::BesHepMCInterface |
( |
| ) |
|
◆ ~BesHepMCInterface() [2/2]
BesHepMCInterface::~BesHepMCInterface |
( |
| ) |
|
◆ GenerateHepMCEvent() [1/2]
HepMC::GenEvent * BesHepMCInterface::GenerateHepMCEvent |
( |
| ) |
|
|
virtual |
Reimplemented from G4HepMCInterface.
Definition at line 21 of file BesHepMCInterface.cpp.
22{
23
24 if (p_evtSvc == 0) {
25
26 ISvcLocator* svcLocator = Gaudi::svcLocator();
27 StatusCode sc=svcLocator->service("EventDataSvc", p_evtSvc);
28 if (sc.isFailure())
29 {
30
31 }
32 }
34
35
36 SmartDataPtr<McGenEventCol> mcCollptr( p_evtSvc, "/Event/Gen");
37
38 if ( mcCollptr != 0 ) {
39
40
41 n = mcCollptr->size();
42
43
44
45 McGenEventCol::const_iterator it = mcCollptr->begin();
46
48
49
50
51 HepMC::GenEvent *p_evt;
52
53
55
56
57
58
59
60
61
62
63
64 return p_evt;
65 }
66
67 else {
68 std::cout << "no McGenEventCollection found." << std::endl;
69 }
70 return 0;
71}
GenEvent * getGenEvt() const
Referenced by G4SvcRunManager::GenerateEvent().
◆ GenerateHepMCEvent() [2/2]
HepMC::GenEvent * BesHepMCInterface::GenerateHepMCEvent |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: