CMS 3D CMS Logo

Public Member Functions | Public Attributes | Protected Member Functions

TEcnaHeader Class Reference

#include <TEcnaHeader.h>

Inheritance diagram for TEcnaHeader:
TNamed

List of all members.

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 (TEcnaObject *, 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 ()

Detailed Description

----------------------------------------------------------- TEcnaHeader.h Update: 16/02/2011 Authors: FX Gentit, B.Fabbro (bernard.fabbro@cea.fr) DSM/IRFU/SPP CEA-Saclay Copyright: Those valid for CEA sofware

ECNA web page: https://cms-fabbro.web.cern.ch/cms-fabbro/ cna_new/Correlated_Noise_Analysis/ECNA_cna_1.htm -----------------------------------------------------------

Header of ECNA result file (.root file)

Definition at line 36 of file TEcnaHeader.h.


Constructor & Destructor Documentation

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

                                                                                            :TNamed(name,title)
{
  // Constructor with arguments for reading ROOT file.
  // Called in FileParameters(...) 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();
  Long_t i_this = (Long_t)this;
  pObjectManager->RegisterPointer("TEcnaHeader", i_this);
}
TEcnaHeader::~TEcnaHeader ( )

Definition at line 32 of file TEcnaHeader.cc.

                          {
  //destructor

 // cout << "[Info Management] CLASS: TEcnaHeader.        DESTROY OBJECT: this = " << this << endl;
}

Member Function Documentation

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 126 of file TEcnaHeader.cc.

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

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

 {
 // cout << "[Info Management] CLASS: TEcnaHeader.        CREATE OBJECT: this = " << this << endl;

  Init();

  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 99 of file TEcnaHeader.cc.

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

{
  // 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;

  Init();

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

{
 //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 144 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 << "SM or Dee 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 << "Average total noise                         : "
       << fAvTnoCalc  << endl;
  cout << "Average low frequency noise                 : "
       << fAvLfnCalc  << endl;
  cout << "Average 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 << "Average pedestals                           : "
       << fAvPedCalc  << endl;
  cout << "Average mean cor(s,s)                    : "
       << fAvMeanCorssCalc << endl;
  cout << "Average sigma of Cor(s,s)                   : "
       << fAvSigCorssCalc << endl;
  cout << endl;
}

Member Data Documentation

Definition at line 45 of file TEcnaHeader.h.

Definition at line 44 of file TEcnaHeader.h.

Definition at line 47 of file TEcnaHeader.h.

Referenced by Init().

Definition at line 88 of file TEcnaHeader.h.

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

Definition at line 87 of file TEcnaHeader.h.

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

Definition at line 84 of file TEcnaHeader.h.

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

Definition at line 85 of file TEcnaHeader.h.

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