CMS 3D CMS Logo

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 
20 
35 
36 class TEcnaHeader : public TNamed {
37 
38 protected:
39 
40  void Init();
41 
42 public:
43 
44  Int_t fCnew;
45  Int_t fCdelete;
46 
47  Int_t fgMaxCar; // Max nb of caracters for char*
48 
49  //....... Header parameters
50  TString fTypAna; // name of the analysis (default = "std")
51  Int_t fNbOfSamples; // Number of samples for calculations
52  Int_t fRunNumber; // Run number
53  Int_t fFirstReqEvtNumber; // First requested event number
54  Int_t fLastReqEvtNumber; // Number of taken evts
55  Int_t fReqNbOfEvts; // Requested number of events
56  Int_t fStex; // Stex number
57 
58  time_t fStartTime; // Start time
59  time_t fStopTime; // Stop time
60  TString fStartDate; // Start date
61  TString fStopDate; // Stop date
62 
63  Int_t fRunType; // run type
64 
65  //....... Header counters
66  Int_t fStinNumbersCalc; // Nb of entries of type StinNumbers
67  Int_t fNbOfEvtsCalc; // Nb of entries of type NbOfEvts
68 
69  Int_t fAdcEvtCalc; // *Nb of entries of type SampTime
70  Int_t fMSpCalc; // *Nb of entries of type Ev
71  Int_t fSSpCalc; // *Nb of entries of type Var
72  Int_t fAvTnoCalc; // *Nb of entries of type AvTotn
73  Int_t fAvLfnCalc; // *Nb of entries of type AvLfn
74  Int_t fAvHfnCalc; // *Nb of entries of type AvHfn
75 
76  Int_t fCovCssCalc; // *Nb of entries of type CovCss
77  Int_t fCorCssCalc; // *Nb of entries of type CorCss
78  Int_t fHfCovCalc; // *Nb of entries of type HfCov
79  Int_t fHfCorCalc; // *Nb of entries of type HfCor
80  Int_t fLfCovCalc; // *Nb of entries of type LfCov
81  Int_t fLfCorCalc; // *Nb of entries of type LfCor
82  Int_t fLFccMoStinsCalc; // *Nb of entries of type LFccMoStins
83  Int_t fHFccMoStinsCalc; // *Nb of entries of type HFccMoStins
84  Int_t fPedCalc; // *Nb of entries of type Ped
85  Int_t fTnoCalc; // *Nb of entries of type Tno
86  Int_t fMeanCorssCalc; // *Nb of entries of type EvCorCss
87  Int_t fLfnCalc; // *Nb of entries of type Lfn
88  Int_t fHfnCalc; // *Nb of entries of type Hfn
89  Int_t fSigCorssCalc; // *Nb of entries of type SigCorCss
90 
91  Int_t fAvPedCalc; // *Nb of entries of type AvPed
92  Int_t fAvMeanCorssCalc; // *Nb of entries of type AvEvCorss
93  Int_t fAvSigCorssCalc; // *Nb of entries of type AvSigCorss
94 
95  //------------------------------- methods
96  TEcnaHeader();
97  TEcnaHeader(TEcnaObject*, const Text_t*, const Text_t*);
98  //TEcnaHeader(const Text_t*, const Text_t*);
99  ~TEcnaHeader();
100 
101 // void HeaderParameters(Text_t*, Text_t*, const TString&, const Int_t&,
102 // const Int_t&, const Int_t&, const Int_t&, const Int_t&,
103 // const Int_t&);
104 // void HeaderParameters(Text_t*, Text_t*, const TString&, const Int_t&,
105 // const Int_t&, const Int_t&, const Int_t&, const Int_t&);
106 
107  void HeaderParameters( const TString&, const Int_t&, const Int_t&,
108  const Int_t&, const Int_t&, const Int_t&, const Int_t&);
109  void HeaderParameters( const TString&, const Int_t&, const Int_t&,
110  const Int_t&, const Int_t&, const Int_t&, const Int_t&, const Int_t&);
111 
112  using TNamed::Print;
113  void Print();
114  ClassDef(TEcnaHeader,1) //Header of CNA ROOT file
115 };
116 #endif
Int_t fCdelete
Definition: TEcnaHeader.h:45
Int_t fStex
Definition: TEcnaHeader.h:56
Int_t fHFccMoStinsCalc
Definition: TEcnaHeader.h:83
Int_t fAvLfnCalc
Definition: TEcnaHeader.h:73
Int_t fSSpCalc
Definition: TEcnaHeader.h:71
void Print()
Definition: TEcnaHeader.cc:144
Int_t fRunType
Definition: TEcnaHeader.h:63
Int_t fHfnCalc
Definition: TEcnaHeader.h:88
Int_t fAvMeanCorssCalc
Definition: TEcnaHeader.h:92
Int_t fHfCorCalc
Definition: TEcnaHeader.h:79
Int_t fReqNbOfEvts
Definition: TEcnaHeader.h:55
Int_t fMSpCalc
Definition: TEcnaHeader.h:70
Int_t fNbOfEvtsCalc
Definition: TEcnaHeader.h:67
Int_t fNbOfSamples
Definition: TEcnaHeader.h:51
TString fStopDate
Definition: TEcnaHeader.h:61
Int_t fMeanCorssCalc
Definition: TEcnaHeader.h:86
Int_t fHfCovCalc
Definition: TEcnaHeader.h:78
Int_t fgMaxCar
Definition: TEcnaHeader.h:47
Int_t fCorCssCalc
Definition: TEcnaHeader.h:77
Int_t fAvTnoCalc
Definition: TEcnaHeader.h:72
Int_t fCnew
Definition: TEcnaHeader.h:44
Int_t fPedCalc
Definition: TEcnaHeader.h:84
Int_t fAvHfnCalc
Definition: TEcnaHeader.h:74
TString fStartDate
Definition: TEcnaHeader.h:60
TString fTypAna
Definition: TEcnaHeader.h:50
void Init()
Definition: TEcnaHeader.cc:38
Int_t fAvPedCalc
Definition: TEcnaHeader.h:91
Int_t fFirstReqEvtNumber
Definition: TEcnaHeader.h:53
Int_t fLfCorCalc
Definition: TEcnaHeader.h:81
Int_t fAdcEvtCalc
Definition: TEcnaHeader.h:69
Int_t fTnoCalc
Definition: TEcnaHeader.h:85
time_t fStartTime
Definition: TEcnaHeader.h:58
time_t fStopTime
Definition: TEcnaHeader.h:59
Int_t fLfCovCalc
Definition: TEcnaHeader.h:80
Int_t fLFccMoStinsCalc
Definition: TEcnaHeader.h:82
Int_t fLastReqEvtNumber
Definition: TEcnaHeader.h:54
void HeaderParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Definition: TEcnaHeader.cc:126
Int_t fRunNumber
Definition: TEcnaHeader.h:52
Int_t fSigCorssCalc
Definition: TEcnaHeader.h:89
Int_t fLfnCalc
Definition: TEcnaHeader.h:87
Int_t fStinNumbersCalc
Definition: TEcnaHeader.h:66
Int_t fAvSigCorssCalc
Definition: TEcnaHeader.h:93
Int_t fCovCssCalc
Definition: TEcnaHeader.h:76