Main Page
Namespaces
Classes
Package Documentation
CondFormats
HcalObjects
interface
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
{
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
18
N_TRANSFORMS
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
HcalDetIdTransform::RAWID
Definition:
HcalDetIdTransform.h:12
HcalDetIdTransform::SUBDET
Definition:
HcalDetIdTransform.h:15
HcalDetIdTransform::IETADEPTH
Definition:
HcalDetIdTransform.h:16
HcalDetIdTransform
Definition:
HcalDetIdTransform.h:6
HcalDetIdTransform::validateCode
void validateCode(unsigned transformCode)
Definition:
HcalDetIdTransform.cc:51
HcalDetId
Definition:
HcalDetId.h:13
HcalDetIdTransform::N_TRANSFORMS
Definition:
HcalDetIdTransform.h:18
HcalDetIdTransform::IETAABS
Definition:
HcalDetIdTransform.h:14
HcalDetIdTransform::IETAABSDEPTH
Definition:
HcalDetIdTransform.h:17
HcalDetIdTransform::IETA
Definition:
HcalDetIdTransform.h:13
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition:
HcalDetIdTransform.cc:8
Generated for CMSSW Reference Manual by
1.8.11