00001 #include "StRtsTable.h"
00002
00003 UInt_t StRtsTable::fToken =0;
00004 UInt_t StRtsTable::fTrgcmd =0;
00005 UInt_t StRtsTable::fDaqcmd =0;
00006 UInt_t StRtsTable::fTrgword =0;
00007 UInt_t StRtsTable::fPhyword =0;
00008 UInt_t StRtsTable::fDaqbits =0;
00009 UInt_t StRtsTable::fDaqbits_l1=0;
00010 UInt_t StRtsTable::fDaqbits_l2=0;
00011 UInt_t StRtsTable::fEvpgroups =0;
00012
00013 UInt_t StRtsTable::fDetectors=0;
00014
00015 UInt_t StRtsTable::fDetsinrun=0;
00016 UInt_t StRtsTable::fEvpgroupsinrun=0;
00017
00018 class StRtsTableDescriptor : public TTableDescriptor {
00019 public:
00020 StRtsTableDescriptor(size_t structLength) :
00021 TTableDescriptor(1)
00022 {
00023 tableDescriptor_st &row = *GetTable();
00024 row.fSize = structLength;
00025 row.fTypeSize= sizeof(unsigned char);
00026 row.fType=kUChar;
00027 }
00028 };
00029
00030 StRtsTable::StRtsTable(size_t structLength, Int_t n) :
00031 TGenericTable(*(TTableDescriptor *)&StRtsTableDescriptor(structLength),1)
00032 {
00033 TTableDescriptor *dsc = GetDescriptorPointer();
00034 if (dsc) fSize = dsc->Sizeof();
00035 if ( !dsc || ((size_t)fSize != structLength) ) {
00036 assert(0);
00037 Warning("TGenericTable","Wrong table format");
00038 }
00039 if (n > 0) Set(n);
00040 SetGenericType();
00041 }