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