1 #ifndef St_tpcPadGainT0C_h
2 #define St_tpcPadGainT0C_h
5 #include "tables/St_tpcPadGainT0_Table.h"
6 #include "St_tpcPadConfigC.h"
11 tpcPadGainT0_st *Struct()
const {
return ((St_tpcPadGainT0 *) Table())->GetTable();}
12 Int_t run()
const {
return Struct()->run;}
13 Float_t *Gains(Int_t sector, Int_t row) {
return (((St_tpcPadGainT0 *) Table())->GetTable())->Gain[sector-1][row-1];}
14 Float_t
Gain(Int_t sector, Int_t row, Int_t pad)
const {
16 if ((sector > 0 && sector <= 24) && (row > 0 && row <= St_tpcPadConfigC::instance()->padRows(sector)) && (pad > 0 && pad <= 182)) {
17 gain = Struct()->Gain[sector-1][row-1][pad-1];
21 Float_t T0(Int_t sector, Int_t row, Int_t pad)
const {
23 if ((sector > 0 && sector <= 24) && (row > 0 && row <= St_tpcPadConfigC::instance()->padRows(sector)) && (pad > 0 && pad <= 182)) {
24 t0 = Struct()->T0[sector-1][row-1][pad-1];
28 Bool_t livePadrow(Int_t sector, Int_t row) {
29 for (Int_t pad=1; pad<=182; pad++) if (Gain(sector,row,pad)>0)
return kTRUE;
38 ClassDefChair(St_tpcPadGainT0, tpcPadGainT0_st )
void Browse(TBrowser *b)
Browse this dataset (called by TBrowser).