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()
17  };
18 
19  // Transform the detector id
20  unsigned transform(const HcalDetId& id, unsigned transformCode);
21 
22  // The following function will throw an exception
23  // if the transform code is invalid
24  void validateCode(unsigned transformCode);
25 }
26 
27 #endif // CondFormats_HcalObjects_HcalDetIdTransform_h
void validateCode(unsigned transformCode)
unsigned transform(const HcalDetId &id, unsigned transformCode)