#include <BesTDSWriter.hh>
Definition at line 21 of file BesTDSWriter.hh.
◆ BesTDSWriter()
BesTDSWriter::BesTDSWriter |
( |
| ) |
|
Definition at line 22 of file BesTDSWriter.cc.
23{
24 m_rawWriter = new BesRawDataWriter;
25 m_mcWriter = new BesMcTruthWriter;
26}
◆ ~BesTDSWriter()
BesTDSWriter::~BesTDSWriter |
( |
| ) |
|
Definition at line 28 of file BesTDSWriter.cc.
29{
30 if(m_rawWriter)
31 delete m_rawWriter;
32 if(m_mcWriter)
33 delete m_mcWriter;
34}
◆ SaveAll()
void BesTDSWriter::SaveAll |
( |
const G4Event * | evt, |
|
|
int | runNumber ) |
Definition at line 36 of file BesTDSWriter.cc.
37{
38
39 ISvcLocator* svcLocator = Gaudi::svcLocator();
40 IDataProviderSvc* evtSvc;
41 StatusCode sc=svcLocator->service("EventDataSvc", evtSvc);
42 if (sc.isFailure())
43 G4cout<<"Could not accesss EventDataSvc!"<<G4endl;
44
45
46
47
48
49
50
51
52
53
54
55
56
57 SmartDataPtr<Event::EventHeader> aEventHeader(evtSvc,"/Event/EventHeader");
58 G4int run=aEventHeader->runNumber();
59 G4int event=aEventHeader->eventNumber();
60
61
62
63
64 m_rawWriter->SaveDigits();
65
66
67 m_mcWriter->SaveMcTruth();
68
69}
Referenced by BesEventAction::EndOfEventAction().
The documentation for this class was generated from the following files: