00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef STBTOFTABLES_H
00014 #define STBTOFTABLES_H
00015
00016 #include "TObject.h"
00017
00018 #include "tables/St_tofTrayConfig_Table.h"
00019 #include "tables/St_tofStatus_Table.h"
00020
00021 class StMaker;
00022
00027 class StBTofTables : public TObject
00028 {
00029 protected:
00030 static const Int_t mNTray = 120;
00031 static const Int_t mNModule = 32;
00032 static const Int_t mNCell = 6;
00033 static const Int_t mNChanMax = 24000;
00034
00036 UShort_t mBTofTrayConfig[mNTray];
00037 UShort_t mBTofStatus[mNTray][mNModule][mNCell];
00038
00039 public:
00041 StBTofTables();
00042 virtual ~StBTofTables();
00043 void Reset();
00044
00046 void loadTables(StMaker* anyMaker);
00047
00049 bool trayValid(int trayId) const;
00051 int status(int trayId, int moduleId, int cellId) const;
00052
00053 ClassDef(StBTofTables, 1);
00054
00055 };
00056
00057 #endif