StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CalibrationHelperFunctions.h
1 //Basic functions for geometries, bad towers, etc.
2 
3 #ifndef CalibrationHelperFunctions_HH
4 #define CalibrationHelperFunctions_HH
5 
7 {
8  private:
9  static const int ntowers = 4800;
10 
11  float tower_eta[ntowers];
12  float tower_phi[ntowers];
13  float tower_theta[ntowers];
14 
15  //these functions use switch statements to set tower status arrays in ctor
16  int towerStatus2004(int towerid);
17  int towerStatus2005(int towerid);
18  int towerStatus2006(int towerid);
19 
20  public:
23 
24  float getEta(int towerid) {return tower_eta[towerid-1];}
25  float getTheta(int towerid) {return tower_theta[towerid-1];}
26  float getPhi(int towerid) {return tower_phi[towerid-1];}
27 
28  bool isGoodTower2004(int towerid);
29  bool isGoodTower2005(int towerid);
30  bool isGoodTower2006(int towerid);
31 
32  bool isBadIso2005(int towerid);
33  bool isBadPoverE2005(int towerid);
34 };
35 
36 #endif