CMS 3D CMS Logo

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() [1/2]

TEcnaHeader::TEcnaHeader ( )

Definition at line 16 of file TEcnaHeader.cc.

16 { Init(); } // constructor without arguments

References Init().

◆ TEcnaHeader() [2/2]

TEcnaHeader::TEcnaHeader ( TEcnaObject pObjectManager,
const Text_t *  name,
const Text_t *  title 
)

Definition at line 18 of file TEcnaHeader.cc.

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 }

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

◆ ~TEcnaHeader()

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

◆ HeaderParameters() [1/2]

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.

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 }

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

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

◆ HeaderParameters() [2/2]

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.

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 }

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

◆ Init()

void TEcnaHeader::Init ( void  )
protected

Definition at line 37 of file TEcnaHeader.cc.

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 }

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().

◆ Print()

void TEcnaHeader::Print ( void  )

Definition at line 146 of file TEcnaHeader.cc.

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 }

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().

Member Data Documentation

◆ fAdcEvtCalc

Int_t TEcnaHeader::fAdcEvtCalc

◆ fAvHfnCalc

Int_t TEcnaHeader::fAvHfnCalc

◆ fAvLfnCalc

Int_t TEcnaHeader::fAvLfnCalc

◆ fAvMeanCorssCalc

Int_t TEcnaHeader::fAvMeanCorssCalc

◆ fAvPedCalc

Int_t TEcnaHeader::fAvPedCalc

◆ fAvSigCorssCalc

Int_t TEcnaHeader::fAvSigCorssCalc

◆ fAvTnoCalc

Int_t TEcnaHeader::fAvTnoCalc

◆ fCdelete

Int_t TEcnaHeader::fCdelete

Definition at line 42 of file TEcnaHeader.h.

◆ fCnew

Int_t TEcnaHeader::fCnew

Definition at line 41 of file TEcnaHeader.h.

◆ fCorCssCalc

Int_t TEcnaHeader::fCorCssCalc

◆ fCovCssCalc

Int_t TEcnaHeader::fCovCssCalc

◆ fFirstReqEvtNumber

Int_t TEcnaHeader::fFirstReqEvtNumber

◆ fgMaxCar

Int_t TEcnaHeader::fgMaxCar

Definition at line 44 of file TEcnaHeader.h.

Referenced by Init().

◆ fHFccMoStinsCalc

Int_t TEcnaHeader::fHFccMoStinsCalc

◆ fHfCorCalc

Int_t TEcnaHeader::fHfCorCalc

◆ fHfCovCalc

Int_t TEcnaHeader::fHfCovCalc

◆ fHfnCalc

Int_t TEcnaHeader::fHfnCalc

Definition at line 85 of file TEcnaHeader.h.

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

◆ fLastReqEvtNumber

Int_t TEcnaHeader::fLastReqEvtNumber

◆ fLFccMoStinsCalc

Int_t TEcnaHeader::fLFccMoStinsCalc

◆ fLfCorCalc

Int_t TEcnaHeader::fLfCorCalc

◆ fLfCovCalc

Int_t TEcnaHeader::fLfCovCalc

◆ fLfnCalc

Int_t TEcnaHeader::fLfnCalc

Definition at line 84 of file TEcnaHeader.h.

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

◆ fMeanCorssCalc

Int_t TEcnaHeader::fMeanCorssCalc

◆ fMSpCalc

Int_t TEcnaHeader::fMSpCalc

◆ fNbOfEvtsCalc

Int_t TEcnaHeader::fNbOfEvtsCalc

◆ fNbOfSamples

Int_t TEcnaHeader::fNbOfSamples

◆ fPedCalc

Int_t TEcnaHeader::fPedCalc

Definition at line 81 of file TEcnaHeader.h.

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

◆ fReqNbOfEvts

Int_t TEcnaHeader::fReqNbOfEvts

◆ fRunNumber

Int_t TEcnaHeader::fRunNumber

◆ fRunType

Int_t TEcnaHeader::fRunType

◆ fSigCorssCalc

Int_t TEcnaHeader::fSigCorssCalc

◆ fSSpCalc

Int_t TEcnaHeader::fSSpCalc

◆ fStartDate

TString TEcnaHeader::fStartDate

◆ fStartTime

time_t TEcnaHeader::fStartTime

◆ fStex

Int_t TEcnaHeader::fStex

◆ fStinNumbersCalc

Int_t TEcnaHeader::fStinNumbersCalc

◆ fStopDate

TString TEcnaHeader::fStopDate

◆ fStopTime

time_t TEcnaHeader::fStopTime

◆ fTnoCalc

Int_t TEcnaHeader::fTnoCalc

Definition at line 82 of file TEcnaHeader.h.

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

◆ fTypAna

TString TEcnaHeader::fTypAna
TEcnaHeader::fAvSigCorssCalc
Int_t fAvSigCorssCalc
Definition: TEcnaHeader.h:90
TEcnaHeader::fAvLfnCalc
Int_t fAvLfnCalc
Definition: TEcnaHeader.h:70
TEcnaHeader::fAvMeanCorssCalc
Int_t fAvMeanCorssCalc
Definition: TEcnaHeader.h:89
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
TEcnaHeader::fHfCorCalc
Int_t fHfCorCalc
Definition: TEcnaHeader.h:76
TEcnaHeader::fReqNbOfEvts
Int_t fReqNbOfEvts
Definition: TEcnaHeader.h:52
TEcnaHeader::fRunType
Int_t fRunType
Definition: TEcnaHeader.h:60
TEcnaHeader::fCovCssCalc
Int_t fCovCssCalc
Definition: TEcnaHeader.h:73
TEcnaHeader::fHFccMoStinsCalc
Int_t fHFccMoStinsCalc
Definition: TEcnaHeader.h:80
TEcnaHeader::fMSpCalc
Int_t fMSpCalc
Definition: TEcnaHeader.h:67
gather_cfg.cout
cout
Definition: gather_cfg.py:144
TEcnaHeader::fHfnCalc
Int_t fHfnCalc
Definition: TEcnaHeader.h:85
contentValuesCheck.run_number
run_number
Definition: contentValuesCheck.py:38
TEcnaHeader::fNbOfSamples
Int_t fNbOfSamples
Definition: TEcnaHeader.h:48
TEcnaHeader::fStopDate
TString fStopDate
Definition: TEcnaHeader.h:58
TEcnaHeader::fCorCssCalc
Int_t fCorCssCalc
Definition: TEcnaHeader.h:74
TEcnaHeader::fHfCovCalc
Int_t fHfCovCalc
Definition: TEcnaHeader.h:75
TEcnaHeader::fNbOfEvtsCalc
Int_t fNbOfEvtsCalc
Definition: TEcnaHeader.h:64
TEcnaObject::RegisterPointer
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:100
TEcnaHeader::fMeanCorssCalc
Int_t fMeanCorssCalc
Definition: TEcnaHeader.h:83
TEcnaHeader::fgMaxCar
Int_t fgMaxCar
Definition: TEcnaHeader.h:44
TEcnaHeader::fStartDate
TString fStartDate
Definition: TEcnaHeader.h:57
TEcnaHeader::fPedCalc
Int_t fPedCalc
Definition: TEcnaHeader.h:81
TEcnaHeader::fAvHfnCalc
Int_t fAvHfnCalc
Definition: TEcnaHeader.h:71
TEcnaHeader::fLfCovCalc
Int_t fLfCovCalc
Definition: TEcnaHeader.h:77
TEcnaHeader::fAvTnoCalc
Int_t fAvTnoCalc
Definition: TEcnaHeader.h:69
TEcnaHeader::Init
void Init()
Definition: TEcnaHeader.cc:37
TEcnaHeader::fFirstReqEvtNumber
Int_t fFirstReqEvtNumber
Definition: TEcnaHeader.h:50
TEcnaHeader::fRunNumber
Int_t fRunNumber
Definition: TEcnaHeader.h:49
TEcnaHeader::fAdcEvtCalc
Int_t fAdcEvtCalc
Definition: TEcnaHeader.h:66
TEcnaHeader::fLastReqEvtNumber
Int_t fLastReqEvtNumber
Definition: TEcnaHeader.h:51
TEcnaHeader::fAvPedCalc
Int_t fAvPedCalc
Definition: TEcnaHeader.h:88
TEcnaHeader::fTnoCalc
Int_t fTnoCalc
Definition: TEcnaHeader.h:82
TEcnaHeader::fLfnCalc
Int_t fLfnCalc
Definition: TEcnaHeader.h:84
TEcnaHeader::fStartTime
time_t fStartTime
Definition: TEcnaHeader.h:55
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
TEcnaHeader::fLFccMoStinsCalc
Int_t fLFccMoStinsCalc
Definition: TEcnaHeader.h:79
TEcnaHeader::fTypAna
TString fTypAna
Definition: TEcnaHeader.h:47
TEcnaHeader::fStinNumbersCalc
Int_t fStinNumbersCalc
Definition: TEcnaHeader.h:63
TEcnaHeader::fLfCorCalc
Int_t fLfCorCalc
Definition: TEcnaHeader.h:78
TEcnaHeader::fSigCorssCalc
Int_t fSigCorssCalc
Definition: TEcnaHeader.h:86
TEcnaHeader::fStex
Int_t fStex
Definition: TEcnaHeader.h:53
TEcnaHeader::fStopTime
time_t fStopTime
Definition: TEcnaHeader.h:56
TEcnaHeader::fSSpCalc
Int_t fSSpCalc
Definition: TEcnaHeader.h:68