#include <TEcnaHeader.h>
Public Member Functions | |
void | HeaderParameters (TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &) |
void | HeaderParameters (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 (const Text_t *, const Text_t *) | |
TEcnaHeader () | |
~TEcnaHeader () | |
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 () |
Definition at line 19 of file TEcnaHeader.h.
TEcnaHeader::TEcnaHeader | ( | ) |
TEcnaHeader::TEcnaHeader | ( | const Text_t * | name, |
const Text_t * | title | ||
) |
Definition at line 11 of file TEcnaHeader.cc.
References Init().
:TNamed(name,title) { // Constructor with arguments for reading ROOT file. // Called in GetReadyToReadRootFile(...) of TEcnaRead // Please give a name and a title containing info about what // you are doing and saving in the ROOT file // cout << "[Info Management] CLASS: TEcnaHeader. CREATE OBJECT: this = " << this << endl; Init(); }
TEcnaHeader::~TEcnaHeader | ( | ) |
Definition at line 22 of file TEcnaHeader.cc.
{ //destructor // cout << "[Info Management] CLASS: TEcnaHeader. DESTROY OBJECT: this = " << this << endl; }
void TEcnaHeader::HeaderParameters | ( | 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 114 of file TEcnaHeader.cc.
References fFirstReqEvtNumber, fLastReqEvtNumber, fNbOfSamples, fReqNbOfEvts, fRunNumber, fStex, and fTypAna.
Referenced by TEcnaRun::GetReadyToReadData(), and TEcnaRead::GetReadyToReadRootFile().
{ // cout << "[Info Management] CLASS: TEcnaHeader. CREATE OBJECT: this = " << this << endl; fTypAna = typ_ana; fRunNumber = run_number; fNbOfSamples = nb_of_samples; fFirstReqEvtNumber = aFirstReqEvtNumber; fLastReqEvtNumber = aLastReqEvtNumber; fReqNbOfEvts = aReqNbOfEvts; fStex = Stex; }
void TEcnaHeader::HeaderParameters | ( | 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 89 of file TEcnaHeader.cc.
References fFirstReqEvtNumber, fLastReqEvtNumber, fNbOfSamples, fReqNbOfEvts, fRunNumber, fRunType, fStex, and fTypAna.
{ // Constructor with arguments for reading DATA. // Called in GetReadyToReadData(...) of TEcnaRun // Please give a name and a title containing info about what // you are doing and saving in the ROOT file // cout << "[Info Management] CLASS: TEcnaHeader. CREATE OBJECT: this = " << this << endl; fTypAna = typ_ana; fRunNumber = run_number; fNbOfSamples = nb_of_samples; fFirstReqEvtNumber = aFirstReqEvtNumber; fLastReqEvtNumber = aLastReqEvtNumber; fReqNbOfEvts = aReqNbOfEvts; fStex = Stex; fRunType = run_type; }
void TEcnaHeader::Init | ( | void | ) | [protected] |
Definition at line 28 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 TEcnaHeader().
{ //Set default values in all variables and init the counters fxxxCalc //--------------------------------- INIT parameters fgMaxCar = (Int_t)512; //........................ RUN parameters fTypAna = "!Analysis name> no info"; fNbOfSamples = (Int_t)0; fRunNumber = (Int_t)0; fFirstReqEvtNumber = (Int_t)0; fLastReqEvtNumber = (Int_t)0; fReqNbOfEvts = (Int_t)0; fStex = (Int_t)0; fStartTime = (time_t)0; fStopTime = (time_t)0; Int_t MaxCar = fgMaxCar; fStartDate.Resize(MaxCar); fStartDate = "!Start date> no info"; MaxCar = fgMaxCar; fStopDate.Resize(MaxCar); fStopDate = "!Stop date> no info"; fRunType = 9999999; //--------------------------------- INIT counters fStinNumbersCalc = 0; fNbOfEvtsCalc = 0; fAdcEvtCalc = 0; fMSpCalc = 0; fSSpCalc = 0; fCovCssCalc = 0; fCorCssCalc = 0; fHfCovCalc = 0; fHfCorCalc = 0; fLfCovCalc = 0; fLfCorCalc = 0; fLFccMoStinsCalc = 0; fHFccMoStinsCalc = 0; fPedCalc = 0; fTnoCalc = 0; fMeanCorssCalc = 0; fLfnCalc = 0; fHfnCalc = 0; fSigCorssCalc = 0; fAvPedCalc = 0; fAvTnoCalc = 0; fAvLfnCalc = 0; fAvHfnCalc = 0; fAvMeanCorssCalc = 0; fAvSigCorssCalc = 0; }
void TEcnaHeader::Print | ( | void | ) |
Definition at line 131 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().
{ // Print the header cout << endl; cout << " Header parameters " << endl; cout << endl; cout << "Run number : " << fRunNumber << endl; cout << "First requested event number : " << fFirstReqEvtNumber << endl; cout << "Last requested event number : " << fLastReqEvtNumber << endl; cout << "Requested number of events : " << fReqNbOfEvts << endl; cout << "Stex number : " << fStex << endl; cout << "Time first event : " << fStartTime << endl; cout << "Time last event : " << fStopTime << endl; cout << "Date first event : " << fStartDate.Data() << endl; cout << "Date last event : " << fStopDate.Data() << endl; cout << "Run type : " << fRunType << endl; cout << endl; cout << " Header counters " << endl; cout << endl; cout << "Stin Numbers : " << fStinNumbersCalc << endl; cout << "Numbers of found evts : " << fNbOfEvtsCalc << endl; cout << "Samples as a function of time histograms : " << fAdcEvtCalc << endl; cout << "Expectation values histogram : " << fMSpCalc << endl; cout << "Variances histogram : " << fSSpCalc << endl; cout << "Averaged total noise : " << fAvTnoCalc << endl; cout << "Averaged low frequency noise : " << fAvLfnCalc << endl; cout << "Averaged high frequency noise : " << fAvHfnCalc << endl; cout << "Nb of (sample,sample) covariance matrices : " << fCovCssCalc << endl; cout << "Nb of (sample,sample) correlation matrices : " << fCorCssCalc << endl; cout << "Nb of (channel,channel) covariance matrices : " << fHfCovCalc << endl; cout << "Nb of (channel,channel) correlation matrices : " << fHfCorCalc << endl; cout << "Nb of (channel,channel) cov mat mean on samp : " << fLfCovCalc << endl; cout << "Nb of (channel,channel) cor mat mean on samp : " << fLfCorCalc << endl; cout << "Nb of mean cov(c,c) mean on samp, all Stins : " << fLfCovCalc << endl; cout << "Nb of mean cor(c,c) mean on samp, all Stins : " << fLfCorCalc << endl; cout << "Exp. val. of the exp. val. of the samples : " << fPedCalc << endl; cout << "Expect. val. of the sigmas of the samples : " << fTnoCalc << endl; cout << "Expect. val. of the (samp,samp) correlations : " << fMeanCorssCalc << endl; cout << "Sigmas of the exp. val. of the samples : " << fLfnCalc << endl; cout << "Sigmas of the sigmas of the samples : " << fHfnCalc << endl; cout << "Sigmas of the (samp,samp) correlations : " << fSigCorssCalc << endl; cout << "Averaged pedestals : " << fAvPedCalc << endl; cout << "Averaged Mean of Cor(s,s) : " << fAvMeanCorssCalc << endl; cout << "Averaged sigma of Cor(s,s) : " << fAvSigCorssCalc << endl; cout << endl; }
Int_t TEcnaHeader::fAdcEvtCalc |
Definition at line 52 of file TEcnaHeader.h.
Referenced by Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::SampleValues(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fAvHfnCalc |
Definition at line 57 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedHighFrequencyNoise(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fAvLfnCalc |
Definition at line 56 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedLowFrequencyNoise(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Definition at line 75 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedMeanOfCorrelationsBetweenSamples(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fAvPedCalc |
Definition at line 74 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedPedestals(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Definition at line 76 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedSigmaOfCorrelationsBetweenSamples(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fAvTnoCalc |
Definition at line 55 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedTotalNoise(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fCdelete |
Definition at line 28 of file TEcnaHeader.h.
Int_t TEcnaHeader::fCnew |
Definition at line 27 of file TEcnaHeader.h.
Int_t TEcnaHeader::fCorCssCalc |
Definition at line 60 of file TEcnaHeader.h.
Referenced by TEcnaRun::CorrelationsBetweenSamples(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fCovCssCalc |
Definition at line 59 of file TEcnaHeader.h.
Referenced by TEcnaRun::CovariancesBetweenSamples(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Definition at line 36 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetFirstReqEvtNumber(), TEcnaRun::GetReadyToReadData(), TEcnaRead::GetReadyToReadRootFile(), HeaderParameters(), Init(), Print(), TEcnaRun::WriteNewRootFile(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fgMaxCar |
Definition at line 30 of file TEcnaHeader.h.
Referenced by Init().
Definition at line 66 of file TEcnaHeader.h.
Referenced by TEcnaRun::HighFrequencyMeanCorrelationsBetweenStins(), Init(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fHfCorCalc |
Definition at line 62 of file TEcnaHeader.h.
Referenced by TEcnaRun::HighFrequencyCorrelationsBetweenChannels(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fHfCovCalc |
Definition at line 61 of file TEcnaHeader.h.
Referenced by TEcnaRun::HighFrequencyCovariancesBetweenChannels(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fHfnCalc |
Definition at line 71 of file TEcnaHeader.h.
Referenced by TEcnaRun::HighFrequencyNoise(), Init(), Print(), and TEcnaRun::WriteRootFile().
Definition at line 37 of file TEcnaHeader.h.
Referenced by TEcnaRun::GetReadyToReadData(), TEcnaRead::GetReadyToReadRootFile(), HeaderParameters(), Init(), Print(), TEcnaRun::WriteNewRootFile(), and TEcnaRun::WriteRootFile().
Definition at line 65 of file TEcnaHeader.h.
Referenced by Init(), TEcnaRun::LowFrequencyMeanCorrelationsBetweenStins(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fLfCorCalc |
Definition at line 64 of file TEcnaHeader.h.
Referenced by Init(), TEcnaRun::LowFrequencyCorrelationsBetweenChannels(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fLfCovCalc |
Definition at line 63 of file TEcnaHeader.h.
Referenced by Init(), TEcnaRun::LowFrequencyCovariancesBetweenChannels(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fLfnCalc |
Definition at line 70 of file TEcnaHeader.h.
Referenced by Init(), TEcnaRun::LowFrequencyNoise(), Print(), and TEcnaRun::WriteRootFile().
Definition at line 69 of file TEcnaHeader.h.
Referenced by Init(), TEcnaRun::MeanOfCorrelationsBetweenSamples(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fMSpCalc |
Definition at line 53 of file TEcnaHeader.h.
Referenced by Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::SampleMeans(), and TEcnaRun::WriteRootFile().
Definition at line 50 of file TEcnaHeader.h.
Referenced by TEcnaRun::BuildEventDistributions(), Init(), Print(), and TEcnaRun::WriteRootFile().
Definition at line 34 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetReadyToReadRootFile(), HeaderParameters(), Init(), TEcnaRead::ReadNumberOfEvents(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fPedCalc |
Definition at line 67 of file TEcnaHeader.h.
Referenced by Init(), TEcnaRun::Pedestals(), Print(), and TEcnaRun::WriteRootFile().
Definition at line 38 of file TEcnaHeader.h.
Referenced by TEcnaRun::BuildEventDistributions(), TEcnaRun::GetReadyToCompute(), TEcnaRun::GetReadyToReadData(), TEcnaRead::GetReadyToReadRootFile(), TEcnaRead::GetReqNbOfEvts(), HeaderParameters(), Init(), Print(), TEcnaRun::TRootAdcEvt(), TEcnaRun::WriteNewRootFile(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fRunNumber |
Definition at line 35 of file TEcnaHeader.h.
Referenced by TEcnaRun::GetReadyToReadData(), TEcnaRead::GetReadyToReadRootFile(), HeaderParameters(), Init(), Print(), TEcnaRun::WriteNewRootFile(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fRunType |
Definition at line 46 of file TEcnaHeader.h.
Referenced by TEcnaRun::GetReadyToReadData(), TEcnaRead::GetRunType(), HeaderParameters(), Init(), Print(), and TEcnaRead::ReadRootFileHeader().
Definition at line 72 of file TEcnaHeader.h.
Referenced by Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::SigmaOfCorrelationsBetweenSamples(), and TEcnaRun::WriteRootFile().
Int_t TEcnaHeader::fSSpCalc |
Definition at line 54 of file TEcnaHeader.h.
Referenced by Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::SampleSigmas(), and TEcnaRun::WriteRootFile().
TString TEcnaHeader::fStartDate |
Definition at line 43 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetStartDate(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::StartStopDate(), and TEcnaRun::WriteNewRootFile().
time_t TEcnaHeader::fStartTime |
Definition at line 41 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetStartTime(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::StartStopTime(), and TEcnaRun::WriteNewRootFile().
Int_t TEcnaHeader::fStex |
Definition at line 39 of file TEcnaHeader.h.
Referenced by TEcnaRun::AveragedHighFrequencyNoise(), TEcnaRun::AveragedLowFrequencyNoise(), TEcnaRun::AveragedMeanOfCorrelationsBetweenSamples(), TEcnaRun::AveragedPedestals(), TEcnaRun::AveragedSigmaOfCorrelationsBetweenSamples(), TEcnaRun::AveragedTotalNoise(), TEcnaRun::BuildEventDistributions(), TEcnaRun::GetReadyToReadData(), TEcnaRead::GetReadyToReadRootFile(), HeaderParameters(), TEcnaRun::HighFrequencyCorrelationsBetweenChannels(), TEcnaRun::HighFrequencyCovariancesBetweenChannels(), Init(), TEcnaRun::LowFrequencyCorrelationsBetweenChannels(), TEcnaRun::LowFrequencyCovariancesBetweenChannels(), Print(), TEcnaRead::ReadAveragedNumberOfEvents(), TEcnaRun::WriteNewRootFile(), and TEcnaRun::WriteRootFile().
Definition at line 49 of file TEcnaHeader.h.
Referenced by TEcnaRun::BuildEventDistributions(), Init(), TEcnaRead::LookAtRootFile(), Print(), TEcnaRead::ReadRootFileHeader(), and TEcnaRun::WriteRootFile().
TString TEcnaHeader::fStopDate |
Definition at line 44 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetStopDate(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::StartStopDate(), and TEcnaRun::WriteNewRootFile().
time_t TEcnaHeader::fStopTime |
Definition at line 42 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetStopTime(), Init(), Print(), TEcnaRead::ReadRootFileHeader(), TEcnaRun::StartStopTime(), and TEcnaRun::WriteNewRootFile().
Int_t TEcnaHeader::fTnoCalc |
Definition at line 68 of file TEcnaHeader.h.
Referenced by Init(), Print(), TEcnaRun::TotalNoise(), and TEcnaRun::WriteRootFile().
TString TEcnaHeader::fTypAna |
Definition at line 33 of file TEcnaHeader.h.
Referenced by TEcnaRead::GetAnalysisName(), TEcnaRun::GetReadyToReadData(), TEcnaRead::GetReadyToReadRootFile(), HeaderParameters(), Init(), and TEcnaRun::WriteRootFile().