CMS 3D CMS Logo

TRunInfo Class Reference

#include <IORawData/Ecal2004TBInputService/interface/TRunInfo.h>

List of all members.

Public Member Functions

Int_t GetFrameLength () const
Int_t GetFrameLengthPN () const
const char * GetInfo1 () const
const char * GetInfo2 () const
Int_t GetNChMod () const
Int_t GetNMod () const
Int_t GetNPNs () const
Int_t GetNTowersMax () const
Int_t GetROSEMode () const
Int_t GetRunNum () const
Int_t GetRunType () const
Int_t GetSoftVersion () const
virtual void Print (const char *opt=0) const
void Set (Int_t iv[])
void SetInfo1 (Char_t *fi)
void SetInfo2 (Char_t *fi)
void SetNTowMax (Int_t n)
 TRunInfo ()
virtual ~TRunInfo ()

Private Member Functions

void Init ()

Private Attributes

Int_t fFrameLength
Int_t fFrameLengthPN
TStringLong fInfo1
TStringLong fInfo2
Int_t fNChMod
Int_t fNMod
Int_t fNPNs
Int_t fNTowersMax
Int_t fROSEMode
Int_t fRunNum
Int_t fRunType
Int_t fSoftVersion


Detailed Description

Definition at line 10 of file TRunInfo.h.


Constructor & Destructor Documentation

TRunInfo::TRunInfo (  ) 

virtual TRunInfo::~TRunInfo (  )  [inline, virtual]

Definition at line 36 of file TRunInfo.h.

00036 {}


Member Function Documentation

Int_t TRunInfo::GetFrameLength (  )  const [inline]

Definition at line 45 of file TRunInfo.h.

References fFrameLength.

00045 { return fFrameLength; }

Int_t TRunInfo::GetFrameLengthPN (  )  const [inline]

Definition at line 48 of file TRunInfo.h.

References fFrameLengthPN.

00048 { return fFrameLengthPN; }

const char* TRunInfo::GetInfo1 (  )  const [inline]

Definition at line 55 of file TRunInfo.h.

References fInfo1.

00055 {  return fInfo1.Data(); }

const char* TRunInfo::GetInfo2 (  )  const [inline]

Definition at line 57 of file TRunInfo.h.

References fInfo2.

00057 {  return fInfo2.Data(); }

Int_t TRunInfo::GetNChMod (  )  const [inline]

Definition at line 43 of file TRunInfo.h.

References fNChMod.

00043 { return fNChMod; }

Int_t TRunInfo::GetNMod (  )  const [inline]

Definition at line 42 of file TRunInfo.h.

References fNMod.

00042 { return fNMod; }

Int_t TRunInfo::GetNPNs (  )  const [inline]

Definition at line 47 of file TRunInfo.h.

References fNPNs.

00047 { return fNPNs; }

Int_t TRunInfo::GetNTowersMax (  )  const [inline]

Definition at line 40 of file TRunInfo.h.

References fNTowersMax.

00040 { return fNTowersMax; }

Int_t TRunInfo::GetROSEMode (  )  const [inline]

Definition at line 44 of file TRunInfo.h.

References fROSEMode.

00044 { return fROSEMode; }

Int_t TRunInfo::GetRunNum (  )  const [inline]

Definition at line 38 of file TRunInfo.h.

References fRunNum.

Referenced by Ecal2004TBSource::setRunAndEventInfo().

00038 { return fRunNum; }

Int_t TRunInfo::GetRunType (  )  const [inline]

Definition at line 39 of file TRunInfo.h.

References fRunType.

Referenced by Ecal2004TBSource::openFile(), and Ecal2004TBSource::produce().

00039 { return fRunType; }

Int_t TRunInfo::GetSoftVersion (  )  const [inline]

Definition at line 50 of file TRunInfo.h.

References fSoftVersion.

00050 { return fSoftVersion; }

void TRunInfo::Init ( void   )  [private]

Definition at line 21 of file TRunInfo.cc.

References fFrameLength, fFrameLengthPN, fNChMod, fNMod, fNPNs, fNTowersMax, fROSEMode, fRunNum, fRunType, and fSoftVersion.

00021                     {
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 }

void TRunInfo::Print ( const char *  opt = 0  )  const [virtual]

Definition at line 38 of file TRunInfo.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fFrameLength, fFrameLengthPN, fNChMod, fNMod, fNPNs, fNTowersMax, fROSEMode, fRunNum, and fRunType.

00038                                           {
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 }

void TRunInfo::Set ( Int_t  iv[]  ) 

Definition at line 74 of file TRunInfo.cc.

References fFrameLength, fFrameLengthPN, fNChMod, fNMod, fNPNs, fNTowersMax, fROSEMode, fRunNum, fRunType, and fSoftVersion.

00074                               {
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 }

void TRunInfo::SetInfo1 ( Char_t *  fi  )  [inline]

Definition at line 54 of file TRunInfo.h.

References fInfo1.

00054 { fInfo1.Append( fi ); }

void TRunInfo::SetInfo2 ( Char_t *  fi  )  [inline]

Definition at line 56 of file TRunInfo.h.

References fInfo2.

00056 { fInfo2.Append( fi ); }

void TRunInfo::SetNTowMax ( Int_t  n  ) 

Definition at line 90 of file TRunInfo.cc.

References fNTowersMax.

00091 {
00092   fNTowersMax    = n;
00093 }


Member Data Documentation

Int_t TRunInfo::fFrameLength [private]

Definition at line 20 of file TRunInfo.h.

Referenced by GetFrameLength(), Init(), Print(), and Set().

Int_t TRunInfo::fFrameLengthPN [private]

Definition at line 23 of file TRunInfo.h.

Referenced by GetFrameLengthPN(), Init(), Print(), and Set().

TStringLong TRunInfo::fInfo1 [private]

Definition at line 27 of file TRunInfo.h.

Referenced by GetInfo1(), and SetInfo1().

TStringLong TRunInfo::fInfo2 [private]

Definition at line 28 of file TRunInfo.h.

Referenced by GetInfo2(), and SetInfo2().

Int_t TRunInfo::fNChMod [private]

Definition at line 18 of file TRunInfo.h.

Referenced by GetNChMod(), Init(), Print(), and Set().

Int_t TRunInfo::fNMod [private]

Definition at line 17 of file TRunInfo.h.

Referenced by GetNMod(), Init(), Print(), and Set().

Int_t TRunInfo::fNPNs [private]

Definition at line 22 of file TRunInfo.h.

Referenced by GetNPNs(), Init(), Print(), and Set().

Int_t TRunInfo::fNTowersMax [private]

Definition at line 15 of file TRunInfo.h.

Referenced by GetNTowersMax(), Init(), Print(), Set(), and SetNTowMax().

Int_t TRunInfo::fROSEMode [private]

Definition at line 19 of file TRunInfo.h.

Referenced by GetROSEMode(), Init(), Print(), and Set().

Int_t TRunInfo::fRunNum [private]

Definition at line 13 of file TRunInfo.h.

Referenced by GetRunNum(), Init(), Print(), and Set().

Int_t TRunInfo::fRunType [private]

Definition at line 14 of file TRunInfo.h.

Referenced by GetRunType(), Init(), Print(), and Set().

Int_t TRunInfo::fSoftVersion [private]

Definition at line 25 of file TRunInfo.h.

Referenced by GetSoftVersion(), Init(), and Set().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:37 2009 for CMSSW by  doxygen 1.5.4