1 #ifndef St_tofStatusC_h
2 #define St_tofStatusC_h
5 #include "tables/St_tofStatus_Table.h"
10 tofStatus_st *Struct(Int_t i = 0)
const {
return ((St_tofStatus*) Table())->GetTable()+i;}
11 UInt_t getNumRows()
const {
return GetNRows();}
12 UShort_t *status(Int_t i = 0)
const {
return Struct(i)->status;}
13 Int_t status(Int_t trayId, Int_t moduleId, Int_t cellId) {
14 enum {mNModule = 32, mNCell = 6, mNTray=120};
15 if (trayId < 1 || trayId > mNTray ||
16 moduleId < 1 || moduleId > mNModule ||
17 cellId < 1 || cellId > mNCell )
return 0;
18 Int_t i = (cellId -1) + mNCell*((moduleId-1) + mNModule*(trayId-1));
19 return (Int_t) status()[i];
26 ClassDefChair(St_tofStatus, tofStatus_st )