17 #include <TGeoManager.h> 38 EDepSimLog(
"EDepSim::RootPersistencyManager::Open " 39 <<
"-- Delete current file pointer" );
50 "Energy Deposition for Simulated Events");
53 fEventTree->Branch(
"Event",
"TG4Event",&pEvent);
63 <<
"-- No Output File");
80 <<
"-- No Output File");
100 <<
"-- No Output File");
104 EDepSimError(
"EDepSim::RootPersistencyManage::Store(world)" 105 <<
" -- Cannot be run before /edep/update");
109 gGeoManager->Write();
#define EDepSimLog(outStream)
int fEventsNotSaved
The number of events saved to the output file since the last write.
virtual G4bool Open(G4String dbname)
virtual G4String GetFilename(void) const
Return the output file name.
virtual ~RootPersistencyManager()
virtual G4bool Store(const G4Event *anEvent)
Stores an event to the output file.
Construct a module from components.
TG4Event fEventSummary
A summary of the primary vertices in the event.
void SetFilename(G4String file)
TFile * fOutput
The ROOT output file that events are saved into.
virtual G4bool Close(void)
Make sure the output file is closed.
#define EDepSimError(outStream)
TTree * fEventTree
The event tree that contains the output events.
void UpdateSummaries(const G4Event *event)
Update the event summary fields.