StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRtsTable.cxx
1 #include "StRtsTable.h"
2 
3 UInt_t StRtsTable::fToken =0; //< current token
4 UInt_t StRtsTable::fTrgcmd =0; //< current trigger command
5 UInt_t StRtsTable::fDaqcmd =0; //< current DAQ command
6 UInt_t StRtsTable::fTrgword =0; //< the Trigger Word
7 UInt_t StRtsTable::fPhyword =0; //< the Physics Word
8 UInt_t StRtsTable::fDaqbits =0; //< "offline" bits aka L3 summary...
9 UInt_t StRtsTable::fDaqbits_l1=0; //< triggers satisfying l1
10 UInt_t StRtsTable::fDaqbits_l2=0; //< triggers satisfying l2
11 UInt_t StRtsTable::fEvpgroups =0; //< evp groups aka L3 summary[2]
12 
13 UInt_t StRtsTable::fDetectors=0; //< detectors present bit mask according to DAQ!
14 
15 UInt_t StRtsTable::fDetsinrun=0; //< I nave no idea what it is about (vf)
16 UInt_t StRtsTable::fEvpgroupsinrun=0;//< I nave no idea what it is about (vf)
17 
19 public:
20  StRtsTableDescriptor(size_t structLength) :
22  {
23  tableDescriptor_st &row = *GetTable();
24  row.fSize = structLength;
25  row.fTypeSize= sizeof(unsigned char);
26  row.fType=kUChar;
27  }
28 };
29 //________________________________________________________
30 StRtsTable::StRtsTable(size_t structLength, Int_t n) :
31  TGenericTable(StRtsTableDescriptor(structLength),1)
32  {
34  if (dsc) fSize = dsc->Sizeof();
35  if ( !dsc || ((size_t)fSize != structLength) ) {
36  assert(0);
37  Warning("TGenericTable","Wrong table format");
38  }
39  if (n > 0) Set(n);
40  SetGenericType();
41  }
virtual TTableDescriptor * GetDescriptorPointer() const
return column descriptor
Int_t Sizeof() const
to be documented
virtual void Set(Int_t n)
Set array size of TTable object to n longs. If n&lt;0 leave array unchanged.
Definition: TTable.cxx:1952