00001 #ifndef St_trigL3ExpandedC_h
00002 #define St_trigL3ExpandedC_h
00003
00004 #include "TChair.h"
00005 #include "tables/St_trigL3Expanded_Table.h"
00006
00007 class St_trigL3ExpandedC : public TChair {
00008 public:
00009 static St_trigL3ExpandedC* instance();
00010 trigL3Expanded_st *Struct(Int_t i = 0) {return ((St_trigL3Expanded*) Table())->GetTable()+i;}
00011 UInt_t getNumRows() {return GetNRows();}
00012 Int_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
00013 Char_t* l2TriggerResultType(Int_t i = 0) {return Struct(i)->l2TriggerResultType;}
00014 UChar_t* name(Int_t i = 0) {return Struct(i)->name;}
00015 Int_t l3TrgId(Int_t i = 0) {return Struct(i)->l3TrgId;}
00016 Int_t l3ExpandedTrgId(Int_t i = 0) {return Struct(i)->l3ExpandedTrgId;}
00017 Int_t l2Algo(Int_t i = 0) {return Struct(i)->l2Algo;}
00018 Float_t l2Ps(Int_t i = 0) {return Struct(i)->l2Ps;}
00019 protected:
00020 St_trigL3ExpandedC(St_trigL3Expanded *table=0) : TChair(table) {}
00021 virtual ~St_trigL3ExpandedC() {if (Table()->IsMarked()) delete GetThisTable(); fgInstance = 0;}
00022 private:
00023 static St_trigL3ExpandedC* fgInstance;
00024 ClassDefChair(St_trigL3Expanded, trigL3Expanded_st )
00025 ClassDef(St_trigL3ExpandedC,1)
00026 };
00027 #endif