CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaHeader.h

Go to the documentation of this file.
00001 #ifndef ROOT_TEcnaHeader
00002 #define ROOT_TEcnaHeader
00003 
00005 //                                                                      //
00006 // TEcnaHeader   Header of CNA ROOT file                                 //
00007 //                                                                      //
00008 //                                                                      //
00009 //                                                                      //
00011 #include "TROOT.h"
00012 #include "TObject.h"
00013 #include "TString.h"
00014 #include "TNamed.h"
00015 #include "Riostream.h"
00016 #include <time.h>
00017 #include <TMath.h>
00018 
00019 #include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaObject.h"
00020 
00035   
00036 class TEcnaHeader : public TNamed {
00037 
00038 protected:
00039 
00040   void      Init();
00041 
00042 public:
00043 
00044   Int_t   fCnew;
00045   Int_t   fCdelete;
00046 
00047   Int_t   fgMaxCar;   // Max nb of caracters for char*
00048 
00049   //....... Header parameters
00050   TString fTypAna;              // name of the analysis (default = "std")
00051   Int_t   fNbOfSamples;         // Number of samples for calculations
00052   Int_t   fRunNumber;           // Run number
00053   Int_t   fFirstReqEvtNumber;   // First requested event number
00054   Int_t   fLastReqEvtNumber;    // Number of taken evts
00055   Int_t   fReqNbOfEvts;         // Requested number of events
00056   Int_t   fStex;                // Stex number
00057 
00058   time_t  fStartTime;           // Start time
00059   time_t  fStopTime;            // Stop time
00060   TString fStartDate;           // Start date
00061   TString fStopDate;            // Stop date
00062 
00063   Int_t   fRunType;             // run type
00064 
00065   //....... Header counters
00066   Int_t   fStinNumbersCalc;     // Nb of entries of type StinNumbers
00067   Int_t   fNbOfEvtsCalc;        // Nb of entries of type NbOfEvts
00068 
00069   Int_t   fAdcEvtCalc;          // *Nb of entries of type SampTime
00070   Int_t   fMSpCalc;             // *Nb of entries of type Ev
00071   Int_t   fSSpCalc;             // *Nb of entries of type Var
00072   Int_t   fAvTnoCalc;           // *Nb of entries of type AvTotn
00073   Int_t   fAvLfnCalc;           // *Nb of entries of type AvLfn
00074   Int_t   fAvHfnCalc;           // *Nb of entries of type AvHfn
00075 
00076   Int_t   fCovCssCalc;          // *Nb of entries of type CovCss
00077   Int_t   fCorCssCalc;          // *Nb of entries of type CorCss
00078   Int_t   fHfCovCalc;           // *Nb of entries of type HfCov
00079   Int_t   fHfCorCalc;           // *Nb of entries of type HfCor
00080   Int_t   fLfCovCalc;           // *Nb of entries of type LfCov
00081   Int_t   fLfCorCalc;           // *Nb of entries of type LfCor
00082   Int_t   fLFccMoStinsCalc;     // *Nb of entries of type LFccMoStins
00083   Int_t   fHFccMoStinsCalc;     // *Nb of entries of type HFccMoStins
00084   Int_t   fPedCalc;             // *Nb of entries of type Ped
00085   Int_t   fTnoCalc;             // *Nb of entries of type Tno
00086   Int_t   fMeanCorssCalc;       // *Nb of entries of type EvCorCss
00087   Int_t   fLfnCalc;             // *Nb of entries of type Lfn
00088   Int_t   fHfnCalc;             // *Nb of entries of type Hfn
00089   Int_t   fSigCorssCalc;        // *Nb of entries of type SigCorCss
00090 
00091   Int_t   fAvPedCalc;           // *Nb of entries of type AvPed
00092   Int_t   fAvMeanCorssCalc;     // *Nb of entries of type AvEvCorss
00093   Int_t   fAvSigCorssCalc;      // *Nb of entries of type AvSigCorss
00094 
00095   //------------------------------- methods
00096   TEcnaHeader();
00097   TEcnaHeader(TEcnaObject*, const Text_t*, const Text_t*);
00098   //TEcnaHeader(const Text_t*, const Text_t*);
00099   ~TEcnaHeader();
00100 
00101 //  void HeaderParameters(Text_t*, Text_t*, TString,      const Int_t&, 
00102 //                        const Int_t&,     const Int_t&, const Int_t&, const Int_t&,
00103 //                      const  Int_t&);
00104 //  void HeaderParameters(Text_t*,  Text_t*, TString,    const Int_t&, 
00105 //                      const Int_t&,    const Int_t&, const Int_t&, const Int_t&);
00106 
00107   void HeaderParameters( TString,      const Int_t&, const Int_t&,
00108                          const Int_t&, const Int_t&, const Int_t&, const Int_t&);
00109   void HeaderParameters( TString,      const Int_t&, const Int_t&,
00110                          const Int_t&, const Int_t&, const Int_t&, const Int_t&, const Int_t&);
00111 
00112   void Print();
00113   ClassDef(TEcnaHeader,1)  //Header of CNA ROOT file
00114 };
00115 #endif