00001
00002
00003 #ifndef CalibrationHelperFunctions_HH
00004 #define CalibrationHelperFunctions_HH
00005
00006 class CalibrationHelperFunctions
00007 {
00008 private:
00009 static const int ntowers = 4800;
00010
00011 float tower_eta[ntowers];
00012 float tower_phi[ntowers];
00013 float tower_theta[ntowers];
00014
00015
00016 int towerStatus2004(int towerid);
00017 int towerStatus2005(int towerid);
00018 int towerStatus2006(int towerid);
00019
00020 public:
00021 CalibrationHelperFunctions();
00022 ~CalibrationHelperFunctions();
00023
00024 float getEta(int towerid) {return tower_eta[towerid-1];}
00025 float getTheta(int towerid) {return tower_theta[towerid-1];}
00026 float getPhi(int towerid) {return tower_phi[towerid-1];}
00027
00028 bool isGoodTower2004(int towerid);
00029 bool isGoodTower2005(int towerid);
00030 bool isGoodTower2006(int towerid);
00031
00032 bool isBadIso2005(int towerid);
00033 bool isBadPoverE2005(int towerid);
00034 };
00035
00036 #endif