CMS 3D CMS Logo

TRunInfo.h

Go to the documentation of this file.
00001 #ifndef ZTR_TRunInfo
00002 #define ZTR_TRunInfo
00003 #include "TObject.h"
00004 #include "TStringLong.h"
00005 
00006 enum run_types { data=1, data_scan, calibration, laser_ramp,
00007                  pedestal,  tempdark,
00008                  check_gains, check_LV, check_HV, PNsTPLinearity, playback };
00009 
00010 class TRunInfo : public TObject {
00011 
00012 private:
00013   Int_t fRunNum;              //Run number
00014   Int_t fRunType;             //Type of run
00015   Int_t fNTowersMax;          //number max of towers in the RO
00016   //Roses
00017   Int_t fNMod;                //number of ROSE modules
00018   Int_t fNChMod;              //number of channels per ROSE
00019   Int_t fROSEMode;            //daq=0, debug=1
00020   Int_t fFrameLength;         //number of samples
00021   //PNs
00022   Int_t fNPNs;                //number of PNs
00023   Int_t fFrameLengthPN;       //number of samples for PNs
00024 
00025   Int_t fSoftVersion;
00026 
00027   TStringLong fInfo1;          //run info
00028   TStringLong fInfo2;          //run info
00029 
00030   void   Init();
00031 
00032 public:
00033 
00034 
00035   TRunInfo();
00036   virtual ~TRunInfo() {}
00037 
00038   Int_t  GetRunNum()      const { return fRunNum; }
00039   Int_t  GetRunType()     const { return fRunType; }
00040   Int_t  GetNTowersMax()  const { return fNTowersMax; }
00041 
00042   Int_t  GetNMod()        const { return fNMod; }
00043   Int_t  GetNChMod()      const { return fNChMod; }
00044   Int_t  GetROSEMode()    const { return fROSEMode; }
00045   Int_t  GetFrameLength() const { return fFrameLength; }
00046 
00047   Int_t  GetNPNs()        const { return fNPNs; }
00048   Int_t  GetFrameLengthPN() const { return fFrameLengthPN; }
00049 
00050   Int_t  GetSoftVersion() const { return fSoftVersion; }
00051 
00052   void   Set(Int_t iv[] );
00053   void   SetNTowMax(Int_t n );
00054   void   SetInfo1( Char_t* fi ) { fInfo1.Append( fi ); }
00055   const char*  GetInfo1() const {  return fInfo1.Data(); }
00056   void   SetInfo2( Char_t* fi ) { fInfo2.Append( fi ); }
00057   const char*  GetInfo2() const {  return fInfo2.Data(); }
00058   virtual void   Print(const char *opt=0)     const;
00059  
00060   ClassDef(TRunInfo,2)  //info run filled at SOR
00061 };
00062 
00063 
00064 // Do not forget to define the global variables so that rootcint
00065 // produces the necessary stub
00066 R__EXTERN const char *gRawRootVersion;
00067 
00068 #endif

Generated on Tue Jun 9 17:39:24 2009 for CMSSW by  doxygen 1.5.4