4 #ifndef EDepSim_RootPersistencyManager_hh_seen 5 #define EDepSim_RootPersistencyManager_hh_seen 19 namespace EDepSim {
class RootPersistencyManager;}
37 virtual G4bool
Store(
const G4Event* anEvent);
38 virtual G4bool
Store(
const G4Run* aRun);
39 virtual G4bool
Store(
const G4VPhysicalVolume* aWorld);
42 virtual G4bool
Retrieve(G4Event *&
e) {e=NULL;
return false;}
43 virtual G4bool
Retrieve(G4Run* &
r) {r=NULL;
return false;}
44 virtual G4bool
Retrieve(G4VPhysicalVolume* &
w) {w=NULL;
return false;}
48 virtual G4bool
Open(G4String dbname);
49 virtual G4bool
Close(
void);
int fEventsNotSaved
The number of events saved to the output file since the last write.
virtual G4bool Open(G4String dbname)
virtual ~RootPersistencyManager()
virtual G4bool Retrieve(G4VPhysicalVolume *&w)
void MakeMCHeader(const G4Event *src)
Make the MC Header and add it to truth.
virtual G4bool Store(const G4Event *anEvent)
Stores an event to the output file.
Construct a module from components.
TFile * GetTFile() const
Return a pointer to the current TFile.
TFile * fOutput
The ROOT output file that events are saved into.
virtual G4bool Close(void)
Make sure the output file is closed.
virtual G4bool Retrieve(G4Event *&e)
Retrieve information from a file. These are not implemented.
virtual G4bool Retrieve(G4Run *&r)
TTree * fEventTree
The event tree that contains the output events.