CMS 3D CMS Logo

HcalDetIdTransform.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_HcalDetIdTransform_h
2 #define CondFormats_HcalObjects_HcalDetIdTransform_h
3 
4 class HcalDetId;
5 
7 {
8  // When you add more transforms, add codes for them at the end
9  // of the enum, just before "N_TRANSFORMS". Don't forget to adjust
10  // the "transform" function accordingly.
11  enum {
12  RAWID = 0, // Raw detector id
13  IETA, // ieta() + shift
14  IETAABS, // ietaAbs()
15  SUBDET, // subdetId()
16  IETADEPTH, // maps ieta() and depth() into a unique number
17  IETAABSDEPTH, // maps ietaAbs() and depth() into a unique number
19  };
20 
21  // Transform the detector id
22  unsigned transform(const HcalDetId& id, unsigned transformCode);
23 
24  // The following function will throw an exception
25  // if the transform code is invalid
26  void validateCode(unsigned transformCode);
27 }
28 
29 #endif // CondFormats_HcalObjects_HcalDetIdTransform_h
void validateCode(unsigned transformCode)
unsigned transform(const HcalDetId &id, unsigned transformCode)