CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Attributes
ETLDetId Class Reference

Detector identifier class for the Endcap Timing Layer. More...

#include <ETLDetId.h>

Inheritance diagram for ETLDetId:
MTDDetId DetId

Public Types

enum  EtlLayout { EtlLayout::tp = 1, EtlLayout::v4 = 2, EtlLayout::v5 = 3, EtlLayout::v8 = 4 }
 
- Public Types inherited from MTDDetId
enum  MTDType { typeUNKNOWN = 0, BTL = 1, ETL = 2 }
 
enum  SubDetector { subUNKNOWN = 0, FastTime = 1 }
 
- Public Types inherited from DetId
enum  Detector {
  Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4,
  Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8,
  HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11
}
 

Public Member Functions

int discSide () const
 
uint32_t encodeSector (uint32_t &disc, uint32_t &discside, uint32_t &sector) const
 
 ETLDetId ()
 
 ETLDetId (const uint32_t &raw_id)
 
 ETLDetId (const DetId &det_id)
 
 ETLDetId (uint32_t zside, uint32_t ring, uint32_t module, uint32_t modtyp)
 
 ETLDetId (uint32_t zside, uint32_t ring, uint32_t module, uint32_t modtyp, uint32_t sensor)
 
 ETLDetId (uint32_t zside, uint32_t disc, uint32_t discside, uint32_t sector, uint32_t module, uint32_t modtyp)
 
 ETLDetId (uint32_t zside, uint32_t disc, uint32_t discside, uint32_t sector, uint32_t module, uint32_t modtyp, uint32_t sensor)
 
ETLDetId geographicalId () const
 
int modType () const
 
int module () const
 
int nDisc () const
 
uint32_t newForm (const uint32_t &rawid)
 
int sector () const
 
int sensor () const
 
- Public Member Functions inherited from MTDDetId
 MTDDetId ()
 
 MTDDetId (const uint32_t &raw_id)
 
 MTDDetId (const DetId &det_id)
 
 MTDDetId (Detector det, int subdet)
 
int mtdRR () const
 
int mtdSide () const
 
int mtdSubDetector () const
 
SubDetector subDetector () const
 
int zside () const
 
- Public Member Functions inherited from DetId
constexpr Detector det () const
 get the detector field from this detid More...
 
constexpr DetId ()
 Create an empty or null id (also for persistence) More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. More...
 
constexpr DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr bool null () const
 is this a null id ? More...
 
constexpr operator uint32_t () const
 
constexpr bool operator!= (DetId id) const
 inequality More...
 
constexpr uint32_t operator() () const
 
constexpr bool operator< (DetId id) const
 comparison More...
 
constexpr bool operator== (DetId id) const
 equality More...
 
constexpr uint32_t rawId () const
 get the raw id More...
 
constexpr int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Public Member Functions

static void decodeSector (const uint32_t rr, uint32_t &nDisc, uint32_t &discSide, uint32_t &sector)
 

Static Public Attributes

static constexpr uint32_t kETLdiscSideMask = 0x1
 
static constexpr uint32_t kETLdiscSideOffset = 2
 
static constexpr uint32_t kETLmodTypeMask = 0x3
 
static constexpr uint32_t kETLmodTypeOffset = 3
 
static constexpr uint32_t kETLmoduleMask = 0x7FF
 
static constexpr uint32_t kETLmoduleOffset = 5
 
static constexpr uint32_t kETLnDiscMask = 0x1
 
static constexpr uint32_t kETLnDiscOffset = 3
 constants for the TDR ETL model More...
 
static constexpr uint32_t kETLsectorMask = 0x3
 
static constexpr uint32_t kETLsensorMask = 0x3
 
static constexpr uint32_t kETLsensorOffset = 1
 
static constexpr int kETLv1maxModule = 176
 
static constexpr int kETLv1maxRing = 11
 
static constexpr int kETLv1nDisc = 1
 
static constexpr int kETLv4maxModule = 248
 
static constexpr int kETLv4maxRing = 16
 
static constexpr int kETLv4maxSector = 4
 
static constexpr int kETLv4nDisc = 2
 
static constexpr int kETLv5maxModule = 517
 
static constexpr int kETLv5maxRing = 14
 
static constexpr int kETLv5maxSector = 2
 
static constexpr int kETLv5nDisc = kETLv4nDisc
 
static constexpr uint32_t kSoff = 4
 
- Static Public Attributes inherited from MTDDetId
static const uint32_t kMTDsubdMask = 0x3
 
static const uint32_t kMTDsubdOffset = 23
 
static const uint32_t kRodRingMask = 0x3F
 
static const uint32_t kRodRingOffset = 16
 
static const uint32_t kZsideMask = 0x1
 
static const uint32_t kZsideOffset = 22
 
- Static Public Attributes inherited from DetId
static const int kDetMask = 0xF
 
static const int kDetOffset = 28
 
static const int kSubdetMask = 0x7
 
static const int kSubdetOffset = 25
 

Static Private Attributes

static constexpr uint32_t kETLformatV2 = 1
 
static constexpr uint32_t kETLoldFieldMask = 0x7FFF
 
static constexpr uint32_t kETLoldToNewShift = 2
 

Additional Inherited Members

- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Detector identifier class for the Endcap Timing Layer.

bit 15-5 : module sequential number bit 4-3 : module type (unused so far) bit 2-1 : sensor

Definition at line 16 of file ETLDetId.h.

Member Enumeration Documentation

◆ EtlLayout

enum ETLDetId::EtlLayout
strong
Enumerator
tp 
v4 
v5 
v8 

Definition at line 54 of file ETLDetId.h.

54 { tp = 1, v4 = 2, v5 = 3, v8 = 4 };

Constructor & Destructor Documentation

◆ ETLDetId() [1/7]

ETLDetId::ETLDetId ( )
inline

Construct a null id

Definition at line 59 of file ETLDetId.h.

References DetId::id_, kETLformatV2, MTDDetId::kMTDsubdMask, and MTDDetId::kMTDsubdOffset.

60  id_ |= (MTDType::ETL & kMTDsubdMask) << kMTDsubdOffset;
61  id_ |= kETLformatV2;
62  }
MTDDetId()
Definition: MTDDetId.h:39
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:30
uint32_t id_
Definition: DetId.h:69

◆ ETLDetId() [2/7]

ETLDetId::ETLDetId ( const uint32_t &  raw_id)
inline

Construct from a raw value

Definition at line 65 of file ETLDetId.h.

References DetId::id_, kETLformatV2, MTDDetId::MTDDetId(), and newForm().

65  {
66  uint32_t tmpId = raw_id;
67  if ((tmpId & kETLformatV2) == 0) {
68  tmpId = newForm(tmpId);
69  }
70  id_ = MTDDetId(tmpId).rawId();
71  }
MTDDetId()
Definition: MTDDetId.h:39
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
uint32_t id_
Definition: DetId.h:69
uint32_t newForm(const uint32_t &rawid)
Definition: ETLDetId.h:168

◆ ETLDetId() [3/7]

ETLDetId::ETLDetId ( const DetId det_id)
inline

Construct from generic DetId

Definition at line 74 of file ETLDetId.h.

References DetId::id_, kETLformatV2, MTDDetId::MTDDetId(), newForm(), and DetId::rawId().

74  {
75  uint32_t tmpId = det_id.rawId();
76  if ((tmpId & kETLformatV2) == 0) {
77  tmpId = newForm(tmpId);
78  }
79  id_ = MTDDetId(tmpId).rawId();
80  }
MTDDetId()
Definition: MTDDetId.h:39
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
uint32_t id_
Definition: DetId.h:69
uint32_t newForm(const uint32_t &rawid)
Definition: ETLDetId.h:168

◆ ETLDetId() [4/7]

ETLDetId::ETLDetId ( uint32_t  zside,
uint32_t  ring,
uint32_t  module,
uint32_t  modtyp 
)
inline

Construct and fill only the det and sub-det fields.

Definition at line 84 of file ETLDetId.h.

References DetId::id_, kETLformatV2, kETLmodTypeMask, kETLmodTypeOffset, kETLmoduleMask, kETLmoduleOffset, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, MTDDetId::kZsideOffset, relativeConstraints::ring, and MTDDetId::zside().

86  id_ |= (MTDType::ETL & kMTDsubdMask) << kMTDsubdOffset | (zside & kZsideMask) << kZsideOffset |
88  (modtyp & kETLmodTypeMask) << kETLmodTypeOffset;
89  id_ |= kETLformatV2;
90  }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
MTDDetId()
Definition: MTDDetId.h:39
static constexpr uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:26
static const uint32_t kZsideOffset
Definition: MTDDetId.h:31
static constexpr uint32_t kETLmoduleOffset
Definition: ETLDetId.h:24
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:30
static constexpr uint32_t kETLmodTypeMask
Definition: ETLDetId.h:27
static const uint32_t kZsideMask
Definition: MTDDetId.h:32
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kETLmoduleMask
Definition: ETLDetId.h:25
int zside() const
Definition: MTDDetId.h:61

◆ ETLDetId() [5/7]

ETLDetId::ETLDetId ( uint32_t  zside,
uint32_t  ring,
uint32_t  module,
uint32_t  modtyp,
uint32_t  sensor 
)
inline

Definition at line 92 of file ETLDetId.h.

References DetId::id_, kETLformatV2, kETLmodTypeMask, kETLmodTypeOffset, kETLmoduleMask, kETLmoduleOffset, kETLsensorMask, kETLsensorOffset, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, MTDDetId::kZsideOffset, relativeConstraints::ring, sensor(), and MTDDetId::zside().

94  id_ |= (MTDType::ETL & kMTDsubdMask) << kMTDsubdOffset | (zside & kZsideMask) << kZsideOffset |
97  id_ |= kETLformatV2;
98  }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
MTDDetId()
Definition: MTDDetId.h:39
static constexpr uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:26
static constexpr uint32_t kETLsensorOffset
Definition: ETLDetId.h:28
static constexpr uint32_t kETLsensorMask
Definition: ETLDetId.h:29
static const uint32_t kZsideOffset
Definition: MTDDetId.h:31
static constexpr uint32_t kETLmoduleOffset
Definition: ETLDetId.h:24
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
int sensor() const
Definition: ETLDetId.h:148
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:30
static constexpr uint32_t kETLmodTypeMask
Definition: ETLDetId.h:27
static const uint32_t kZsideMask
Definition: MTDDetId.h:32
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kETLmoduleMask
Definition: ETLDetId.h:25
int zside() const
Definition: MTDDetId.h:61

◆ ETLDetId() [6/7]

ETLDetId::ETLDetId ( uint32_t  zside,
uint32_t  disc,
uint32_t  discside,
uint32_t  sector,
uint32_t  module,
uint32_t  modtyp 
)
inline

Definition at line 116 of file ETLDetId.h.

References TtSemiLepEvtBuilder_cfi::disc, encodeSector(), DetId::id_, kETLformatV2, kETLmodTypeMask, kETLmodTypeOffset, kETLmoduleMask, kETLmoduleOffset, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, MTDDetId::kZsideOffset, sector(), and MTDDetId::zside().

118  id_ |= (MTDType::ETL & kMTDsubdMask) << kMTDsubdOffset | (zside & kZsideMask) << kZsideOffset |
119  (encodeSector(disc, discside, sector) & kRodRingMask) << kRodRingOffset |
121  id_ |= kETLformatV2;
122  }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
MTDDetId()
Definition: MTDDetId.h:39
static constexpr uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:26
static const uint32_t kZsideOffset
Definition: MTDDetId.h:31
static constexpr uint32_t kETLmoduleOffset
Definition: ETLDetId.h:24
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
uint32_t encodeSector(uint32_t &disc, uint32_t &discside, uint32_t &sector) const
Definition: ETLDetId.h:103
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
int sector() const
Definition: ETLDetId.h:156
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:30
static constexpr uint32_t kETLmodTypeMask
Definition: ETLDetId.h:27
static const uint32_t kZsideMask
Definition: MTDDetId.h:32
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kETLmoduleMask
Definition: ETLDetId.h:25
int zside() const
Definition: MTDDetId.h:61

◆ ETLDetId() [7/7]

ETLDetId::ETLDetId ( uint32_t  zside,
uint32_t  disc,
uint32_t  discside,
uint32_t  sector,
uint32_t  module,
uint32_t  modtyp,
uint32_t  sensor 
)
inline

Definition at line 124 of file ETLDetId.h.

References TtSemiLepEvtBuilder_cfi::disc, encodeSector(), DetId::id_, kETLformatV2, kETLmodTypeMask, kETLmodTypeOffset, kETLmoduleMask, kETLmoduleOffset, kETLsensorMask, kETLsensorOffset, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, MTDDetId::kZsideOffset, sector(), sensor(), and MTDDetId::zside().

132  id_ |= (MTDType::ETL & kMTDsubdMask) << kMTDsubdOffset | (zside & kZsideMask) << kZsideOffset |
133  (encodeSector(disc, discside, sector) & kRodRingMask) << kRodRingOffset |
136  id_ |= kETLformatV2;
137  }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
MTDDetId()
Definition: MTDDetId.h:39
static constexpr uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:26
static constexpr uint32_t kETLsensorOffset
Definition: ETLDetId.h:28
static constexpr uint32_t kETLsensorMask
Definition: ETLDetId.h:29
static const uint32_t kZsideOffset
Definition: MTDDetId.h:31
static constexpr uint32_t kETLmoduleOffset
Definition: ETLDetId.h:24
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
uint32_t encodeSector(uint32_t &disc, uint32_t &discside, uint32_t &sector) const
Definition: ETLDetId.h:103
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
int sector() const
Definition: ETLDetId.h:156
int sensor() const
Definition: ETLDetId.h:148
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:30
static constexpr uint32_t kETLmodTypeMask
Definition: ETLDetId.h:27
static const uint32_t kZsideMask
Definition: MTDDetId.h:32
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kETLmoduleMask
Definition: ETLDetId.h:25
int zside() const
Definition: MTDDetId.h:61

Member Function Documentation

◆ decodeSector()

static void ETLDetId::decodeSector ( const uint32_t  rr,
uint32_t &  nDisc,
uint32_t &  discSide,
uint32_t &  sector 
)
inlinestatic

decode encoded "ring" field, disc numbered from 1 to 2, as in dedicated method

Definition at line 109 of file ETLDetId.h.

References discSide(), kETLdiscSideMask, kETLdiscSideOffset, kETLnDiscMask, kETLnDiscOffset, kETLsectorMask, nDisc(), findQualityFiles::rr, and sector().

Referenced by reco::HitPattern::printHitPattern().

109  {
110  nDisc = (((rr - 1) >> kETLnDiscOffset) & kETLnDiscMask) + 1;
112  sector = ((rr - 1) & kETLsectorMask) + 1;
113  }
static constexpr uint32_t kETLdiscSideMask
Definition: ETLDetId.h:39
static constexpr uint32_t kETLdiscSideOffset
Definition: ETLDetId.h:38
static constexpr uint32_t kETLsectorMask
Definition: ETLDetId.h:40
int sector() const
Definition: ETLDetId.h:156
int discSide() const
Definition: ETLDetId.h:159
int nDisc() const
Definition: ETLDetId.h:164
static constexpr uint32_t kETLnDiscOffset
constants for the TDR ETL model
Definition: ETLDetId.h:36
static constexpr uint32_t kETLnDiscMask
Definition: ETLDetId.h:37

◆ discSide()

int ETLDetId::discSide ( ) const
inline

Definition at line 159 of file ETLDetId.h.

References DetId::id_, kETLdiscSideMask, kETLdiscSideOffset, MTDDetId::kRodRingMask, and MTDDetId::kRodRingOffset.

Referenced by EtlLocalRecoValidation::analyze(), decodeSector(), MTDTopology::hshiftETL(), and MTDTopology::vshiftETL().

159  {
161  }
static constexpr uint32_t kETLdiscSideMask
Definition: ETLDetId.h:39
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
static constexpr uint32_t kETLdiscSideOffset
Definition: ETLDetId.h:38
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
uint32_t id_
Definition: DetId.h:69

◆ encodeSector()

uint32_t ETLDetId::encodeSector ( uint32_t &  disc,
uint32_t &  discside,
uint32_t &  sector 
) const
inline

ETL TDR Construct and fill only the det and sub-det fields. input disc runs from 0 to 1

Definition at line 103 of file ETLDetId.h.

References TtSemiLepEvtBuilder_cfi::disc, kSoff, and sector().

Referenced by ETLDetId(), and ETLNumberingScheme::getUnitID().

103  {
104  return (sector + discside * kSoff + 2 * kSoff * disc);
105  }
int sector() const
Definition: ETLDetId.h:156
static constexpr uint32_t kSoff
Definition: ETLDetId.h:52

◆ geographicalId()

ETLDetId ETLDetId::geographicalId ( ) const
inline

Definition at line 150 of file ETLDetId.h.

References DetId::id_.

150 { return id_; }
uint32_t id_
Definition: DetId.h:69

◆ modType()

int ETLDetId::modType ( ) const
inline

Returns ETL module type number.

Definition at line 145 of file ETLDetId.h.

References DetId::id_, kETLmodTypeMask, and kETLmodTypeOffset.

Referenced by MTDTopology::hshiftETL(), and MTDTopology::vshiftETL().

145 { return (id_ >> kETLmodTypeOffset) & kETLmodTypeMask; }
static constexpr uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:26
static constexpr uint32_t kETLmodTypeMask
Definition: ETLDetId.h:27
uint32_t id_
Definition: DetId.h:69

◆ module()

int ETLDetId::module ( ) const
inline

Returns ETL module number.

Definition at line 142 of file ETLDetId.h.

References DetId::id_, kETLmoduleMask, and kETLmoduleOffset.

Referenced by EtlLocalRecoValidation::analyze(), MTDTopology::hshiftETL(), mtd::MTDGeomUtil::module(), and MTDTopology::vshiftETL().

142 { return (id_ >> kETLmoduleOffset) & kETLmoduleMask; }
static constexpr uint32_t kETLmoduleOffset
Definition: ETLDetId.h:24
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kETLmoduleMask
Definition: ETLDetId.h:25

◆ nDisc()

int ETLDetId::nDisc ( ) const
inline

Definition at line 164 of file ETLDetId.h.

References DetId::id_, kETLnDiscMask, kETLnDiscOffset, MTDDetId::kRodRingMask, and MTDDetId::kRodRingOffset.

Referenced by EtlLocalRecoValidation::analyze(), MtdTracksValidation::analyze(), decodeSector(), and mtd::MTDGeomUtil::layer().

164  {
165  return (((((id_ >> kRodRingOffset) & kRodRingMask) - 1) >> kETLnDiscOffset) & kETLnDiscMask) + 1;
166  }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kETLnDiscOffset
constants for the TDR ETL model
Definition: ETLDetId.h:36
static constexpr uint32_t kETLnDiscMask
Definition: ETLDetId.h:37

◆ newForm()

uint32_t ETLDetId::newForm ( const uint32_t &  rawid)
inline

Definition at line 168 of file ETLDetId.h.

References kETLformatV2, kETLoldFieldMask, and kETLoldToNewShift.

Referenced by ETLDetId().

168  {
169  uint32_t fixedP = rawid & (0xFFFFFFFF - kETLoldFieldMask); // unchanged part of id
170  uint32_t shiftP = (rawid & kETLoldFieldMask) >> kETLoldToNewShift; // shifted part
171  return ((fixedP | shiftP) | kETLformatV2);
172  }
static constexpr uint32_t kETLformatV2
Definition: ETLDetId.h:21
static constexpr uint32_t kETLoldFieldMask
Definition: ETLDetId.h:20
static constexpr uint32_t kETLoldToNewShift
Definition: ETLDetId.h:19

◆ sector()

int ETLDetId::sector ( ) const
inline

Definition at line 156 of file ETLDetId.h.

References DetId::id_, kETLsectorMask, MTDDetId::kRodRingMask, and MTDDetId::kRodRingOffset.

Referenced by decodeSector(), encodeSector(), ETLDetId(), and geometryXMLparser.DTAlignable::index().

156 { return ((((id_ >> kRodRingOffset) & kRodRingMask) - 1) & kETLsectorMask) + 1; }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
static constexpr uint32_t kETLsectorMask
Definition: ETLDetId.h:40
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
uint32_t id_
Definition: DetId.h:69

◆ sensor()

int ETLDetId::sensor ( ) const
inline

Returns ETL module sensor number.

Definition at line 148 of file ETLDetId.h.

References DetId::id_, kETLsensorMask, and kETLsensorOffset.

Referenced by ETLDetId(), MTDTopology::hshiftETL(), and MTDTopology::vshiftETL().

148 { return (id_ >> kETLsensorOffset) & kETLsensorMask; }
static constexpr uint32_t kETLsensorOffset
Definition: ETLDetId.h:28
static constexpr uint32_t kETLsensorMask
Definition: ETLDetId.h:29
uint32_t id_
Definition: DetId.h:69

Member Data Documentation

◆ kETLdiscSideMask

constexpr uint32_t ETLDetId::kETLdiscSideMask = 0x1
static

Definition at line 39 of file ETLDetId.h.

Referenced by decodeSector(), and discSide().

◆ kETLdiscSideOffset

constexpr uint32_t ETLDetId::kETLdiscSideOffset = 2
static

Definition at line 38 of file ETLDetId.h.

Referenced by decodeSector(), and discSide().

◆ kETLformatV2

constexpr uint32_t ETLDetId::kETLformatV2 = 1
staticprivate

Definition at line 21 of file ETLDetId.h.

Referenced by ETLDetId(), and newForm().

◆ kETLmodTypeMask

constexpr uint32_t ETLDetId::kETLmodTypeMask = 0x3
static

Definition at line 27 of file ETLDetId.h.

Referenced by ETLDetId(), and modType().

◆ kETLmodTypeOffset

constexpr uint32_t ETLDetId::kETLmodTypeOffset = 3
static

Definition at line 26 of file ETLDetId.h.

Referenced by ETLDetId(), and modType().

◆ kETLmoduleMask

constexpr uint32_t ETLDetId::kETLmoduleMask = 0x7FF
static

Definition at line 25 of file ETLDetId.h.

Referenced by ETLDetId(), and module().

◆ kETLmoduleOffset

constexpr uint32_t ETLDetId::kETLmoduleOffset = 5
static

Definition at line 24 of file ETLDetId.h.

Referenced by ETLDetId(), and module().

◆ kETLnDiscMask

constexpr uint32_t ETLDetId::kETLnDiscMask = 0x1
static

Definition at line 37 of file ETLDetId.h.

Referenced by decodeSector(), and nDisc().

◆ kETLnDiscOffset

constexpr uint32_t ETLDetId::kETLnDiscOffset = 3
static

constants for the TDR ETL model

Definition at line 36 of file ETLDetId.h.

Referenced by decodeSector(), and nDisc().

◆ kETLoldFieldMask

constexpr uint32_t ETLDetId::kETLoldFieldMask = 0x7FFF
staticprivate

Definition at line 20 of file ETLDetId.h.

Referenced by newForm().

◆ kETLoldToNewShift

constexpr uint32_t ETLDetId::kETLoldToNewShift = 2
staticprivate

Definition at line 19 of file ETLDetId.h.

Referenced by newForm().

◆ kETLsectorMask

constexpr uint32_t ETLDetId::kETLsectorMask = 0x3
static

Definition at line 40 of file ETLDetId.h.

Referenced by decodeSector(), and sector().

◆ kETLsensorMask

constexpr uint32_t ETLDetId::kETLsensorMask = 0x3
static

Definition at line 29 of file ETLDetId.h.

Referenced by ETLDetId(), and sensor().

◆ kETLsensorOffset

constexpr uint32_t ETLDetId::kETLsensorOffset = 1
static

Definition at line 28 of file ETLDetId.h.

Referenced by ETLDetId(), and sensor().

◆ kETLv1maxModule

constexpr int ETLDetId::kETLv1maxModule = 176
static

Definition at line 32 of file ETLDetId.h.

◆ kETLv1maxRing

constexpr int ETLDetId::kETLv1maxRing = 11
static

Definition at line 31 of file ETLDetId.h.

◆ kETLv1nDisc

constexpr int ETLDetId::kETLv1nDisc = 1
static

Definition at line 33 of file ETLDetId.h.

◆ kETLv4maxModule

constexpr int ETLDetId::kETLv4maxModule = 248
static

Definition at line 44 of file ETLDetId.h.

Referenced by ETLNumberingScheme::getUnitID().

◆ kETLv4maxRing

constexpr int ETLDetId::kETLv4maxRing = 16
static

Definition at line 42 of file ETLDetId.h.

Referenced by ETLNumberingScheme::getUnitID().

◆ kETLv4maxSector

constexpr int ETLDetId::kETLv4maxSector = 4
static

Definition at line 43 of file ETLDetId.h.

Referenced by ETLDetLayerGeometryBuilder::buildLayers().

◆ kETLv4nDisc

constexpr int ETLDetId::kETLv4nDisc = 2
static

Definition at line 45 of file ETLDetId.h.

Referenced by ETLDetLayerGeometryBuilder::buildLayers().

◆ kETLv5maxModule

constexpr int ETLDetId::kETLv5maxModule = 517
static

Definition at line 49 of file ETLDetId.h.

Referenced by ETLNumberingScheme::getUnitID().

◆ kETLv5maxRing

constexpr int ETLDetId::kETLv5maxRing = 14
static

Definition at line 47 of file ETLDetId.h.

◆ kETLv5maxSector

constexpr int ETLDetId::kETLv5maxSector = 2
static

Definition at line 48 of file ETLDetId.h.

Referenced by ETLDetLayerGeometryBuilder::buildLayers().

◆ kETLv5nDisc

constexpr int ETLDetId::kETLv5nDisc = kETLv4nDisc
static

Definition at line 50 of file ETLDetId.h.

◆ kSoff

constexpr uint32_t ETLDetId::kSoff = 4
static

Definition at line 52 of file ETLDetId.h.

Referenced by encodeSector().