#include <EDepSimRootPersistencyManager.hh>
Public Member Functions | |
RootPersistencyManager () | |
virtual | ~RootPersistencyManager () |
bool | IsOpen () |
TFile * | GetTFile () const |
Return a pointer to the current TFile. More... | |
virtual G4bool | Store (const G4Event *anEvent) |
Stores an event to the output file. More... | |
virtual G4bool | Store (const G4Run *aRun) |
virtual G4bool | Store (const G4VPhysicalVolume *aWorld) |
virtual G4bool | Retrieve (G4Event *&e) |
Retrieve information from a file. These are not implemented. More... | |
virtual G4bool | Retrieve (G4Run *&r) |
virtual G4bool | Retrieve (G4VPhysicalVolume *&w) |
virtual G4bool | Open (G4String dbname) |
virtual G4bool | Close (void) |
Make sure the output file is closed. More... | |
Public Member Functions inherited from EDepSim::PersistencyManager | |
PersistencyManager () | |
virtual | ~PersistencyManager () |
const TG4Event & | GetEventSummary () |
const std::vector< TG4PrimaryVertex > & | GetPrimaries () const |
const std::vector< TG4Trajectory > & | GetTrajectories () const |
const TG4HitSegmentDetectors & | GetSegmentDetectors () const |
virtual G4String | GetFilename (void) const |
Return the output file name. More... | |
virtual void | SetLengthThreshold (G4double thresh) |
virtual G4double | GetLengthThreshold () const |
Get the threshold for length in a sensitive detector. More... | |
virtual void | SetGammaThreshold (G4double thresh) |
virtual G4double | GetGammaThreshold () const |
virtual void | SetNeutronThreshold (G4double thresh) |
virtual G4double | GetNeutronThreshold () const |
virtual void | SetTrajectoryPointAccuracy (double acc) |
virtual double | GetTrajectoryPointAccuracy (void) const |
virtual void | SetTrajectoryPointDeposit (double dep) |
virtual double | GetTrajectoryPointDeposit (void) const |
virtual void | SetSaveAllPrimaryTrajectories (bool val) |
virtual bool | GetSaveAllPrimaryTrajectories (void) const |
virtual void | AddTrajectoryBoundary (const G4String &boundary) |
virtual void | ClearTrajectoryBoundaries () |
void | SetDetectorPartition (int partition) |
Set the detector mask. More... | |
int | GetDetectorPartition () const |
Get the detector partition. More... | |
Private Member Functions | |
void | MakeMCHeader (const G4Event *src) |
Make the MC Header and add it to truth. More... | |
Private Attributes | |
TFile * | fOutput |
The ROOT output file that events are saved into. More... | |
TTree * | fEventTree |
The event tree that contains the output events. More... | |
int | fEventsNotSaved |
The number of events saved to the output file since the last write. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from EDepSim::PersistencyManager | |
void | SetFilename (G4String file) |
void | UpdateSummaries (const G4Event *event) |
Update the event summary fields. More... | |
Protected Attributes inherited from EDepSim::PersistencyManager | |
TG4Event | fEventSummary |
A summary of the primary vertices in the event. More... | |
Definition at line 20 of file EDepSimRootPersistencyManager.hh.
EDepSim::RootPersistencyManager::RootPersistencyManager | ( | ) |
Creates a root persistency manager. Through the "magic" of G4VPersistencyManager the ultimate base class, this declared to the G4 persistency management system. You can only have one active persistency class at any give moment.
Definition at line 20 of file EDepSimRootPersistencyManager.cc.
|
virtual |
Definition at line 23 of file EDepSimRootPersistencyManager.cc.
|
virtual |
Make sure the output file is closed.
Make sure the output file is closed. This is used to make sure that any information being summarized has been saved.
Reimplemented from EDepSim::PersistencyManager.
Definition at line 60 of file EDepSimRootPersistencyManager.cc.
|
inline |
Return a pointer to the current TFile.
Definition at line 34 of file EDepSimRootPersistencyManager.hh.
bool EDepSim::RootPersistencyManager::IsOpen | ( | ) |
Return true if the ROOT output file is active. This means that the output file is open and ready to accept data.
Definition at line 28 of file EDepSimRootPersistencyManager.cc.
|
private |
Make the MC Header and add it to truth.
|
virtual |
Interface with PersistencyMessenger (open and close the database).
Reimplemented from EDepSim::PersistencyManager.
Definition at line 36 of file EDepSimRootPersistencyManager.cc.
|
inlinevirtual |
Retrieve information from a file. These are not implemented.
Reimplemented from EDepSim::PersistencyManager.
Definition at line 42 of file EDepSimRootPersistencyManager.hh.
|
inlinevirtual |
Reimplemented from EDepSim::PersistencyManager.
Definition at line 43 of file EDepSimRootPersistencyManager.hh.
|
inlinevirtual |
Reimplemented from EDepSim::PersistencyManager.
Definition at line 44 of file EDepSimRootPersistencyManager.hh.
|
virtual |
Stores an event to the output file.
Reimplemented from EDepSim::PersistencyManager.
Definition at line 77 of file EDepSimRootPersistencyManager.cc.
|
virtual |
Reimplemented from EDepSim::PersistencyManager.
Definition at line 93 of file EDepSimRootPersistencyManager.cc.
|
virtual |
Reimplemented from EDepSim::PersistencyManager.
Definition at line 97 of file EDepSimRootPersistencyManager.cc.
|
private |
The number of events saved to the output file since the last write.
Definition at line 63 of file EDepSimRootPersistencyManager.hh.
|
private |
The event tree that contains the output events.
Definition at line 60 of file EDepSimRootPersistencyManager.hh.
|
private |
The ROOT output file that events are saved into.
Definition at line 57 of file EDepSimRootPersistencyManager.hh.