StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBTofTables.h
1 /*******************************************************************
2  *
3  * $Id: StBTofTables.h,v 1.1 2009/08/28 17:22:02 dongx Exp $
4  *
5  *****************************************************************
6  *
7  * $Log: StBTofTables.h,v $
8  * Revision 1.1 2009/08/28 17:22:02 dongx
9  * first release
10  *
11  *
12  *******************************************************************/
13 #ifndef STBTOFTABLES_H
14 #define STBTOFTABLES_H
15 
16 #include "TObject.h"
17 
18 #include "tables/St_tofTrayConfig_Table.h"
19 #include "tables/St_tofStatus_Table.h"
20 
21 class StMaker;
22 
27 class StBTofTables : public TObject
28 {
29 protected:
30  static const Int_t mNTray = 120;
31  static const Int_t mNModule = 32;
32  static const Int_t mNCell = 6;
33  static const Int_t mNChanMax = 24000;
34 
36  UShort_t mBTofTrayConfig[mNTray];
37  UShort_t mBTofStatus[mNTray][mNModule][mNCell];
38 
39 public:
41  StBTofTables();
42  virtual ~StBTofTables();
43  void Reset();
44 
46  void loadTables(StMaker* anyMaker);
47 
49  bool trayValid(int trayId) const;
51  int status(int trayId, int moduleId, int cellId) const;
52 
53  ClassDef(StBTofTables, 1);
54 
55 };
56 
57 #endif
UShort_t mBTofTrayConfig[mNTray]
A large number for total channels.
Definition: StBTofTables.h:36
int status(int trayId, int moduleId, int cellId) const
function to return the channel status
StBTofTables()
Default constructor.
bool trayValid(int trayId) const
function to return the tray status
void loadTables(StMaker *anyMaker)
load status tables from data base