CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalRingCalibrationTools.h
Go to the documentation of this file.
1 #ifndef EcalRingCalibrationTools_h
2 #define EcalRingCalibrationTools_h
3 
4 /****************************************
5  *
6  * 25/09/2007 P. Meridiani (CERN)
7  * Description:
8  * Tools to ease the hanling of indices
9  * for ECAL ring intercalibration
10  *
11  ***************************************/
12 
13 #include <vector>
16 
17 class DetId;
18 class CaloGeometry;
19 
21 {
22  public:
25 
27  static short getRingIndex(DetId aDetId);
28 
29  static short getModuleIndex(DetId aDetId);
30 
32  static std::vector<DetId> getDetIdsInRing(short aRingIndex);
33  static std::vector<DetId> getDetIdsInModule(short int);
34  static std::vector<DetId> getDetIdsInECAL();
35 
36  static const short N_RING_TOTAL = 248;
37  static const short N_RING_BARREL = 170 ;
38  static const short N_RING_ENDCAP = 78;
39 
40  static const short N_MODULES_BARREL = 144;
41 
43 
44  private:
45 
46  static void initializeFromGeometry(); //needed only for the endcap
47 
49  static short endcapRingIndex_[EEDetId::IX_MAX][EEDetId::IY_MAX]; //array needed only for the endcaps
50  static const CaloGeometry* caloGeometry_;
51 
52 };
53 #endif
static short endcapRingIndex_[EEDetId::IX_MAX][EEDetId::IY_MAX]
static short getModuleIndex(DetId aDetId)
static const CaloGeometry * caloGeometry_
static short getRingIndex(DetId aDetId)
Retrieve the phi-ring index corresponding to a DetId.
static std::vector< DetId > getDetIdsInRing(short aRingIndex)
Retrieve the DetIds in a phi-ring.
static std::vector< DetId > getDetIdsInModule(short int)
static const int IX_MAX
Definition: EEDetId.h:303
Definition: DetId.h:20
static void setCaloGeometry(const CaloGeometry *geometry)
static std::vector< DetId > getDetIdsInECAL()
ESHandle< TrackerGeometry > geometry
static const int IY_MAX
Definition: EEDetId.h:307