CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TEcnaHeader.h
Go to the documentation of this file.
1 #ifndef ROOT_TEcnaHeader
2 #define ROOT_TEcnaHeader
3 
5 // //
6 // TEcnaHeader Header of CNA ROOT file //
7 // //
8 // //
9 // //
11 #include "TROOT.h"
12 #include "TObject.h"
13 #include "TString.h"
14 #include "TNamed.h"
15 #include "Riostream.h"
16 #include <time.h>
17 #include <TMath.h>
18 
19 class TEcnaHeader : public TNamed {
20 
21 protected:
22 
23  void Init();
24 
25 public:
26 
27  Int_t fCnew;
28  Int_t fCdelete;
29 
30  Int_t fgMaxCar; // Max nb of caracters for char*
31 
32  //....... Header parameters
33  TString fTypAna; // name of the analysis (default = "std")
34  Int_t fNbOfSamples; // Number of samples for calculations
35  Int_t fRunNumber; // Run number
36  Int_t fFirstReqEvtNumber; // First requested event number
37  Int_t fLastReqEvtNumber; // Number of taken evts
38  Int_t fReqNbOfEvts; // Requested number of events
39  Int_t fStex; // Stex number
40 
41  time_t fStartTime; // Start time
42  time_t fStopTime; // Stop time
43  TString fStartDate; // Start date
44  TString fStopDate; // Stop date
45 
46  Int_t fRunType; // run type
47 
48  //....... Header counters
49  Int_t fStinNumbersCalc; // Nb of entries of type StinNumbers
50  Int_t fNbOfEvtsCalc; // Nb of entries of type NbOfEvts
51 
52  Int_t fAdcEvtCalc; // *Nb of entries of type SampTime
53  Int_t fMSpCalc; // *Nb of entries of type Ev
54  Int_t fSSpCalc; // *Nb of entries of type Var
55  Int_t fAvTnoCalc; // *Nb of entries of type AvTotn
56  Int_t fAvLfnCalc; // *Nb of entries of type AvLfn
57  Int_t fAvHfnCalc; // *Nb of entries of type AvHfn
58 
59  Int_t fCovCssCalc; // *Nb of entries of type CovCss
60  Int_t fCorCssCalc; // *Nb of entries of type CorCss
61  Int_t fHfCovCalc; // *Nb of entries of type HfCov
62  Int_t fHfCorCalc; // *Nb of entries of type HfCor
63  Int_t fLfCovCalc; // *Nb of entries of type LfCov
64  Int_t fLfCorCalc; // *Nb of entries of type LfCor
65  Int_t fLFccMoStinsCalc; // *Nb of entries of type LFccMoStins
66  Int_t fHFccMoStinsCalc; // *Nb of entries of type HFccMoStins
67  Int_t fPedCalc; // *Nb of entries of type Ped
68  Int_t fTnoCalc; // *Nb of entries of type Tno
69  Int_t fMeanCorssCalc; // *Nb of entries of type EvCorCss
70  Int_t fLfnCalc; // *Nb of entries of type Lfn
71  Int_t fHfnCalc; // *Nb of entries of type Hfn
72  Int_t fSigCorssCalc; // *Nb of entries of type SigCorCss
73 
74  Int_t fAvPedCalc; // *Nb of entries of type AvPed
75  Int_t fAvMeanCorssCalc; // *Nb of entries of type AvEvCorss
76  Int_t fAvSigCorssCalc; // *Nb of entries of type AvSigCorss
77 
78  //------------------------------- methods
79  TEcnaHeader();
80  TEcnaHeader(const Text_t*, const Text_t*);
81  ~TEcnaHeader();
82 
83 // void HeaderParameters(Text_t*, Text_t*, TString, const Int_t&,
84 // const Int_t&, const Int_t&, const Int_t&, const Int_t&,
85 // const Int_t&);
86 // void HeaderParameters(Text_t*, Text_t*, TString, const Int_t&,
87 // const Int_t&, const Int_t&, const Int_t&, const Int_t&);
88 
89  void HeaderParameters( TString, const Int_t&, const Int_t&,
90  const Int_t&, const Int_t&, const Int_t&, const Int_t&);
91  void HeaderParameters( TString, const Int_t&, const Int_t&,
92  const Int_t&, const Int_t&, const Int_t&, const Int_t&, const Int_t&);
93 
94  void Print();
95  ClassDef(TEcnaHeader,1) //Header of CNA ROOT file
96 };
97 #endif
Int_t fCdelete
Definition: TEcnaHeader.h:28
Int_t fStex
Definition: TEcnaHeader.h:39
Int_t fHFccMoStinsCalc
Definition: TEcnaHeader.h:66
Int_t fAvLfnCalc
Definition: TEcnaHeader.h:56
Int_t fSSpCalc
Definition: TEcnaHeader.h:54
void Print()
Definition: TEcnaHeader.cc:131
Int_t fRunType
Definition: TEcnaHeader.h:46
Int_t fHfnCalc
Definition: TEcnaHeader.h:71
Int_t fAvMeanCorssCalc
Definition: TEcnaHeader.h:75
Int_t fHfCorCalc
Definition: TEcnaHeader.h:62
Int_t fReqNbOfEvts
Definition: TEcnaHeader.h:38
Int_t fMSpCalc
Definition: TEcnaHeader.h:53
Int_t fNbOfEvtsCalc
Definition: TEcnaHeader.h:50
Int_t fNbOfSamples
Definition: TEcnaHeader.h:34
TString fStopDate
Definition: TEcnaHeader.h:44
Int_t fMeanCorssCalc
Definition: TEcnaHeader.h:69
Int_t fHfCovCalc
Definition: TEcnaHeader.h:61
Int_t fgMaxCar
Definition: TEcnaHeader.h:30
Int_t fCorCssCalc
Definition: TEcnaHeader.h:60
Int_t fAvTnoCalc
Definition: TEcnaHeader.h:55
Int_t fCnew
Definition: TEcnaHeader.h:27
Int_t fPedCalc
Definition: TEcnaHeader.h:67
Int_t fAvHfnCalc
Definition: TEcnaHeader.h:57
TString fStartDate
Definition: TEcnaHeader.h:43
TString fTypAna
Definition: TEcnaHeader.h:33
void Init()
Definition: TEcnaHeader.cc:28
Int_t fAvPedCalc
Definition: TEcnaHeader.h:74
Int_t fFirstReqEvtNumber
Definition: TEcnaHeader.h:36
Int_t fLfCorCalc
Definition: TEcnaHeader.h:64
Int_t fAdcEvtCalc
Definition: TEcnaHeader.h:52
Int_t fTnoCalc
Definition: TEcnaHeader.h:68
time_t fStartTime
Definition: TEcnaHeader.h:41
time_t fStopTime
Definition: TEcnaHeader.h:42
Int_t fLfCovCalc
Definition: TEcnaHeader.h:63
Int_t fLFccMoStinsCalc
Definition: TEcnaHeader.h:65
Int_t fLastReqEvtNumber
Definition: TEcnaHeader.h:37
void HeaderParameters(TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Definition: TEcnaHeader.cc:114
Int_t fRunNumber
Definition: TEcnaHeader.h:35
Int_t fSigCorssCalc
Definition: TEcnaHeader.h:72
Int_t fLfnCalc
Definition: TEcnaHeader.h:70
Int_t fStinNumbersCalc
Definition: TEcnaHeader.h:49
Int_t fAvSigCorssCalc
Definition: TEcnaHeader.h:76
Int_t fCovCssCalc
Definition: TEcnaHeader.h:59