CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
6 namespace HcalDetIdTransform {
7  // When you add more transforms, add codes for them at the end
8  // of the enum, just before "N_TRANSFORMS". Don't forget to adjust
9  // the "transform" function accordingly.
10  enum {
11  RAWID = 0, // Raw detector id
12  IETA, // ieta() + shift
13  IETAABS, // ietaAbs()
14  SUBDET, // subdetId()
15  IETADEPTH, // maps ieta() and depth() into a unique number
16  IETAABSDEPTH, // maps ietaAbs() and depth() into a unique number
18  };
19 
20  // Transform the detector id
21  unsigned transform(const HcalDetId& id, unsigned transformCode);
22 
23  // The following function will throw an exception
24  // if the transform code is invalid
25  void validateCode(unsigned transformCode);
26 } // namespace HcalDetIdTransform
27 
28 #endif // CondFormats_HcalObjects_HcalDetIdTransform_h
HcalDetIdTransform::IETAABS
Definition: HcalDetIdTransform.h:13
HcalDetIdTransform::N_TRANSFORMS
Definition: HcalDetIdTransform.h:17
HcalDetIdTransform::IETADEPTH
Definition: HcalDetIdTransform.h:15
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
HcalDetIdTransform::IETA
Definition: HcalDetIdTransform.h:12
HcalDetId
Definition: HcalDetId.h:12
HcalDetIdTransform::RAWID
Definition: HcalDetIdTransform.h:11
HcalDetIdTransform
Definition: HcalDetIdTransform.h:6
HcalDetIdTransform::SUBDET
Definition: HcalDetIdTransform.h:14
HcalDetIdTransform::IETAABSDEPTH
Definition: HcalDetIdTransform.h:16
HcalDetIdTransform::validateCode
void validateCode(unsigned transformCode)
Definition: HcalDetIdTransform.cc:50