1 #ifndef St_itpcPadGainT0C_h
2 #define St_itpcPadGainT0C_h
5 #include "tables/St_itpcPadGainT0_Table.h"
8 Int_t row, padMin, padMax, fee, rdo;
13 itpcPadGainT0_st *Struct(Int_t i = 0)
const {
return ((St_itpcPadGainT0*) Table())->GetTable()+i;}
14 UInt_t getNumRows()
const {
return GetNRows();}
15 Int_t run(Int_t i = 0)
const {
return Struct(i)->run;}
16 Float_t *Gains(Int_t sector, Int_t row) {
return (((St_itpcPadGainT0 *) Table())->GetTable())->Gain[sector-1][row-1];}
17 Float_t
Gain(Int_t sector, Int_t row, Int_t pad)
const {
18 return ((sector > 0 && sector <= 24) && (row > 0 && row <= 40) && (pad > 0 && pad <= 120)) ?
19 Struct()->Gain[sector-1][row-1][pad-1] : 0;
21 Float_t T0(Int_t sector, Int_t row, Int_t pad)
const {
22 return ((sector > 0 && sector <= 24) && (row > 0 && row <= 40) && (pad > 0 && pad <= 120)) ?
23 Struct()->T0[sector-1][row-1][pad-1] : 0;
25 Bool_t livePadrow(Int_t sector, Int_t row) {
26 for (Int_t pad=1; pad<=120; pad++) if (Gain(sector,row,pad)>0)
return kTRUE;
31 static Int_t NCrowpadFEE;
37 ClassDefChair(St_itpcPadGainT0, itpcPadGainT0_st )
void Browse(TBrowser *b)
Browse this dataset (called by TBrowser).