StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtHybrid.h
1 #ifndef StSvtHybrid_h
2 #define StSvtHybrid_h
3 /*************************************************************
4  *
5  *
6  *************************************************************/
7 class StSvtHybrid {
8 public:
9  StSvtHybrid(int barrel = 0, int ladder = 0, int wafer = 0, int hybrid = 0) {
10  mBarrel = barrel; mLadder = ladder; mWafer = wafer; mHybrid = hybrid;
11  }
12  virtual ~StSvtHybrid() {}
13  int getBarrelID() {return mBarrel;} // return Barrel number
14  int getLadderID() {return mLadder;} // return Ladder number
15  int getWaferID() {return mWafer;} // return Wafer number
16  int getHybridID() {return mHybrid;} // return Hybrid number
17  int getLayerID() {return 2*mBarrel + mLadder%2 - 1;} // return Layer number
18 
19  void setBarrelID(int barrel) {mBarrel = barrel;} // set Barrel number
20  void setLadderID(int ladder) {mLadder = ladder;} // set Ladder number
21  void setWaferID(int wafer) {mWafer = wafer;} // set Wafer number
22  void setHybridID(int hybrid) {mHybrid = hybrid;} // set Hybrid number
23  void setHybrid(int barrel, int ladder, int wafer, int hybrid) {mBarrel = barrel;
24  mLadder = ladder;
25  mWafer = wafer;
26  mHybrid = hybrid;}
27 
28 protected:
29 
30  int mBarrel; // Barrel number
31  int mLayer; // Layer number
32  int mLadder; // Ladder number
33  int mWafer; // Wafer number
34  int mHybrid; // Hybrid number
35 };
36 #endif