CMS 3D CMS Logo

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

Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0, copy number must be scaled by 1 unit. More...

#include <BTLDetId.h>

Inheritance diagram for BTLDetId:
MTDDetId DetId

Public Types

enum  CrysLayout { CrysLayout::tile = 1, CrysLayout::bar = 2, CrysLayout::barzflat = 3, CrysLayout::barphiflat = 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

 BTLDetId ()
 
 BTLDetId (const DetId &det_id)
 
 BTLDetId (const uint32_t &raw_id)
 
 BTLDetId (uint32_t zside, uint32_t rod, uint32_t module, uint32_t modtyp, uint32_t crystal)
 
int column (unsigned nrows=16) const
 
int crystal () const
 
BTLDetId geographicalId (CrysLayout lay) const
 
BTLDetId getUnhashedIndex (int hi, CrysLayout lay) const
 
int hashedIndex (CrysLayout lay) const
 
int ieta (CrysLayout lay) const
 
int ietaAbs (CrysLayout lay) const
 
int iphi (CrysLayout lay) const
 
int modType () const
 
int module () const
 
int modulesPerType (CrysLayout lay) const
 
int row (unsigned nrows=16) const
 
- Public Member Functions inherited from MTDDetId
 MTDDetId ()
 
 MTDDetId (const DetId &det_id)
 
 MTDDetId (const uint32_t &raw_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 (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. 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 bool validHashedIndex (uint32_t din)
 

Static Public Attributes

static constexpr int HALF_ROD = 36
 
static constexpr uint32_t kBTLCrystalMask = 0x3F
 
static constexpr uint32_t kBTLCrystalOffset = 0
 
static constexpr uint32_t kBTLmodTypeMask = 0x3
 
static constexpr uint32_t kBTLmodTypeOffset = 8
 
static constexpr uint32_t kBTLmoduleMask = 0x3F
 
static constexpr uint32_t kBTLmoduleOffset = 10
 
static constexpr int kCrystalsInEtaBar = 16
 
static constexpr int kCrystalsInEtaBarPhi = 16
 
static constexpr int kCrystalsInEtaBarZ = 1
 
static constexpr int kCrystalsInEtaTile = 4
 
static constexpr int kCrystalsInPhiBar = 4
 
static constexpr int kCrystalsInPhiBarPhi = 3
 
static constexpr int kCrystalsInPhiBarZ = 64
 
static constexpr int kCrystalsInPhiTile = 16
 
static constexpr int kCrystalsPerROD
 
static constexpr int kCrystalsPerRODBarPhiFlat
 
static constexpr int kCrystalsPerRODBarZflat
 
static constexpr int kModulesPerROD = 54
 range constants, need two sets for the time being (one for tiles and one for bars) More...
 
static constexpr int kModulesPerRODBarPhiFlat = 48
 
static constexpr int kModulesPerRODBarZflat = 42
 
static constexpr int kSizeForDenseIndexing = MAX_HASH + 1
 
static constexpr std::array< int, 4 > kTypeBoundariesBarPhiFlat {{0, 16, 32, 48}}
 
static constexpr std::array< int, 4 > kTypeBoundariesBarZflat {{0, 14, 28, 42}}
 
static constexpr std::array< int, 4 > kTypeBoundariesReference {{0, 18, 36, 54}}
 
static constexpr int MAX_HASH
 
static constexpr int MAX_IETA_BAR = kCrystalsInEtaBar * kModulesPerROD
 
static constexpr int MAX_IETA_BARPHIFLAT = kCrystalsInEtaBarPhi * kModulesPerRODBarPhiFlat
 
static constexpr int MAX_IETA_BARZ = kCrystalsInEtaBarZ * kModulesPerROD
 
static constexpr int MAX_IETA_BARZFLAT = kCrystalsInEtaBarZ * kModulesPerRODBarZflat
 
static constexpr int MAX_IETA_TILE = kCrystalsInEtaTile * kModulesPerROD
 
static constexpr int MAX_IPHI_BAR = kCrystalsInPhiBar * HALF_ROD
 
static constexpr int MAX_IPHI_BARPHIFLAT = kCrystalsInPhiBarPhi * HALF_ROD
 
static constexpr int MAX_IPHI_BARZ = kCrystalsInPhiBarZ * HALF_ROD
 
static constexpr int MAX_IPHI_BARZFLAT = kCrystalsInPhiBarZ * HALF_ROD
 
static constexpr int MAX_IPHI_TILE = kCrystalsInPhiTile * HALF_ROD
 
static constexpr int MAX_ROD = 72
 
static constexpr int MIN_HASH = 0
 
static constexpr int MIN_IETA = 1
 
static constexpr int MIN_IPHI = 1
 
static constexpr int MIN_ROD = 1
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0, copy number must be scaled by 1 unit.

bit 15-10: module sequential number bit 9-8 : crystal type (1 - 3) bit 7-0 : crystal sequential number within a module ( 0 - 63 )

Definition at line 18 of file BTLDetId.h.

Member Enumeration Documentation

◆ CrysLayout

enum BTLDetId::CrysLayout
strong
Enumerator
tile 
bar 
barzflat 
barphiflat 

Definition at line 70 of file BTLDetId.h.

70 { tile = 1, bar = 2, barzflat = 3, barphiflat = 4 };

Constructor & Destructor Documentation

◆ BTLDetId() [1/4]

BTLDetId::BTLDetId ( )
inline

Construct a null id

Definition at line 75 of file BTLDetId.h.

76  id_ |= (MTDType::BTL & kMTDsubdMask) << kMTDsubdOffset;
77  }

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

Referenced by geographicalId(), and getUnhashedIndex().

◆ BTLDetId() [2/4]

BTLDetId::BTLDetId ( const uint32_t &  raw_id)
inline

Construct from a raw value

Definition at line 80 of file BTLDetId.h.

80 : MTDDetId(raw_id) { ; }

◆ BTLDetId() [3/4]

BTLDetId::BTLDetId ( const DetId det_id)
inline

Construct from generic DetId

Definition at line 83 of file BTLDetId.h.

83 : MTDDetId(det_id.rawId()) { ; }

◆ BTLDetId() [4/4]

BTLDetId::BTLDetId ( uint32_t  zside,
uint32_t  rod,
uint32_t  module,
uint32_t  modtyp,
uint32_t  crystal 
)
inline

Member Function Documentation

◆ column()

int BTLDetId::column ( unsigned  nrows = 16) const
inline

return the column in GeomDetLanguage

Definition at line 110 of file BTLDetId.h.

110 { return (crystal() - 1) / nrows; }

References crystal().

Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), and BTLDeviceSim::getHitsResponse().

◆ crystal()

int BTLDetId::crystal ( ) const
inline

Returns BTL crystal number.

Definition at line 102 of file BTLDetId.h.

102 { return ((id_ >> kBTLCrystalOffset) & kBTLCrystalMask) + 1; }

References DetId::id_, kBTLCrystalMask, and kBTLCrystalOffset.

Referenced by BTLDetId(), column(), getUnhashedIndex(), ietaAbs(), iphi(), and row().

◆ geographicalId()

BTLDetId BTLDetId::geographicalId ( CrysLayout  lay) const

create a Geographical DetId for Tracking

Definition at line 171 of file BTLDetId.cc.

171  {
172  // reorganize the modules to count from 0 to 54
173  // (0 to 42 in the case of BarZflat geometry)
174  // remove module type
175  // remove crystal index
176 
177  int boundRef = modulesPerType(lay);
178 
179  return BTLDetId(mtdSide(), mtdRR(), module() + boundRef * (modType() - 1), 0, 1);
180 }

References BTLDetId(), modType(), module(), modulesPerType(), MTDDetId::mtdRR(), and MTDDetId::mtdSide().

Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), and MTDTimeCalib::getTimeCalib().

◆ getUnhashedIndex()

BTLDetId BTLDetId::getUnhashedIndex ( int  hi,
CrysLayout  lay 
) const

get a DetId from a compact index for arrays

Definition at line 101 of file BTLDetId.cc.

101  {
102  int max_iphi = 1, max_ieta = 1, nphi = 0, keta = 0, tmphi = hi + 1;
103  std::array<int, 4> kTypeBoundaries = {};
104  switch (lay) {
105  case CrysLayout::tile: {
106  max_iphi = MAX_IPHI_TILE;
107  max_ieta = MAX_IETA_TILE;
109  keta = kCrystalsInEtaTile;
110  kTypeBoundaries = kTypeBoundariesReference;
111  break;
112  }
113  case CrysLayout::bar: {
114  max_iphi = MAX_IPHI_BAR;
115  max_ieta = MAX_IETA_BAR;
117  keta = kCrystalsInEtaBar;
118  kTypeBoundaries = kTypeBoundariesReference;
119  break;
120  }
121  case CrysLayout::barzflat: {
122  max_iphi = MAX_IPHI_BARZFLAT;
123  max_ieta = MAX_IETA_BARZFLAT;
125  keta = kCrystalsInEtaBarZ;
126  kTypeBoundaries = kTypeBoundariesBarZflat;
127  break;
128  }
129  case CrysLayout::barphiflat: {
130  max_iphi = MAX_IPHI_BARPHIFLAT;
131  max_ieta = MAX_IETA_BARPHIFLAT;
133  keta = kCrystalsInEtaBarPhi;
134  kTypeBoundaries = kTypeBoundariesBarPhiFlat;
135  break;
136  }
137  default: {
138  break;
139  }
140  }
141  int zside = 0, rod = 0, module = 0, modtype = 1, crystal = 0;
142  if (tmphi > max_ieta * max_iphi) {
143  zside = 1;
144  }
145  int ip = (tmphi - 1) % max_iphi + 1;
146  int ie = (tmphi - 1) / max_iphi - max_ieta;
147  ie = (zside == 1 ? ie + 1 : -ie);
148  rod = (ip - 1) / nphi + 1;
149  module = (ie - 1) / keta + 1;
150  if (module > kTypeBoundaries[1]) {
151  modtype = (module > kTypeBoundaries[2] ? 3 : 2);
152  }
153  if (modtype > 1) {
154  module = module - kTypeBoundaries[modtype - 1];
155  }
156  crystal = zside == 1 ? ((ip - 1) % nphi + 1) + ((ie - 1) % keta) * nphi
157  : ((ip - 1) % nphi + 1) + (keta - 1 - (ie - 1) % keta) * nphi;
158  return BTLDetId(zside, rod, module, modtype, crystal);
159 }

References bar, barphiflat, barzflat, BTLDetId(), crystal(), kCrystalsInEtaBar, kCrystalsInEtaBarPhi, kCrystalsInEtaBarZ, kCrystalsInEtaTile, kCrystalsInPhiBar, kCrystalsInPhiBarPhi, kCrystalsInPhiBarZ, kCrystalsInPhiTile, kTypeBoundariesBarPhiFlat, kTypeBoundariesBarZflat, kTypeBoundariesReference, MAX_IETA_BAR, MAX_IETA_BARPHIFLAT, MAX_IETA_BARZFLAT, MAX_IETA_TILE, MAX_IPHI_BAR, MAX_IPHI_BARPHIFLAT, MAX_IPHI_BARZFLAT, MAX_IPHI_TILE, module(), nphi, tile, and MTDDetId::zside().

◆ hashedIndex()

int BTLDetId::hashedIndex ( CrysLayout  lay) const

define a dense index of arrays from a DetId

Definition at line 69 of file BTLDetId.cc.

69  {
70  int max_iphi = 1, max_ieta = 1;
71  switch (lay) {
72  case CrysLayout::tile: {
73  max_iphi = MAX_IPHI_TILE;
74  max_ieta = MAX_IETA_TILE;
75  break;
76  }
77  case CrysLayout::bar: {
78  max_iphi = MAX_IPHI_BAR;
79  max_ieta = MAX_IETA_BAR;
80  break;
81  }
82  case CrysLayout::barzflat: {
83  max_iphi = MAX_IPHI_BARZFLAT;
84  max_ieta = MAX_IETA_BARZFLAT;
85  break;
86  }
88  max_iphi = MAX_IPHI_BARPHIFLAT;
89  max_ieta = MAX_IETA_BARPHIFLAT;
90  break;
91  }
92  default: {
93  break;
94  }
95  }
96  return (max_ieta + (zside() > 0 ? ietaAbs(lay) - 1 : -ietaAbs(lay))) * max_iphi + iphi(lay) - 1;
97 }

References bar, barphiflat, barzflat, ietaAbs(), iphi(), MAX_IETA_BAR, MAX_IETA_BARPHIFLAT, MAX_IETA_BARZFLAT, MAX_IETA_TILE, MAX_IPHI_BAR, MAX_IPHI_BARPHIFLAT, MAX_IPHI_BARZFLAT, MAX_IPHI_TILE, tile, and MTDDetId::zside().

◆ ieta()

int BTLDetId::ieta ( CrysLayout  lay) const
inline

Definition at line 118 of file BTLDetId.h.

118 { return zside() * ietaAbs(lay); }

References ietaAbs(), and MTDDetId::zside().

◆ ietaAbs()

int BTLDetId::ietaAbs ( CrysLayout  lay) const

Returns BTL ieta index for crystal according to type tile or bar

Definition at line 32 of file BTLDetId.cc.

32  {
33  int kCrystalsInEta = 1, kCrystalsInPhi = 1;
34  std::array<int, 4> kTypeBoundaries = {};
35  switch (lay) {
36  case CrysLayout::tile: {
37  kCrystalsInEta = kCrystalsInEtaTile;
38  kCrystalsInPhi = kCrystalsInPhiTile;
39  kTypeBoundaries = kTypeBoundariesReference;
40  break;
41  }
42  case CrysLayout::bar: {
43  kCrystalsInEta = kCrystalsInEtaBar;
44  kCrystalsInPhi = kCrystalsInPhiBar;
45  kTypeBoundaries = kTypeBoundariesReference;
46  break;
47  }
48  case CrysLayout::barzflat: {
49  kCrystalsInEta = kCrystalsInEtaBarZ;
50  kCrystalsInPhi = kCrystalsInPhiBarZ;
51  kTypeBoundaries = kTypeBoundariesBarZflat;
52  break;
53  }
55  kCrystalsInEta = kCrystalsInEtaBarPhi;
56  kCrystalsInPhi = kCrystalsInPhiBarPhi;
57  kTypeBoundaries = kTypeBoundariesBarPhiFlat;
58  break;
59  }
60  default: {
61  break;
62  }
63  }
64  int etaRowInModule =
65  zside() > 0 ? (crystal() - 1) / kCrystalsInPhi + 1 : kCrystalsInEta - (crystal() - 1) / kCrystalsInPhi;
66  return kCrystalsInEta * (module() - 1) + kCrystalsInEta * kTypeBoundaries[(modType() - 1)] + etaRowInModule;
67 }

References bar, barphiflat, barzflat, crystal(), kCrystalsInEtaBar, kCrystalsInEtaBarPhi, kCrystalsInEtaBarZ, kCrystalsInEtaTile, kCrystalsInPhiBar, kCrystalsInPhiBarPhi, kCrystalsInPhiBarZ, kCrystalsInPhiTile, kTypeBoundariesBarPhiFlat, kTypeBoundariesBarZflat, kTypeBoundariesReference, modType(), module(), tile, and MTDDetId::zside().

Referenced by hashedIndex(), and ieta().

◆ iphi()

int BTLDetId::iphi ( CrysLayout  lay) const

Returns BTL iphi index for crystal according to type tile or bar

Definition at line 4 of file BTLDetId.cc.

4  {
5  int kCrystalsInPhi = 1;
6  switch (lay) {
7  case CrysLayout::tile: {
8  kCrystalsInPhi = kCrystalsInPhiTile;
9  break;
10  }
11  case CrysLayout::bar: {
12  kCrystalsInPhi = kCrystalsInPhiBar;
13  break;
14  }
15  case CrysLayout::barzflat: {
16  kCrystalsInPhi = kCrystalsInPhiBarZ;
17  break;
18  }
20  kCrystalsInPhi = kCrystalsInPhiBarPhi;
21  break;
22  }
23  default: {
24  break;
25  }
26  }
27  return kCrystalsInPhi * ((mtdRR() % HALF_ROD > 0 ? mtdRR() % HALF_ROD : HALF_ROD) - 1) +
28  (crystal() % kCrystalsInPhi > 0 ? crystal() % kCrystalsInPhi : kCrystalsInPhi);
29 }

References bar, barphiflat, barzflat, crystal(), HALF_ROD, kCrystalsInPhiBar, kCrystalsInPhiBarPhi, kCrystalsInPhiBarZ, kCrystalsInPhiTile, MTDDetId::mtdRR(), and tile.

Referenced by hashedIndex().

◆ modType()

int BTLDetId::modType ( ) const
inline

Returns BTL crystal type number.

Definition at line 99 of file BTLDetId.h.

99 { return (id_ >> kBTLmodTypeOffset) & kBTLmodTypeMask; }

References DetId::id_, kBTLmodTypeMask, and kBTLmodTypeOffset.

Referenced by geographicalId(), BTLDeviceSim::getHitsResponse(), and ietaAbs().

◆ module()

int BTLDetId::module ( ) const
inline

Returns BTL module number.

Definition at line 96 of file BTLDetId.h.

96 { return (id_ >> kBTLmoduleOffset) & kBTLmoduleMask; }

References DetId::id_, kBTLmoduleMask, and kBTLmoduleOffset.

Referenced by BTLDetId(), geographicalId(), BTLDeviceSim::getHitsResponse(), getUnhashedIndex(), and ietaAbs().

◆ modulesPerType()

int BTLDetId::modulesPerType ( CrysLayout  lay) const

return the number of modules per type according to scenario

Definition at line 161 of file BTLDetId.cc.

161  {
162  int mod = kTypeBoundariesReference[1];
163  if (lay == CrysLayout::barzflat) {
165  } else if (lay == CrysLayout::barphiflat) {
167  }
168  return mod;
169 }

References barphiflat, barzflat, kTypeBoundariesBarPhiFlat, kTypeBoundariesBarZflat, kTypeBoundariesReference, and mod().

Referenced by geographicalId(), and BTLDeviceSim::getHitsResponse().

◆ row()

int BTLDetId::row ( unsigned  nrows = 16) const
inline

return the row in GeomDet language

Definition at line 105 of file BTLDetId.h.

105  {
106  return (crystal() - 1) % nrows; // anything else for now
107  }

References crystal().

Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), and BTLDeviceSim::getHitsResponse().

◆ validHashedIndex()

static bool BTLDetId::validHashedIndex ( uint32_t  din)
inlinestatic

Definition at line 123 of file BTLDetId.h.

123 { return (din < kSizeForDenseIndexing); }

References cropTnPTrees::din, and kSizeForDenseIndexing.

Member Data Documentation

◆ HALF_ROD

constexpr int BTLDetId::HALF_ROD = 36
staticconstexpr

Definition at line 52 of file BTLDetId.h.

Referenced by BTLDetLayerGeometryBuilder::buildLayers(), and iphi().

◆ kBTLCrystalMask

constexpr uint32_t BTLDetId::kBTLCrystalMask = 0x3F
staticconstexpr

Definition at line 25 of file BTLDetId.h.

Referenced by BTLDetId(), and crystal().

◆ kBTLCrystalOffset

constexpr uint32_t BTLDetId::kBTLCrystalOffset = 0
staticconstexpr

Definition at line 24 of file BTLDetId.h.

Referenced by BTLDetId(), and crystal().

◆ kBTLmodTypeMask

constexpr uint32_t BTLDetId::kBTLmodTypeMask = 0x3
staticconstexpr

Definition at line 23 of file BTLDetId.h.

Referenced by BTLDetId(), and modType().

◆ kBTLmodTypeOffset

constexpr uint32_t BTLDetId::kBTLmodTypeOffset = 8
staticconstexpr

Definition at line 22 of file BTLDetId.h.

Referenced by BTLDetId(), and modType().

◆ kBTLmoduleMask

constexpr uint32_t BTLDetId::kBTLmoduleMask = 0x3F
staticconstexpr

Definition at line 21 of file BTLDetId.h.

Referenced by BTLDetId(), and module().

◆ kBTLmoduleOffset

constexpr uint32_t BTLDetId::kBTLmoduleOffset = 10
staticconstexpr

Definition at line 20 of file BTLDetId.h.

Referenced by BTLDetId(), and module().

◆ kCrystalsInEtaBar

constexpr int BTLDetId::kCrystalsInEtaBar = 16
staticconstexpr

Definition at line 37 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and ietaAbs().

◆ kCrystalsInEtaBarPhi

constexpr int BTLDetId::kCrystalsInEtaBarPhi = 16
staticconstexpr

Definition at line 41 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and ietaAbs().

◆ kCrystalsInEtaBarZ

constexpr int BTLDetId::kCrystalsInEtaBarZ = 1
staticconstexpr

Definition at line 39 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and ietaAbs().

◆ kCrystalsInEtaTile

constexpr int BTLDetId::kCrystalsInEtaTile = 4
staticconstexpr

Definition at line 35 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and ietaAbs().

◆ kCrystalsInPhiBar

constexpr int BTLDetId::kCrystalsInPhiBar = 4
staticconstexpr

Definition at line 36 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and iphi().

◆ kCrystalsInPhiBarPhi

constexpr int BTLDetId::kCrystalsInPhiBarPhi = 3
staticconstexpr

Definition at line 40 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and iphi().

◆ kCrystalsInPhiBarZ

constexpr int BTLDetId::kCrystalsInPhiBarZ = 64
staticconstexpr

Definition at line 38 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and iphi().

◆ kCrystalsInPhiTile

constexpr int BTLDetId::kCrystalsInPhiTile = 16
staticconstexpr

Definition at line 34 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and iphi().

◆ kCrystalsPerROD

constexpr int BTLDetId::kCrystalsPerROD
staticconstexpr
Initial value:

Definition at line 42 of file BTLDetId.h.

◆ kCrystalsPerRODBarPhiFlat

constexpr int BTLDetId::kCrystalsPerRODBarPhiFlat
staticconstexpr

◆ kCrystalsPerRODBarZflat

constexpr int BTLDetId::kCrystalsPerRODBarZflat
staticconstexpr
Initial value:

Definition at line 45 of file BTLDetId.h.

◆ kModulesPerROD

constexpr int BTLDetId::kModulesPerROD = 54
staticconstexpr

range constants, need two sets for the time being (one for tiles and one for bars)

Definition at line 28 of file BTLDetId.h.

Referenced by BTLDetLayerGeometryBuilder::buildLayers().

◆ kModulesPerRODBarPhiFlat

constexpr int BTLDetId::kModulesPerRODBarPhiFlat = 48
staticconstexpr

Definition at line 30 of file BTLDetId.h.

◆ kModulesPerRODBarZflat

constexpr int BTLDetId::kModulesPerRODBarZflat = 42
staticconstexpr

Definition at line 29 of file BTLDetId.h.

◆ kSizeForDenseIndexing

constexpr int BTLDetId::kSizeForDenseIndexing = MAX_HASH + 1
staticconstexpr

Definition at line 68 of file BTLDetId.h.

Referenced by validHashedIndex().

◆ kTypeBoundariesBarPhiFlat

constexpr std::array<int, 4> BTLDetId::kTypeBoundariesBarPhiFlat {{0, 16, 32, 48}}
staticconstexpr

Definition at line 33 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and modulesPerType().

◆ kTypeBoundariesBarZflat

constexpr std::array<int, 4> BTLDetId::kTypeBoundariesBarZflat {{0, 14, 28, 42}}
staticconstexpr

Definition at line 32 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and modulesPerType().

◆ kTypeBoundariesReference

constexpr std::array<int, 4> BTLDetId::kTypeBoundariesReference {{0, 18, 36, 54}}
staticconstexpr

Definition at line 31 of file BTLDetId.h.

Referenced by getUnhashedIndex(), ietaAbs(), and modulesPerType().

◆ MAX_HASH

constexpr int BTLDetId::MAX_HASH
staticconstexpr
Initial value:

Definition at line 66 of file BTLDetId.h.

◆ MAX_IETA_BAR

constexpr int BTLDetId::MAX_IETA_BAR = kCrystalsInEtaBar * kModulesPerROD
staticconstexpr

Definition at line 57 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IETA_BARPHIFLAT

constexpr int BTLDetId::MAX_IETA_BARPHIFLAT = kCrystalsInEtaBarPhi * kModulesPerRODBarPhiFlat
staticconstexpr

Definition at line 63 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IETA_BARZ

constexpr int BTLDetId::MAX_IETA_BARZ = kCrystalsInEtaBarZ * kModulesPerROD
staticconstexpr

Definition at line 59 of file BTLDetId.h.

◆ MAX_IETA_BARZFLAT

constexpr int BTLDetId::MAX_IETA_BARZFLAT = kCrystalsInEtaBarZ * kModulesPerRODBarZflat
staticconstexpr

Definition at line 61 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IETA_TILE

constexpr int BTLDetId::MAX_IETA_TILE = kCrystalsInEtaTile * kModulesPerROD
staticconstexpr

Definition at line 55 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IPHI_BAR

constexpr int BTLDetId::MAX_IPHI_BAR = kCrystalsInPhiBar * HALF_ROD
staticconstexpr

Definition at line 58 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IPHI_BARPHIFLAT

constexpr int BTLDetId::MAX_IPHI_BARPHIFLAT = kCrystalsInPhiBarPhi * HALF_ROD
staticconstexpr

Definition at line 64 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IPHI_BARZ

constexpr int BTLDetId::MAX_IPHI_BARZ = kCrystalsInPhiBarZ * HALF_ROD
staticconstexpr

Definition at line 60 of file BTLDetId.h.

◆ MAX_IPHI_BARZFLAT

constexpr int BTLDetId::MAX_IPHI_BARZFLAT = kCrystalsInPhiBarZ * HALF_ROD
staticconstexpr

Definition at line 62 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_IPHI_TILE

constexpr int BTLDetId::MAX_IPHI_TILE = kCrystalsInPhiTile * HALF_ROD
staticconstexpr

Definition at line 56 of file BTLDetId.h.

Referenced by getUnhashedIndex(), and hashedIndex().

◆ MAX_ROD

constexpr int BTLDetId::MAX_ROD = 72
staticconstexpr

Definition at line 51 of file BTLDetId.h.

Referenced by BtlSimHitsHarvester::dqmEndJob().

◆ MIN_HASH

constexpr int BTLDetId::MIN_HASH = 0
staticconstexpr

Definition at line 65 of file BTLDetId.h.

◆ MIN_IETA

constexpr int BTLDetId::MIN_IETA = 1
staticconstexpr

Definition at line 53 of file BTLDetId.h.

◆ MIN_IPHI

constexpr int BTLDetId::MIN_IPHI = 1
staticconstexpr

Definition at line 54 of file BTLDetId.h.

◆ MIN_ROD

constexpr int BTLDetId::MIN_ROD = 1
staticconstexpr

Definition at line 50 of file BTLDetId.h.

Referenced by BTLDetLayerGeometryBuilder::buildLayers().

BTLDetId::CrysLayout::barzflat
BTLDetId::HALF_ROD
static constexpr int HALF_ROD
Definition: BTLDetId.h:52
BTLDetId::MAX_IPHI_BARPHIFLAT
static constexpr int MAX_IPHI_BARPHIFLAT
Definition: BTLDetId.h:64
BTLDetId::MAX_IETA_BARPHIFLAT
static constexpr int MAX_IETA_BARPHIFLAT
Definition: BTLDetId.h:63
BTLDetId::kBTLmoduleMask
static constexpr uint32_t kBTLmoduleMask
Definition: BTLDetId.h:21
BTLDetId::kCrystalsInEtaBarZ
static constexpr int kCrystalsInEtaBarZ
Definition: BTLDetId.h:39
BTLDetId::kBTLCrystalOffset
static constexpr uint32_t kBTLCrystalOffset
Definition: BTLDetId.h:24
mod
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
BTLDetId::kTypeBoundariesBarZflat
static constexpr std::array< int, 4 > kTypeBoundariesBarZflat
Definition: BTLDetId.h:32
BTLDetId::ietaAbs
int ietaAbs(CrysLayout lay) const
Definition: BTLDetId.cc:32
MTDDetId::kZsideMask
static const uint32_t kZsideMask
Definition: MTDDetId.h:32
MTDDetId::kMTDsubdMask
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:30
BTLDetId::kCrystalsInPhiTile
static constexpr int kCrystalsInPhiTile
Definition: BTLDetId.h:34
BTLDetId::kModulesPerROD
static constexpr int kModulesPerROD
range constants, need two sets for the time being (one for tiles and one for bars)
Definition: BTLDetId.h:28
MTDTopologyMode::Mode::barphiflat
MTDDetId::mtdRR
int mtdRR() const
Definition: MTDDetId.h:64
BTLDetId::MAX_IPHI_TILE
static constexpr int MAX_IPHI_TILE
Definition: BTLDetId.h:56
BTLDetId::kTypeBoundariesReference
static constexpr std::array< int, 4 > kTypeBoundariesReference
Definition: BTLDetId.h:31
BTLDetId::kCrystalsInEtaBar
static constexpr int kCrystalsInEtaBar
Definition: BTLDetId.h:37
BTLDetId::kCrystalsInEtaBarPhi
static constexpr int kCrystalsInEtaBarPhi
Definition: BTLDetId.h:41
BTLDetId::crystal
int crystal() const
Definition: BTLDetId.h:102
BTLDetId::MAX_IETA_BAR
static constexpr int MAX_IETA_BAR
Definition: BTLDetId.h:57
nphi
const int nphi
Definition: CMTRawAnalyzer.h:424
BTLDetId::module
int module() const
Definition: BTLDetId.h:96
BTLDetId::MAX_IETA_TILE
static constexpr int MAX_IETA_TILE
Definition: BTLDetId.h:55
BTLDetId::kBTLmodTypeOffset
static constexpr uint32_t kBTLmodTypeOffset
Definition: BTLDetId.h:22
BTLDetId::MAX_IPHI_BARZFLAT
static constexpr int MAX_IPHI_BARZFLAT
Definition: BTLDetId.h:62
BTLDetId::modulesPerType
int modulesPerType(CrysLayout lay) const
Definition: BTLDetId.cc:161
BTLDetId::MAX_IPHI_BAR
static constexpr int MAX_IPHI_BAR
Definition: BTLDetId.h:58
BTLDetId::CrysLayout::barphiflat
MTDDetId::zside
int zside() const
Definition: MTDDetId.h:61
MTDTopologyMode::Mode::barzflat
BTLDetId::kTypeBoundariesBarPhiFlat
static constexpr std::array< int, 4 > kTypeBoundariesBarPhiFlat
Definition: BTLDetId.h:33
BTLDetId::kCrystalsInPhiBarPhi
static constexpr int kCrystalsInPhiBarPhi
Definition: BTLDetId.h:40
BTLDetId::modType
int modType() const
Definition: BTLDetId.h:99
BTLDetId::iphi
int iphi(CrysLayout lay) const
Definition: BTLDetId.cc:4
cropTnPTrees.din
din
Definition: cropTnPTrees.py:30
DetId::id_
uint32_t id_
Definition: DetId.h:69
BTLDetId::kModulesPerRODBarPhiFlat
static constexpr int kModulesPerRODBarPhiFlat
Definition: BTLDetId.h:30
BTLDetId::kSizeForDenseIndexing
static constexpr int kSizeForDenseIndexing
Definition: BTLDetId.h:68
FastTime
Definition: ForwardSubdetector.h:6
MTDDetId::kRodRingMask
static const uint32_t kRodRingMask
Definition: MTDDetId.h:34
BTLDetId::CrysLayout::tile
MTDDetId::MTDDetId
MTDDetId()
Definition: MTDDetId.h:39
BTLDetId::CrysLayout::bar
MTDDetId::kZsideOffset
static const uint32_t kZsideOffset
Definition: MTDDetId.h:31
MTDTopologyMode::Mode::tile
MTDDetId::kMTDsubdOffset
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
hi
Definition: EPCuts.h:4
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
BTLDetId::kCrystalsInPhiBar
static constexpr int kCrystalsInPhiBar
Definition: BTLDetId.h:36
MTDDetId::kRodRingOffset
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:33
MTDDetId::mtdSide
int mtdSide() const
Definition: MTDDetId.h:59
MTDTopologyMode::Mode::bar
BTLDetId::kBTLmodTypeMask
static constexpr uint32_t kBTLmodTypeMask
Definition: BTLDetId.h:23
BTLDetId::kBTLmoduleOffset
static constexpr uint32_t kBTLmoduleOffset
Definition: BTLDetId.h:20
BTLDetId::kCrystalsInPhiBarZ
static constexpr int kCrystalsInPhiBarZ
Definition: BTLDetId.h:38
BTLDetId::kCrystalsInEtaTile
static constexpr int kCrystalsInEtaTile
Definition: BTLDetId.h:35
BTLDetId::BTLDetId
BTLDetId()
Definition: BTLDetId.h:75
DetId::Forward
Definition: DetId.h:30
BTLDetId::kBTLCrystalMask
static constexpr uint32_t kBTLCrystalMask
Definition: BTLDetId.h:25
BTLDetId::MAX_IETA_BARZFLAT
static constexpr int MAX_IETA_BARZFLAT
Definition: BTLDetId.h:61
BTLDetId::kModulesPerRODBarZflat
static constexpr int kModulesPerRODBarZflat
Definition: BTLDetId.h:29