00001 #ifndef St_beamInfoC_h
00002 #define St_beamInfoC_h
00003
00004 #include "TChair.h"
00005 #include "tables/St_beamInfo_Table.h"
00006
00007 class St_beamInfoC : public TChair {
00008 public:
00009 static St_beamInfoC* instance();
00010 beamInfo_st *Struct(Int_t i = 0) {return ((St_beamInfo*) Table())->GetTable()+i;}
00011 UInt_t getNumRows() {return GetNRows();}
00012 UInt_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
00013 Int_t entryTag(Int_t i = 0) {return Struct(i)->entryTag;}
00014 Char_t* blueSpecies(Int_t i = 0) {return Struct(i)->blueSpecies;}
00015 UInt_t blueMassNumber(Int_t i = 0) {return Struct(i)->blueMassNumber;}
00016 Float_t blueEnergy(Int_t i = 0) {return Struct(i)->blueEnergy;}
00017 Float_t blueIntensity(Int_t i = 0) {return Struct(i)->blueIntensity;}
00018 Float_t blueLifeTime(Int_t i = 0) {return Struct(i)->blueLifeTime;}
00019 Float_t blueBunchIntensity(Int_t i = 0) {return Struct(i)->blueBunchIntensity;}
00020 Char_t* yellowSpecies(Int_t i = 0) {return Struct(i)->yellowSpecies;}
00021 UInt_t yellowMassNumber(Int_t i = 0) {return Struct(i)->yellowMassNumber;}
00022 Float_t yellowEnergy(Int_t i = 0) {return Struct(i)->yellowEnergy;}
00023 Float_t yellowIntensity(Int_t i = 0) {return Struct(i)->yellowIntensity;}
00024 Float_t yellowLifeTime(Int_t i = 0) {return Struct(i)->yellowLifeTime;}
00025 Float_t yellowBunchIntensity(Int_t i =0) {return Struct(i)->yellowBunchIntensity;}
00026 Float_t blueFillNumber(Int_t i = 0) {return Struct(i)->blueFillNumber;}
00027 Float_t yellowFillNumber(Int_t i = 0) {return Struct(i)->yellowFillNumber;}
00028 UInt_t getRunNumber(Int_t i=0) {return runNumber(i);}
00029 Int_t getEntryTag(Int_t i=0) {return entryTag(i);}
00030 Char_t* getBlueSpecies(Int_t i=0) {return blueSpecies(i);}
00031 UInt_t getBlueMassNumber(Int_t i=0) {return blueMassNumber(i);}
00032 Float_t getBlueEnergy(Int_t i=0) {return blueEnergy(i);}
00033 Float_t getBlueIntensity(Int_t i=0) {return blueIntensity(i);}
00034 Float_t getBlueLifeTime(Int_t i=0) {return blueLifeTime(i);}
00035 Float_t getBlueBunchIntensity(Int_t i=0) {return blueBunchIntensity(i);}
00036 Float_t getBlueFillNumber(Int_t i=0) {return blueFillNumber(i);}
00037 Char_t* getYellowSpecies(Int_t i=0) {return yellowSpecies(i);}
00038 UInt_t getYellowMassNumber(Int_t i=0) {return yellowMassNumber(i);}
00039 Float_t getYellowEnergy(Int_t i=0) {return yellowEnergy(i);}
00040 Float_t getYellowIntensity(Int_t i=0) {return yellowIntensity(i);}
00041 Float_t getYellowLifeTime(Int_t i=0) {return yellowLifeTime(i);}
00042 Float_t getYellowBunchIntensity(Int_t i=0){return yellowBunchIntensity(i);}
00043 Float_t getYellowFillNumber(Int_t i=0) {return yellowFillNumber(i);}
00044 protected:
00045 St_beamInfoC(St_beamInfo *table=0) : TChair(table) {}
00046 virtual ~St_beamInfoC() {fgInstance = 0;}
00047 private:
00048 static St_beamInfoC* fgInstance;
00049 ClassDefChair(St_beamInfo, beamInfo_st )
00050 ClassDef(St_beamInfoC,1)
00051 };
00052 #endif