CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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"
9 
10 class TEcnaRootFile : public TObject {
11 
12 protected:
13 
14  void Init();
15 
16 public:
17 
18  TString fRootFileName; // Treename of fRootFile
19  TString fRootFileStatus; // Status of fRootFile
20  TFile *fRootFile; // Root file for CNA
21  Int_t fCounterBytesCnaResults; // Counter of bytes in fCnaResultsTree
22  Int_t fNbEntries; // Nb of entries in fCnaResultsTree
23  TTree *fCnaResultsTree; // Tree containing the individual results
24  // individual result = equivalent
25  // of one ASCII file
26 
27  TBranch *fCnaResultsBranch; // Branch of the individual results
28  TEcnaResultType *fCnaIndivResult; // One of the individual results
29  // in the branch fCnaResultsBranch
30 
31  TEcnaRootFile();
32  TEcnaRootFile(const Text_t*);
33  TEcnaRootFile(const Text_t*, TString);
35  void CloseFile();
36  Bool_t OpenR(const Text_t* = "");
37  Bool_t OpenW(const Text_t* = "");
38  Bool_t ReadElement(Int_t);
39  Bool_t ReadElement(CnaResultTyp,Int_t);
41  ClassDef(TEcnaRootFile,1) //Root file of CNA
42 };
43 
45 
46 #endif
TEcnaResultType * fCnaIndivResult
Definition: TEcnaRootFile.h:28
Bool_t OpenR(const Text_t *="")
CnaResultTyp
TBranch * fCnaResultsBranch
Definition: TEcnaRootFile.h:27
TString fRootFileStatus
Definition: TEcnaRootFile.h:19
Int_t fCounterBytesCnaResults
Definition: TEcnaRootFile.h:21
Int_t ReadElementNextEntryNumber(CnaResultTyp, Int_t)
TString fRootFileName
Definition: TEcnaRootFile.h:18
R__EXTERN TCnaRootFile * gCnaRootFile
Definition: TCnaRootFile.h:43
Bool_t ReadElement(Int_t)
Bool_t OpenW(const Text_t *="")
TTree * fCnaResultsTree
Definition: TEcnaRootFile.h:23
TFile * fRootFile
Definition: TEcnaRootFile.h:20