CMS 3D CMS Logo

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