StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuEmcTowerData.h
1 
9 #ifndef StMuEmcTowerData__h
10 #define StMuEmcTowerData__h
11 
12 #include "TObject.h"
13 #include "Stiostream.h"
14 #include "StEnumerations.h"
15 
16 enum {bemc=1, bprs=2, bsmde=3, bsmdp=4, eemc=5, eprs=6, esmdu=7, esmdv=8};
17 
18 class StMuEmcTowerData: public TObject
19 {
20  public:
23  virtual ~StMuEmcTowerData();
24  int towerADC(int id, int detector = bemc) const;
25  StEmcCrateStatus crateStatus(int crate, int detector = bemc) const;
26  void clearBemc();
27  void clearEemc();
28 
29  // EEMC utility methods
30  int getNEndcapTowerADC() const { return nEndcapTowers;}
31  void getEndcapTowerADC(int ihit, int &adc, int &sec, int &sub, int & eta) const;
32 
33  void setTowerADC(int,int, int detector = bemc);
34  void setCrateStatus(StEmcCrateStatus status, int crate, int detector = bemc);
35 
36  enum { nBTowCrates=30, nBSmdCrates=8, nBPrsCrates=4, nETowCrates=6,
37  nESmdCrates=36, nEPrsCrates=12};
38 
39  protected:
40  enum {nEmcTowers=4800, nEndcapTowers=720};
41  unsigned short mTowerADC[nEmcTowers];
42  unsigned short mEndcapTowerADC[nEndcapTowers];
43  unsigned char mBTowCrateFlags[nBTowCrates];
44  unsigned char mBSmdCrateFlags[nBSmdCrates];
45  unsigned char mBPrsCrateFlags[nBPrsCrates];
46  unsigned char mETowCrateFlags[nETowCrates];
47  unsigned char mESmdCrateFlags[nESmdCrates];
48  unsigned char mEPrsCrateFlags[nEPrsCrates];
49  ClassDef(StMuEmcTowerData,1)
50 };
51 
52 
53 
54 #endif
55