00001 #ifndef STAR_StRtsTable
00002 #define STAR_StRtsTable
00003
00004 #include "TGenericTable.h"
00005
00006 class StRtsTable : public TGenericTable {
00007 private:
00008 Int_t fSector ;
00009 Int_t fRow ;
00010 Int_t fRdo ;
00011 Int_t fPad ;
00012
00013
00014 static UInt_t fToken ;
00015 static UInt_t fTrgcmd ;
00016 static UInt_t fDaqcmd ;
00017 static UInt_t fTrgword ;
00018 static UInt_t fPhyword ;
00019 static UInt_t fDaqbits ;
00020 static UInt_t fDaqbits_l1;
00021 static UInt_t fDaqbits_l2;
00022 static UInt_t fEvpgroups ;
00023
00024 static UInt_t fDetectors ;
00025
00026 static UInt_t fDetsinrun ;
00027 static UInt_t fEvpgroupsinrun;
00028
00029 public:
00030 StRtsTable(const char* structName, Int_t n) : TGenericTable(structName,n){}
00031 StRtsTable(size_t structLength, Int_t n);
00032 void SetAll(Int_t sec,Int_t pad,Int_t rdo,Int_t row);
00033 void SetSector (Int_t s);
00034 void SetPad (Int_t p);
00035 void SetRdo (Int_t r);
00036 void SetRow (Int_t r);
00037
00038 Int_t Sector () const;
00039 Int_t Pad () const;
00040 Int_t Rdo () const;
00041 Int_t Row () const;
00042
00043 static UInt_t Token();
00044 static void SetToken(UInt_t token);
00045 static UInt_t Trgcmd();
00046 static void SetTrgcmd(UInt_t trgcmd);
00047 static UInt_t Daqcmd();
00048 static void SetDaqcmd(UInt_t daqcmd);
00049 static UInt_t Trgword();
00050 static void SetTrgword(UInt_t trgword);
00051 static UInt_t Phyword();
00052 static void SetPhyword(UInt_t phyword);
00053 static UInt_t Daqbits();
00054 static void SetDaqbits(UInt_t daqbits);
00055 static UInt_t Daqbits_l1();
00056 static void SetDaqbits_l1(UInt_t daqbits_l1);
00057 static UInt_t Daqbits_l2();
00058 static void SetDaqbits_l2(UInt_t daqbits_l2);
00059 static UInt_t Evpgroups();
00060 static void SetEvpgroups(UInt_t evpgroups);
00061
00062 static UInt_t Detectors();
00063 static void SetDetectors(UInt_t detectors);
00064
00065 ClassDef(StRtsTable,1);
00066 };
00067
00068 inline Int_t StRtsTable::Sector() const {return fSector;}
00069 inline Int_t StRtsTable::Pad() const {return fPad;}
00070 inline Int_t StRtsTable::Rdo() const {return fRdo;}
00071 inline Int_t StRtsTable::Row() const {return fRow;}
00072
00073 inline UInt_t StRtsTable::Token() {return fToken; }
00074 inline UInt_t StRtsTable::Trgcmd() {return fTrgcmd; }
00075 inline UInt_t StRtsTable::Daqcmd() {return fDaqcmd; }
00076 inline UInt_t StRtsTable::Trgword() {return fTrgword; }
00077 inline UInt_t StRtsTable::Phyword() {return fPhyword; }
00078 inline UInt_t StRtsTable::Daqbits() {return fDaqbits; }
00079 inline UInt_t StRtsTable::Daqbits_l1() {return fDaqbits_l1;}
00080 inline UInt_t StRtsTable::Daqbits_l2() {return fDaqbits_l2;}
00081 inline UInt_t StRtsTable::Evpgroups() {return fEvpgroups;}
00082
00083 inline UInt_t StRtsTable::Detectors() {return fDetectors;}
00084
00085
00086 inline void StRtsTable::SetAll(Int_t sec,Int_t pad,Int_t rdo,Int_t row)
00087 {
00088 SetSector(sec);
00089 SetPad(pad);
00090 SetRdo(rdo);
00091 SetRow(row);
00092 }
00093
00094 inline void StRtsTable::SetSector (Int_t s) {fSector= s;}
00095 inline void StRtsTable::SetPad (Int_t p) {fPad = p;}
00096 inline void StRtsTable::SetRdo (Int_t r) {fRdo = r;}
00097 inline void StRtsTable::SetRow (Int_t r) {fRow = r;}
00098
00099 inline void StRtsTable::SetToken(UInt_t token) { fToken = token; }
00100 inline void StRtsTable::SetTrgcmd(UInt_t trgcmd) { fTrgcmd = trgcmd; }
00101 inline void StRtsTable::SetDaqcmd(UInt_t daqcmd) { fDaqcmd = daqcmd; }
00102 inline void StRtsTable::SetTrgword(UInt_t trgword) { fTrgword = trgword; }
00103 inline void StRtsTable::SetPhyword(UInt_t phyword) { fPhyword = phyword; }
00104 inline void StRtsTable::SetDaqbits(UInt_t daqbits) { fDaqbits = daqbits; }
00105 inline void StRtsTable::SetDaqbits_l1(UInt_t daqbits_l1){ fDaqbits_l1 = daqbits_l1; }
00106 inline void StRtsTable::SetDaqbits_l2(UInt_t daqbits_l2){ fDaqbits_l2 = daqbits_l2; }
00107 inline void StRtsTable::SetEvpgroups(UInt_t evpgroups) { fEvpgroups = evpgroups; }
00108 inline void StRtsTable::SetDetectors(UInt_t detectors) { fDetectors = detectors; }
00109
00110 #endif