CMS 3D CMS Logo

TRunInfo.cc

Go to the documentation of this file.
00001 //----------Author's Name:Jean Bourotte, Igor Semeniouk, Patrick Jarry (Windows porting)
00002 //----------Copyright:Those valid for CMS sofware
00003 //----------Modified:31/1/2003
00004 //#include "config.h"
00005 #include <iostream.h>
00006 #include "IORawData/Ecal2004TBInputService/interface/TRunInfo.h"
00007 
00008 using namespace std;
00009 
00010 ClassImp(TRunInfo)
00011 //______________________________________________________________________________
00012 //
00013 // TRunInfo.  Look at the class variables to know the content
00014 //
00015 // const char *gRawRootVersion=VERSION;
00016 
00017 TRunInfo::TRunInfo(){
00018   Init();
00019 }
00020 
00021 void TRunInfo::Init() {
00022 //Everything to 0
00023   fRunNum        = 0;
00024   fRunType       = 0;
00025   fNTowersMax    = 0;
00026 
00027   fNMod          = 0;
00028   fNChMod        = 0;
00029   fROSEMode      = 0;
00030   fFrameLength   = 0;
00031 
00032   fNPNs          = 0;
00033   fFrameLengthPN = 0;
00034 
00035   fSoftVersion   = 0;
00036 }
00037 
00038 void TRunInfo::Print(const char *opt) const {
00039   cout << endl;
00040 //Print RunInfo
00041   cout << "fRunNum        = ";
00042   cout.width(12);
00043   cout << fRunNum  << "    ";
00044   cout << "fRunType       = ";
00045   cout.width(12);
00046   cout << fRunType << endl;
00047 
00048   cout << "fNTowersMax    = ";
00049   cout.width(12);
00050   cout << fNTowersMax << "    ";
00051   cout << "fNMod          = ";
00052   cout.width(12);
00053   cout << fNMod    << endl;
00054 
00055   cout << "fNChMod        = ";
00056   cout.width(12);
00057   cout << fNChMod << "    ";
00058   cout << "fROSEMode      = ";
00059   cout.width(12);
00060   cout << fROSEMode << endl;
00061 
00062   cout << "fFrameLength   = ";
00063   cout.width(12);
00064   cout << fFrameLength << "    ";
00065   cout << "fNPNs          = ";
00066   cout.width(12);
00067   cout << fNPNs << endl;
00068 
00069   cout << "fFrameLengthPN = ";
00070   cout.width(12);
00071   cout << fFrameLengthPN << endl;
00072 }
00073 
00074 void TRunInfo::Set(Int_t iv[] ) {
00075   fRunNum        = iv[0];
00076   fRunType       = iv[1];
00077   fNTowersMax    = iv[2];
00078 
00079   fNMod          = iv[3];
00080   fNChMod        = iv[4];
00081   fROSEMode      = iv[5];
00082   fFrameLength   = iv[6];
00083 
00084   fNPNs          = iv[7];
00085   fFrameLengthPN = iv[8];
00086 
00087   fSoftVersion   = iv[9];
00088 }
00089 
00090 void TRunInfo::SetNTowMax(Int_t n ) 
00091 {
00092   fNTowersMax    = n;
00093 }

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