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
N_TRANSFORMS
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
HcalDetIdTransform
Definition:
HcalDetIdTransform.h:6
HcalDetIdTransform::validateCode
void validateCode(unsigned transformCode)
Definition:
HcalDetIdTransform.cc:42
HcalDetId
Definition:
HcalDetId.h:12
HcalDetIdTransform::N_TRANSFORMS
Definition:
HcalDetIdTransform.h:16
HcalDetIdTransform::RAWID
Definition:
HcalDetIdTransform.h:12
HcalDetIdTransform::IETA
Definition:
HcalDetIdTransform.h:13
HcalDetIdTransform::IETAABS
Definition:
HcalDetIdTransform.h:14
HcalDetIdTransform::SUBDET
Definition:
HcalDetIdTransform.h:15
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition:
HcalDetIdTransform.cc:8
Generated for CMSSW Reference Manual by
1.8.11