SimuRootFileManager
#include "SimuRootFileManager.hh" |
SimuRootFileManager
class description - source file - inheritance tree (.pdf)
class SimuRootFileManager : public EsafConfigurable, public EsafMsgSource
Inheritance Chart: | |||||||||||
|
public:
SimuRootFileManager() virtual ~SimuRootFileManager() virtual Bool_t Build() static TClass* Class() virtual const char* ClassName() const virtual const char* ClassType() const virtual void Clear() virtual Bool_t Close() Int_t FillEvent() EEvent* GetEvent() TFile* GetFile() ERunParameters* GetRunPars() virtual TClass* IsA() const Bool_t IsEventLocked() void LockEvent() virtual Bool_t Open(const char* = "0") virtual Bool_t Open(const string& name) void ResetRunPars() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void UnlockEvent()
Data Members
private:
EEvent* fEvent ERunParameters* fRunPars TTree* fTree TRef fRunParsRef TFile* fFile TString fFileName Long64_t fMaxFileSize Int_t fFileNumber UInt_t fEventBranches Bool_t fDetectorPhotonFillable Bool_t fDetectorNightGlowFillable Bool_t fNightGlowFillable
Class Description
Simu Rootfile Manager ===================== Manager of the simulation root file. This object handles the creation and the filling of the rootfile according to its configuration file. The manager controls creation and branching of the TTree and also is in charge to split the file when its size is bigger than fMaxSize. Config file parameters ====================== fSaveShower [bool]: enable/disable EShower object in EEvent fSaveAtmosphere [bool]: enable/disable EAtmosphere object in EEvent fSaveDetector [bool]: enable/disable EDetector object in EEvent fSaveChipTrackTrigger [bool]: enable/disable EChipTrackTrigger in EEvent fSaveLblTrackTrigger [bool]: enable/disable ELblTrackTrigger in EEvent fDetector.fPhotonFillable [bool]: enable/disable EPhotons in EEvent fDetector.fNightGlowFillable [bool]: enable/disable all NightGlow EFee hits in EEvent fSaveRunTree [bool]: enable/disable runtree in rootfile fMaxFileSize [Mbyte]: Maximum file size.
SimuRootFileManager() : fEvent(0), fRunPars(0), fTree(0), fFile(0), fFileNumber(0)
Constructor
~SimuRootFileManager()
Destructor
Bool_t Build()
build event and run parameters and set the static pointers
void Clear()
Clear all objects
Bool_t Open( const char* name )
Open a new rootfile and set the trees up
void LockEvent()
Branch the tree but not the run parameters. The run parameters will be added by hand in the Unlock
void UnlockEvent()
Disconnects the Event from the tree.
Bool_t Close()
Save all trees and close current rootfile
Int_t FillEvent()
Calls fTree->Fill and updates fFile if nedded. It is forseen that it will also handle automatic file splitting when approacing to size limit.
void ResetRunPars()
Reset run parameters and their reference
Inline Functions
Bool_t Open(const string& name) TFile* GetFile() EEvent* GetEvent() ERunParameters* GetRunPars() Bool_t IsEventLocked() const char* ClassType() const const char* ClassName() const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)