CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions
TEcnaHeader Class Reference

#include <TEcnaHeader.h>

Inheritance diagram for TEcnaHeader:

Public Member Functions

void HeaderParameters (const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
 
void HeaderParameters (const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
 
void Print ()
 
 TEcnaHeader ()
 
 TEcnaHeader (TEcnaObject *, const Text_t *, const Text_t *)
 
 ~TEcnaHeader () override
 

Public Attributes

Int_t fAdcEvtCalc
 
Int_t fAvHfnCalc
 
Int_t fAvLfnCalc
 
Int_t fAvMeanCorssCalc
 
Int_t fAvPedCalc
 
Int_t fAvSigCorssCalc
 
Int_t fAvTnoCalc
 
Int_t fCdelete
 
Int_t fCnew
 
Int_t fCorCssCalc
 
Int_t fCovCssCalc
 
Int_t fFirstReqEvtNumber
 
Int_t fgMaxCar
 
Int_t fHFccMoStinsCalc
 
Int_t fHfCorCalc
 
Int_t fHfCovCalc
 
Int_t fHfnCalc
 
Int_t fLastReqEvtNumber
 
Int_t fLFccMoStinsCalc
 
Int_t fLfCorCalc
 
Int_t fLfCovCalc
 
Int_t fLfnCalc
 
Int_t fMeanCorssCalc
 
Int_t fMSpCalc
 
Int_t fNbOfEvtsCalc
 
Int_t fNbOfSamples
 
Int_t fPedCalc
 
Int_t fReqNbOfEvts
 
Int_t fRunNumber
 
Int_t fRunType
 
Int_t fSigCorssCalc
 
Int_t fSSpCalc
 
TString fStartDate
 
time_t fStartTime
 
Int_t fStex
 
Int_t fStinNumbersCalc
 
TString fStopDate
 
time_t fStopTime
 
Int_t fTnoCalc
 
TString fTypAna
 

Protected Member Functions

void Init ()
 

Detailed Description


TEcnaHeader.h Update: 05/05/2012 Authors: FX Gentit, B.Fabbro (berna.nosp@m.rd.f.nosp@m.abbro.nosp@m.@cea.nosp@m..fr) DSM/IRFU/SPP CEA-Saclay Copyright: Those valid for CEA sofware

ECNA web page: http://cms-fabbro.web.cern.ch/cms-fabbro/

cna_new/Correlated_Noise_Analysis/ECNA_main_page.htm

Header of ECNA result file (.root file)

Definition at line 36 of file TEcnaHeader.h.

Constructor & Destructor Documentation

TEcnaHeader::TEcnaHeader ( )

Definition at line 16 of file TEcnaHeader.cc.

References Init().

16 { Init(); } // constructor without arguments
void Init()
Definition: TEcnaHeader.cc:37
TEcnaHeader::TEcnaHeader ( TEcnaObject pObjectManager,
const Text_t *  name,
const Text_t *  title 
)

Definition at line 18 of file TEcnaHeader.cc.

References Init(), and TEcnaObject::RegisterPointer().

18  : TNamed(name, title) {
19  // Constructor with arguments for reading ROOT file.
20  // Called in FileParameters(...) of TEcnaRead
21  // Please give a name and a title containing info about what
22  // you are doing and saving in the ROOT file
23 
24  // std::cout << "[Info Management] CLASS: TEcnaHeader. CREATE OBJECT: this = " << this << std::endl;
25 
26  Init();
27  Long_t i_this = (Long_t)this;
28  pObjectManager->RegisterPointer("TEcnaHeader", i_this);
29 }
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:100
void Init()
Definition: TEcnaHeader.cc:37
TEcnaHeader::~TEcnaHeader ( )
override

Definition at line 31 of file TEcnaHeader.cc.

31  {
32  //destructor
33 
34  // std::cout << "[Info Management] CLASS: TEcnaHeader. DESTROY OBJECT: this = " << this << std::endl;
35 }

Member Function Documentation

void TEcnaHeader::HeaderParameters ( const TString &  typ_ana,
const Int_t &  nb_of_samples,
const Int_t &  run_number,
const Int_t &  aFirstReqEvtNumber,
const Int_t &  aLastReqEvtNumber,
const Int_t &  aReqNbOfEvts,
const Int_t &  Stex 
)

Definition at line 126 of file TEcnaHeader.cc.

References fFirstReqEvtNumber, fLastReqEvtNumber, fNbOfSamples, fReqNbOfEvts, fRunNumber, fStex, fTypAna, Init(), and cmsHarvester::run_number.

Referenced by TEcnaRead::FileParameters(), and TEcnaRun::GetReadyToReadData().

132  {
133  // std::cout << "[Info Management] CLASS: TEcnaHeader. CREATE OBJECT: this = " << this << std::endl;
134 
135  Init();
136 
137  fTypAna = typ_ana;
139  fNbOfSamples = nb_of_samples;
140  fFirstReqEvtNumber = aFirstReqEvtNumber;
141  fLastReqEvtNumber = aLastReqEvtNumber;
142  fReqNbOfEvts = aReqNbOfEvts;
143  fStex = Stex;
144 }
Int_t fStex
Definition: TEcnaHeader.h:53
Int_t fReqNbOfEvts
Definition: TEcnaHeader.h:52
Int_t fNbOfSamples
Definition: TEcnaHeader.h:48
TString fTypAna
Definition: TEcnaHeader.h:47
void Init()
Definition: TEcnaHeader.cc:37
Int_t fFirstReqEvtNumber
Definition: TEcnaHeader.h:50
Int_t fLastReqEvtNumber
Definition: TEcnaHeader.h:51
Int_t fRunNumber
Definition: TEcnaHeader.h:49
void TEcnaHeader::HeaderParameters ( const TString &  typ_ana,
const Int_t &  nb_of_samples,
const Int_t &  run_number,
const Int_t &  aFirstReqEvtNumber,
const Int_t &  aLastReqEvtNumber,
const Int_t &  aReqNbOfEvts,
const Int_t &  Stex,
const Int_t &  run_type 
)

Definition at line 97 of file TEcnaHeader.cc.

References fFirstReqEvtNumber, fLastReqEvtNumber, fNbOfSamples, fReqNbOfEvts, fRunNumber, fRunType, fStex, fTypAna, Init(), and cmsHarvester::run_number.

104  {
105  // Constructor with arguments for reading DATA.
106  // Called in GetReadyToReadData(...) of TEcnaRun
107  // Please give a name and a title containing info about what
108  // you are doing and saving in the ROOT file
109 
110  // std::cout << "[Info Management] CLASS: TEcnaHeader. CREATE OBJECT: this = " << this << std::endl;
111 
112  Init();
113 
114  fTypAna = typ_ana;
116  fNbOfSamples = nb_of_samples;
117  fFirstReqEvtNumber = aFirstReqEvtNumber;
118  fLastReqEvtNumber = aLastReqEvtNumber;
119  fReqNbOfEvts = aReqNbOfEvts;
120  fStex = Stex;
121 
122  fRunType = run_type;
123 }
Int_t fStex
Definition: TEcnaHeader.h:53
Int_t fRunType
Definition: TEcnaHeader.h:60
Int_t fReqNbOfEvts
Definition: TEcnaHeader.h:52
Int_t fNbOfSamples
Definition: TEcnaHeader.h:48
TString fTypAna
Definition: TEcnaHeader.h:47
void Init()
Definition: TEcnaHeader.cc:37
Int_t fFirstReqEvtNumber
Definition: TEcnaHeader.h:50
Int_t fLastReqEvtNumber
Definition: TEcnaHeader.h:51
Int_t fRunNumber
Definition: TEcnaHeader.h:49
void TEcnaHeader::Init ( void  )
protected

Definition at line 37 of file TEcnaHeader.cc.

References fAdcEvtCalc, fAvHfnCalc, fAvLfnCalc, fAvMeanCorssCalc, fAvPedCalc, fAvSigCorssCalc, fAvTnoCalc, fCorCssCalc, fCovCssCalc, fFirstReqEvtNumber, fgMaxCar, fHFccMoStinsCalc, fHfCorCalc, fHfCovCalc, fHfnCalc, fLastReqEvtNumber, fLFccMoStinsCalc, fLfCorCalc, fLfCovCalc, fLfnCalc, fMeanCorssCalc, fMSpCalc, fNbOfEvtsCalc, fNbOfSamples, fPedCalc, fReqNbOfEvts, fRunNumber, fRunType, fSigCorssCalc, fSSpCalc, fStartDate, fStartTime, fStex, fStinNumbersCalc, fStopDate, fStopTime, fTnoCalc, and fTypAna.

Referenced by HeaderParameters(), and TEcnaHeader().

37  {
38  //Set default values in all variables and init the counters fxxxCalc
39 
40  //--------------------------------- INIT parameters
41 
42  fgMaxCar = (Int_t)512;
43 
44  //........................ RUN parameters
45 
46  fTypAna = "!Analysis name> no info";
47  fNbOfSamples = (Int_t)0;
48  fRunNumber = (Int_t)0;
49  fFirstReqEvtNumber = (Int_t)0;
50  fLastReqEvtNumber = (Int_t)0;
51  fReqNbOfEvts = (Int_t)0;
52  fStex = (Int_t)0;
53 
54  fStartTime = (time_t)0;
55  fStopTime = (time_t)0;
56 
57  Int_t MaxCar = fgMaxCar;
58  fStartDate.Resize(MaxCar);
59  fStartDate = "!Start date> no info";
60  MaxCar = fgMaxCar;
61  fStopDate.Resize(MaxCar);
62  fStopDate = "!Stop date> no info";
63 
64  fRunType = 9999999;
65 
66  //--------------------------------- INIT counters
67  fStinNumbersCalc = 0;
68  fNbOfEvtsCalc = 0;
69  fAdcEvtCalc = 0;
70  fMSpCalc = 0;
71  fSSpCalc = 0;
72 
73  fCovCssCalc = 0;
74  fCorCssCalc = 0;
75  fHfCovCalc = 0;
76  fHfCorCalc = 0;
77  fLfCovCalc = 0;
78  fLfCorCalc = 0;
79  fLFccMoStinsCalc = 0;
80  fHFccMoStinsCalc = 0;
81  fPedCalc = 0;
82  fTnoCalc = 0;
83  fMeanCorssCalc = 0;
84  fLfnCalc = 0;
85  fHfnCalc = 0;
86  fSigCorssCalc = 0;
87 
88  fAvPedCalc = 0;
89  fAvTnoCalc = 0;
90  fAvLfnCalc = 0;
91  fAvHfnCalc = 0;
92  fAvMeanCorssCalc = 0;
93  fAvSigCorssCalc = 0;
94 }
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
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 fPedCalc
Definition: TEcnaHeader.h:81
Int_t fAvHfnCalc
Definition: TEcnaHeader.h:71
TString fStartDate
Definition: TEcnaHeader.h:57
TString fTypAna
Definition: TEcnaHeader.h:47
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
Int_t fRunNumber
Definition: TEcnaHeader.h:49
Int_t fSigCorssCalc
Definition: TEcnaHeader.h:86
Int_t fLfnCalc
Definition: TEcnaHeader.h:84
Int_t fStinNumbersCalc
Definition: TEcnaHeader.h:63
Int_t fAvSigCorssCalc
Definition: TEcnaHeader.h:90
Int_t fCovCssCalc
Definition: TEcnaHeader.h:73
void TEcnaHeader::Print ( void  )

Definition at line 146 of file TEcnaHeader.cc.

References gather_cfg::cout, fAdcEvtCalc, fAvHfnCalc, fAvLfnCalc, fAvMeanCorssCalc, fAvPedCalc, fAvSigCorssCalc, fAvTnoCalc, fCorCssCalc, fCovCssCalc, fFirstReqEvtNumber, fHfCorCalc, fHfCovCalc, fHfnCalc, fLastReqEvtNumber, fLfCorCalc, fLfCovCalc, fLfnCalc, fMeanCorssCalc, fMSpCalc, fNbOfEvtsCalc, fPedCalc, fReqNbOfEvts, fRunNumber, fRunType, fSigCorssCalc, fSSpCalc, fStartDate, fStartTime, fStex, fStinNumbersCalc, fStopDate, fStopTime, and fTnoCalc.

Referenced by TEcnaRead::ReadRootFileHeader().

146  {
147  // Print the header
148  std::cout << std::endl;
149  std::cout << " Header parameters " << std::endl;
150  std::cout << std::endl;
151  std::cout << "Run number : " << fRunNumber << std::endl;
152  std::cout << "First requested event number : " << fFirstReqEvtNumber << std::endl;
153  std::cout << "Last requested event number : " << fLastReqEvtNumber << std::endl;
154  std::cout << "Requested number of events : " << fReqNbOfEvts << std::endl;
155  std::cout << "SM or Dee number : " << fStex << std::endl;
156  std::cout << "Time first event : " << fStartTime << std::endl;
157  std::cout << "Time last event : " << fStopTime << std::endl;
158  std::cout << "Date first event : " << fStartDate.Data() << std::endl;
159  std::cout << "Date last event : " << fStopDate.Data() << std::endl;
160  std::cout << "Run type : " << fRunType << std::endl;
161  std::cout << std::endl;
162  std::cout << " Header counters " << std::endl;
163  std::cout << std::endl;
164  std::cout << "Stin Numbers : " << fStinNumbersCalc << std::endl;
165  std::cout << "Numbers of found evts : " << fNbOfEvtsCalc << std::endl;
166  std::cout << "Samples as a function of time histograms : " << fAdcEvtCalc << std::endl;
167  std::cout << "Expectation values histogram : " << fMSpCalc << std::endl;
168  std::cout << "Variances histogram : " << fSSpCalc << std::endl;
169  std::cout << "Average total noise : " << fAvTnoCalc << std::endl;
170  std::cout << "Average low frequency noise : " << fAvLfnCalc << std::endl;
171  std::cout << "Average high frequency noise : " << fAvHfnCalc << std::endl;
172 
173  std::cout << "Nb of (sample,sample) covariance matrices : " << fCovCssCalc << std::endl;
174  std::cout << "Nb of (sample,sample) correlation matrices : " << fCorCssCalc << std::endl;
175  std::cout << "Nb of (channel,channel) covariance matrices : " << fHfCovCalc << std::endl;
176  std::cout << "Nb of (channel,channel) correlation matrices : " << fHfCorCalc << std::endl;
177  std::cout << "Nb of (channel,channel) cov mat mean on samp : " << fLfCovCalc << std::endl;
178  std::cout << "Nb of (channel,channel) cor mat mean on samp : " << fLfCorCalc << std::endl;
179  std::cout << "Nb of mean cov(c,c) mean on samp, all Stins : " << fLfCovCalc << std::endl;
180  std::cout << "Nb of mean cor(c,c) mean on samp, all Stins : " << fLfCorCalc << std::endl;
181 
182  std::cout << "Exp. val. of the exp. val. of the samples : " << fPedCalc << std::endl;
183  std::cout << "Expect. val. of the sigmas of the samples : " << fTnoCalc << std::endl;
184  std::cout << "Expect. val. of the (samp,samp) correlations : " << fMeanCorssCalc << std::endl;
185 
186  std::cout << "Sigmas of the exp. val. of the samples : " << fLfnCalc << std::endl;
187  std::cout << "Sigmas of the sigmas of the samples : " << fHfnCalc << std::endl;
188  std::cout << "Sigmas of the (samp,samp) correlations : " << fSigCorssCalc << std::endl;
189 
190  std::cout << "Average pedestals : " << fAvPedCalc << std::endl;
191  std::cout << "Average mean cor(s,s) : " << fAvMeanCorssCalc << std::endl;
192  std::cout << "Average sigma of Cor(s,s) : " << fAvSigCorssCalc << std::endl;
193  std::cout << std::endl;
194 }
Int_t fStex
Definition: TEcnaHeader.h:53
Int_t fAvLfnCalc
Definition: TEcnaHeader.h:70
Int_t fSSpCalc
Definition: TEcnaHeader.h:68
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
TString fStopDate
Definition: TEcnaHeader.h:58
Int_t fMeanCorssCalc
Definition: TEcnaHeader.h:83
Int_t fHfCovCalc
Definition: TEcnaHeader.h:75
Int_t fCorCssCalc
Definition: TEcnaHeader.h:74
Int_t fAvTnoCalc
Definition: TEcnaHeader.h:69
Int_t fPedCalc
Definition: TEcnaHeader.h:81
Int_t fAvHfnCalc
Definition: TEcnaHeader.h:71
TString fStartDate
Definition: TEcnaHeader.h:57
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 fLastReqEvtNumber
Definition: TEcnaHeader.h:51
tuple cout
Definition: gather_cfg.py:144
Int_t fRunNumber
Definition: TEcnaHeader.h:49
Int_t fSigCorssCalc
Definition: TEcnaHeader.h:86
Int_t fLfnCalc
Definition: TEcnaHeader.h:84
Int_t fStinNumbersCalc
Definition: TEcnaHeader.h:63
Int_t fAvSigCorssCalc
Definition: TEcnaHeader.h:90
Int_t fCovCssCalc
Definition: TEcnaHeader.h:73

Member Data Documentation

Int_t TEcnaHeader::fAdcEvtCalc
Int_t TEcnaHeader::fAvHfnCalc
Int_t TEcnaHeader::fAvLfnCalc
Int_t TEcnaHeader::fAvMeanCorssCalc
Int_t TEcnaHeader::fAvPedCalc
Int_t TEcnaHeader::fAvSigCorssCalc
Int_t TEcnaHeader::fAvTnoCalc
Int_t TEcnaHeader::fCdelete

Definition at line 42 of file TEcnaHeader.h.

Int_t TEcnaHeader::fCnew

Definition at line 41 of file TEcnaHeader.h.

Int_t TEcnaHeader::fCorCssCalc
Int_t TEcnaHeader::fCovCssCalc
Int_t TEcnaHeader::fFirstReqEvtNumber
Int_t TEcnaHeader::fgMaxCar

Definition at line 44 of file TEcnaHeader.h.

Referenced by Init().

Int_t TEcnaHeader::fHFccMoStinsCalc
Int_t TEcnaHeader::fHfCorCalc
Int_t TEcnaHeader::fHfCovCalc
Int_t TEcnaHeader::fHfnCalc

Definition at line 85 of file TEcnaHeader.h.

Referenced by TEcnaRun::HighFrequencyNoise(), Init(), Print(), and TEcnaRun::WriteRootFile().

Int_t TEcnaHeader::fLastReqEvtNumber
Int_t TEcnaHeader::fLFccMoStinsCalc
Int_t TEcnaHeader::fLfCorCalc
Int_t TEcnaHeader::fLfCovCalc
Int_t TEcnaHeader::fLfnCalc

Definition at line 84 of file TEcnaHeader.h.

Referenced by Init(), TEcnaRun::LowFrequencyNoise(), Print(), and TEcnaRun::WriteRootFile().

Int_t TEcnaHeader::fMeanCorssCalc
Int_t TEcnaHeader::fMSpCalc
Int_t TEcnaHeader::fNbOfEvtsCalc
Int_t TEcnaHeader::fNbOfSamples
Int_t TEcnaHeader::fPedCalc

Definition at line 81 of file TEcnaHeader.h.

Referenced by Init(), TEcnaRun::Pedestals(), Print(), and TEcnaRun::WriteRootFile().

Int_t TEcnaHeader::fReqNbOfEvts
Int_t TEcnaHeader::fRunNumber
Int_t TEcnaHeader::fRunType
Int_t TEcnaHeader::fSigCorssCalc
Int_t TEcnaHeader::fSSpCalc
TString TEcnaHeader::fStartDate
time_t TEcnaHeader::fStartTime
Int_t TEcnaHeader::fStex
Int_t TEcnaHeader::fStinNumbersCalc
TString TEcnaHeader::fStopDate
time_t TEcnaHeader::fStopTime
Int_t TEcnaHeader::fTnoCalc

Definition at line 82 of file TEcnaHeader.h.

Referenced by Init(), Print(), TEcnaRun::TotalNoise(), and TEcnaRun::WriteRootFile().

TString TEcnaHeader::fTypAna