CMS 3D CMS Logo

TEcnaRootFile.h
Go to the documentation of this file.
1 #ifndef CL_TEcnaRootFile
2 #define CL_TEcnaRootFile
3 
4 #include "TObject.h"
5 #include "TString.h"
6 #include "TFile.h"
7 #include "TTree.h"
8 
11 
24 
25 class TEcnaRootFile : public TObject {
26 
27 protected:
28 
29  void Init();
30 
31 public:
32 
33  TString fRootFileName; // Treename of fRootFile
34  TString fRootFileStatus; // Status of fRootFile
35 
36  TFile *fRootFile; // Root file for ECNA
37 
38  Int_t fCounterBytesCnaResults; // Counter of bytes in fCnaResultsTree
39  Int_t fNbEntries; // Nb of entries in fCnaResultsTree
40  TTree *fCnaResultsTree; // Tree containing the individual results
41  // individual result = equivalent
42  // of one ASCII file
43 
44  TBranch *fCnaResultsBranch; // Branch of the individual results
45  TEcnaResultType *fCnaIndivResult; // One of the individual results
46  // in the branch fCnaResultsBranch
47 
48  TEcnaRootFile();
49  TEcnaRootFile(TEcnaObject*, const Text_t*, const TString&);
50  TEcnaRootFile(TEcnaObject*, const Text_t*);
51 
52  TEcnaRootFile(const Text_t*);
53  TEcnaRootFile(const Text_t*, const TString&);
54 
56 
57  void ReStart(const Text_t*);
58  void ReStart(const Text_t*, const TString&);
59  void CloseFile();
60  Bool_t OpenR(const Text_t* = "");
61  Bool_t OpenW(const Text_t* = "");
62  Bool_t ReadElement(Int_t);
63  Bool_t ReadElement(CnaResultTyp,Int_t);
65  ClassDef(TEcnaRootFile,1) //Root file of CNA
66 };
67 
69 
70 #endif
TEcnaResultType * fCnaIndivResult
Definition: TEcnaRootFile.h:45
Bool_t OpenR(const Text_t *="")
CnaResultTyp
R__EXTERN TEcnaRootFile * gCnaRootFile
Definition: TEcnaRootFile.h:68
TBranch * fCnaResultsBranch
Definition: TEcnaRootFile.h:44
TString fRootFileStatus
Definition: TEcnaRootFile.h:34
Int_t fCounterBytesCnaResults
Definition: TEcnaRootFile.h:38
Int_t ReadElementNextEntryNumber(CnaResultTyp, Int_t)
TString fRootFileName
Definition: TEcnaRootFile.h:33
void ReStart(const Text_t *)
Bool_t ReadElement(Int_t)
Bool_t OpenW(const Text_t *="")
TTree * fCnaResultsTree
Definition: TEcnaRootFile.h:40
TFile * fRootFile
Definition: TEcnaRootFile.h:36