Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

SimuRootFileManager

#include "SimuRootFileManager.hh"

SimuRootFileManager


class description - source file - inheritance tree (.pdf)

class SimuRootFileManager : public EsafConfigurable, public EsafMsgSource

Inheritance Chart:
EsafConfigurable
EsafMsgSource
<-
SimuRootFileManager

    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 FillEventsTree() Int_t FillRunTree() EEvent* GetEvent() TFile* GetFile() ERunParameters* GetRunPars() virtual TClass* IsA() const 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)

Data Members

    private:
EEvent* fEvent ERunParameters* fRunPars TTree* fEventsTree TTree* fRunTree TRef fRunParsRef TFile* fFile string fFileName Long64_t fMaxFileSize Int_t fFileNumber UInt_t fEventBranches Bool_t fDetectorPhotonFillable Bool_t fDetectorNightGlowFillable Bool_t fNightGlowFillable Bool_t fSaveRunTree

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

   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.


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


Bool_t Close()
 Save all trees and close current rootfile


Int_t FillEventsTree()
 Calls fEventsTree->Fill and updates fFile if nedded.
 It is forseen that it will also handle automatic file splitting when
 approacing to size limit.


Int_t FillRunTree()

void ResetRunPars()
 Reset run parameters and their reference




Inline Functions


                       void ~SimuRootFileManager()
        SimuRootFileManager SimuRootFileManager()
                     Bool_t Open(const string& name)
                     TFile* GetFile()
                    EEvent* GetEvent()
            ERunParameters* GetRunPars()
                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)
About Us | EUSO Official Website | Web pages created by Roberto Pesce and Alessandro Thea - Last Update 14-May-2005 21:31