CMS 3D CMS Logo

RecHitTools.cc
Go to the documentation of this file.
2 
12 
14 
17 
18 using namespace hgcal;
19 
20 namespace {
21  template <typename DDD>
22  inline void check_ddd(const DDD* ddd) {
23  if (nullptr == ddd) {
24  throw cms::Exception("hgcal::RecHitTools") << "DDDConstants not accessibl to hgcal::RecHitTools!";
25  }
26  }
27 
28  template <typename GEOM>
29  inline void check_geom(const GEOM* geom) {
30  if (nullptr == geom) {
31  throw cms::Exception("hgcal::RecHitTools") << "Geometry not provided yet to hgcal::RecHitTools!";
32  }
33  }
34 
35  inline const HGCalDDDConstants* get_ddd(const CaloSubdetectorGeometry* geom, const HGCalDetId& detid) {
36  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom);
37  const HGCalDDDConstants* ddd = &(hg->topology().dddConstants());
38  check_ddd(ddd);
39  return ddd;
40  }
41 
42  inline const HGCalDDDConstants* get_ddd(const CaloSubdetectorGeometry* geom, const HGCSiliconDetId& detid) {
43  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom);
44  const HGCalDDDConstants* ddd = &(hg->topology().dddConstants());
45  check_ddd(ddd);
46  return ddd;
47  }
48 
49  inline const HGCalDDDConstants* get_ddd(const CaloSubdetectorGeometry* geom, const HFNoseDetId& detid) {
50  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom);
51  const HGCalDDDConstants* ddd = &(hg->topology().dddConstants());
52  check_ddd(ddd);
53  return ddd;
54  }
55 
56  inline const HGCalDDDConstants* get_ddd(const CaloGeometry* geom, int type, int maxLayerEE, int layer) {
57  DetId::Detector det = ((type == 0) ? DetId::Forward : ((layer > maxLayerEE) ? DetId::HGCalHSi : DetId::HGCalEE));
58  int subdet = ((type != 0) ? ForwardSubdetector::ForwardEmpty
60  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom->getSubdetectorGeometry(det, subdet));
61  const HGCalDDDConstants* ddd = &(hg->topology().dddConstants());
62  check_ddd(ddd);
63  return ddd;
64  }
65 
66 } // namespace
67 
69  geom_ = &geom;
70  unsigned int wmaxEE(0), wmaxFH(0);
71  auto geomEE = static_cast<const HGCalGeometry*>(
73  //check if it's the new geometry
74  if (geomEE) {
75  geometryType_ = 1;
76  fhOffset_ = (geomEE->topology().dddConstants()).layers(true);
77  wmaxEE = (geomEE->topology().dddConstants()).waferCount(0);
78  auto geomFH = static_cast<const HGCalGeometry*>(
80  wmaxFH = (geomFH->topology().dddConstants()).waferCount(0);
81  fhLastLayer_ = fhOffset_ + (geomFH->topology().dddConstants()).layers(true);
82  auto geomBH = static_cast<const HGCalGeometry*>(
84  bhOffset_ =
85  fhOffset_ + (geomBH->topology().dddConstants()).firstLayer() - (geomEE->topology().dddConstants()).firstLayer();
86  bhLastLayer_ = bhOffset_ + (geomBH->topology().dddConstants()).layers(true);
87  bhMaxIphi_ = geomBH->topology().dddConstants().maxCells(true);
88  } else {
89  geometryType_ = 0;
90  geomEE =
91  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCEE));
92  fhOffset_ = (geomEE->topology().dddConstants()).layers(true);
93  wmaxEE = 1 + (geomEE->topology().dddConstants()).waferMax();
94  auto geomFH =
95  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCHEF));
96  bhOffset_ = fhOffset_ + (geomFH->topology().dddConstants()).layers(true);
97  wmaxFH = 1 + (geomFH->topology().dddConstants()).waferMax();
99  auto geomBH =
100  static_cast<const HcalGeometry*>(geom_->getSubdetectorGeometry(DetId::Hcal, HcalSubdetector::HcalEndcap));
101  bhLastLayer_ = bhOffset_ + (geomBH->topology().dddConstants())->getMaxDepth(1);
102  }
103  maxNumberOfWafersPerLayer_ = std::max(wmaxEE, wmaxFH);
104  // For nose geometry
105  auto geomNose =
106  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HFNose));
107  if (geomNose) {
108  maxNumberOfWafersNose_ = (geomNose->topology().dddConstants()).waferCount(0);
109  noseLastLayer_ = (geomNose->topology().dddConstants()).layers(true);
110  } else {
112  noseLastLayer_ = 0;
113  }
114 }
115 
117  DetId::Detector det = id.det();
118  int subdet = (det == DetId::HGCalEE || det == DetId::HGCalHSi || det == DetId::HGCalHSc)
120  : id.subdetId();
121  auto geom = geom_->getSubdetectorGeometry(det, subdet);
122  check_geom(geom);
123  return geom;
124 }
125 
127  auto geom = getSubdetectorGeometry(id);
129  if (id.det() == DetId::Hcal) {
130  position = geom->getGeometry(id)->getPosition();
131  } else {
132  auto hg = static_cast<const HGCalGeometry*>(geom);
133  position = hg->getPosition(id);
134  }
135  return position;
136 }
137 
139  unsigned int lay = std::abs(layer);
140  double z(0);
141  if (nose) {
142  auto geomNose =
143  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HFNose));
144  if (geomNose) {
145  const HGCalDDDConstants* ddd = &(geomNose->topology().dddConstants());
146  if (ddd)
147  z = (layer > 0) ? ddd->waferZ(lay, true) : -ddd->waferZ(lay, true);
148  }
149  } else {
150  const HGCalDDDConstants* ddd = get_ddd(geom_, geometryType_, fhOffset_, lay);
151  if (geometryType_ == 1) {
152  if (lay > fhOffset_)
153  lay -= fhOffset_;
154  }
155  z = (layer > 0) ? ddd->waferZ(lay, true) : -ddd->waferZ(lay, true);
156  }
157  return GlobalPoint(0, 0, z);
158 }
159 
160 int RecHitTools::zside(const DetId& id) const {
161  int zside = 0;
162  if (id.det() == DetId::HGCalEE || id.det() == DetId::HGCalHSi) {
163  zside = HGCSiliconDetId(id).zside();
164  } else if (id.det() == DetId::HGCalHSc) {
166  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
167  zside = HFNoseDetId(id).zside();
168  } else if (id.det() == DetId::Forward) {
169  zside = HGCalDetId(id).zside();
170  } else if (id.det() == DetId::Hcal && id.subdetId() == HcalEndcap) {
171  zside = HcalDetId(id).zside();
172  }
173  return zside;
174 }
175 
176 std::float_t RecHitTools::getSiThickness(const DetId& id) const {
177  auto geom = getSubdetectorGeometry(id);
178  std::float_t thick(0.37);
179  if (id.det() == DetId::HGCalEE || id.det() == DetId::HGCalHSi) {
180  const HGCSiliconDetId hid(id);
181  auto ddd = get_ddd(geom, hid);
182  thick = ddd->cellThickness(hid.layer(), hid.waferU(), hid.waferV());
183  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
184  const HFNoseDetId hid(id);
185  auto ddd = get_ddd(geom, hid);
186  thick = ddd->cellThickness(hid.layer(), hid.waferU(), hid.waferV());
187  } else if (id.det() == DetId::Forward) {
188  const HGCalDetId hid(id);
189  auto ddd = get_ddd(geom, hid);
190  thick = ddd->cellThickness(hid.layer(), hid.wafer(), 0);
191  } else {
192  LogDebug("getSiThickness::InvalidSiliconDetid")
193  << "det id: " << std::hex << id.rawId() << std::dec << ":" << id.det() << " is not HGCal silicon!";
194  // It does not make any sense to return 0.37 as thickness for a detector
195  // that is not Silicon(does it?). Mark it as 0. to be able to distinguish
196  // the case.
197  thick = 0.f;
198  }
199  return thick;
200 }
201 
202 int RecHitTools::getSiThickIndex(const DetId& id) const {
203  int thickIndex = -1;
204  if (id.det() == DetId::HGCalEE || id.det() == DetId::HGCalHSi) {
205  thickIndex = HGCSiliconDetId(id).type();
206  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
207  thickIndex = HFNoseDetId(id).type();
208  } else if (id.det() == DetId::Forward) {
209  float thickness = getSiThickness(id);
210  if (thickness > 99. && thickness < 121.)
211  thickIndex = 0;
212  else if (thickness > 199. && thickness < 201.)
213  thickIndex = 1;
214  else if (thickness > 299. && thickness < 301.)
215  thickIndex = 2;
216  else
217  assert(thickIndex > 0 && "ERROR - silicon thickness has a nonsensical value");
218  }
219  return thickIndex;
220 }
221 
222 std::float_t RecHitTools::getRadiusToSide(const DetId& id) const {
223  auto geom = getSubdetectorGeometry(id);
225  if (id.det() == DetId::HGCalEE || id.det() == DetId::HGCalHSi) {
226  const HGCSiliconDetId hid(id);
227  auto ddd = get_ddd(geom, hid);
228  size = ddd->cellSizeHex(hid.type());
229  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
230  const HFNoseDetId hid(id);
231  auto ddd = get_ddd(geom, hid);
232  size = ddd->cellSizeHex(hid.type());
233  } else if (id.det() == DetId::Forward) {
234  const HGCalDetId hid(id);
235  auto ddd = get_ddd(geom, hid);
236  size = ddd->cellSizeHex(hid.waferType());
237  } else {
238  edm::LogError("getRadiusToSide::InvalidSiliconDetid")
239  << "det id: " << std::hex << id.rawId() << std::dec << ":" << id.det() << " is not HGCal silicon!";
240  }
241  return size;
242 }
243 
244 unsigned int RecHitTools::getLayer(const ForwardSubdetector type) const {
245  int layer(0);
246  switch (type) {
247  case (ForwardSubdetector::HGCEE): {
248  auto geomEE =
249  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCEE));
250  layer = (geomEE->topology().dddConstants()).layers(true);
251  break;
252  }
254  auto geomFH =
255  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCHEF));
256  layer = (geomFH->topology().dddConstants()).layers(true);
257  break;
258  }
260  auto geomBH =
261  static_cast<const HcalGeometry*>(geom_->getSubdetectorGeometry(DetId::Hcal, HcalSubdetector::HcalEndcap));
262  layer = (geomBH->topology().dddConstants())->getMaxDepth(1);
263  break;
264  }
266  auto geomEE =
267  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCEE));
268  layer = (geomEE->topology().dddConstants()).layers(true);
269  auto geomFH =
270  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCHEF));
271  layer += (geomFH->topology().dddConstants()).layers(true);
272  auto geomBH =
273  static_cast<const HcalGeometry*>(geom_->getSubdetectorGeometry(DetId::Hcal, HcalSubdetector::HcalEndcap));
274  if (geomBH)
275  layer += (geomBH->topology().dddConstants())->getMaxDepth(1);
276  auto geomBH2 =
277  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HGCHEB));
278  if (geomBH2)
279  layer += (geomBH2->topology().dddConstants()).layers(true);
280  break;
281  }
283  auto geomHFN =
284  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward, ForwardSubdetector::HFNose));
285  layer = (geomHFN->topology().dddConstants()).layers(true);
286  break;
287  }
288  default:
289  layer = 0;
290  }
291  return (unsigned int)(layer);
292 }
293 
294 unsigned int RecHitTools::getLayer(const DetId::Detector type, bool nose) const {
295  int layer;
296  switch (type) {
297  case (DetId::HGCalEE): {
298  auto geomEE =
299  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(type, ForwardSubdetector::ForwardEmpty));
300  layer = (geomEE->topology().dddConstants()).layers(true);
301  break;
302  }
303  case (DetId::HGCalHSi): {
304  auto geomFH =
305  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(type, ForwardSubdetector::ForwardEmpty));
306  layer = (geomFH->topology().dddConstants()).layers(true);
307  break;
308  }
309  case (DetId::HGCalHSc): {
310  auto geomBH =
311  static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(type, ForwardSubdetector::ForwardEmpty));
312  layer = (geomBH->topology().dddConstants()).layers(true);
313  break;
314  }
315  case (DetId::Forward): {
316  if (nose) {
317  auto geomHFN = static_cast<const HGCalGeometry*>(
319  layer = (geomHFN->topology().dddConstants()).layers(true);
320  } else {
321  auto geomEE = static_cast<const HGCalGeometry*>(
323  layer = (geomEE->topology().dddConstants()).layers(true);
324  auto geomFH = static_cast<const HGCalGeometry*>(
326  layer += (geomFH->topology().dddConstants()).layers(true);
327  }
328  break;
329  }
330  default:
331  layer = 0;
332  }
333  return (unsigned int)(layer);
334 }
335 
336 unsigned int RecHitTools::getLayer(const DetId& id) const {
338  if (id.det() == DetId::HGCalEE || id.det() == DetId::HGCalHSi) {
339  layer = HGCSiliconDetId(id).layer();
340  } else if (id.det() == DetId::HGCalHSc) {
342  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
343  layer = HFNoseDetId(id).layer();
344  } else if (id.det() == DetId::Forward) {
345  layer = HGCalDetId(id).layer();
346  } else if (id.det() == DetId::Hcal && id.subdetId() == HcalEndcap) {
347  layer = HcalDetId(id).depth();
348  }
349  return layer;
350 }
351 
352 unsigned int RecHitTools::getLayerWithOffset(const DetId& id) const {
353  unsigned int layer = getLayer(id);
354  if (id.det() == DetId::Forward && id.subdetId() == HGCHEF) {
355  layer += fhOffset_;
356  } else if (id.det() == DetId::HGCalHSi || id.det() == DetId::HGCalHSc) {
357  // DetId::HGCalHSc hits include the offset w.r.t. EE already
358  layer += fhOffset_;
359  } else if (id.det() == DetId::Hcal && id.subdetId() == HcalEndcap) {
360  layer += bhOffset_;
361  }
362  // no need to add offset for HFnose
363  return layer;
364 }
365 
366 std::pair<int, int> RecHitTools::getWafer(const DetId& id) const {
368  int waferV = 0;
369  if ((id.det() == DetId::HGCalEE) || (id.det() == DetId::HGCalHSi)) {
370  waferU = HGCSiliconDetId(id).waferU();
371  waferV = HGCSiliconDetId(id).waferV();
372  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
373  waferU = HFNoseDetId(id).waferU();
374  waferV = HFNoseDetId(id).waferV();
375  } else if (id.det() == DetId::Forward) {
376  waferU = HGCalDetId(id).wafer();
377  } else {
378  edm::LogError("getWafer::InvalidSiliconDetid")
379  << "det id: " << std::hex << id.rawId() << std::dec << ":" << id.det() << " is not HGCal silicon!";
380  }
381  return std::pair<int, int>(waferU, waferV);
382 }
383 
384 std::pair<int, int> RecHitTools::getCell(const DetId& id) const {
385  int cellU = std::numeric_limits<int>::max();
386  int cellV = 0;
387  if ((id.det() == DetId::HGCalEE) || (id.det() == DetId::HGCalHSi)) {
388  cellU = HGCSiliconDetId(id).cellU();
389  cellV = HGCSiliconDetId(id).cellV();
390  } else if (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)) {
391  cellU = HFNoseDetId(id).cellU();
392  cellV = HFNoseDetId(id).cellV();
393  } else if (id.det() == DetId::Forward) {
394  cellU = HGCalDetId(id).cell();
395  } else {
396  edm::LogError("getCell::InvalidSiliconDetid")
397  << "det id: " << std::hex << id.rawId() << std::dec << ":" << id.det() << " is not HGCal silicon!";
398  }
399  return std::pair<int, int>(cellU, cellV);
400 }
401 
402 bool RecHitTools::isHalfCell(const DetId& id) const {
403  bool ishalf = false;
404  if (id.det() == DetId::Forward) {
405  HGCalDetId hid(id);
406  auto geom = getSubdetectorGeometry(hid);
407  auto ddd = get_ddd(geom, hid);
408  const int waferType = ddd->waferTypeT(hid.waferType());
409  return ddd->isHalfCell(waferType, hid.cell());
410  }
411  //new geometry is always false
412  return ishalf;
413 }
414 
415 bool RecHitTools::isSilicon(const DetId& id) const {
416  return (id.det() == DetId::HGCalEE || id.det() == DetId::HGCalHSi ||
417  (id.det() == DetId::Forward && id.subdetId() == static_cast<int>(HFNose)));
418 }
419 
420 bool RecHitTools::isOnlySilicon(const unsigned int layer) const {
421  // HFnose TODO
422  bool isonlysilicon = (layer % bhLastLayer_) < bhOffset_;
423  return isonlysilicon;
424 }
425 
426 float RecHitTools::getEta(const GlobalPoint& position, const float& vertex_z) const {
427  GlobalPoint corrected_position = GlobalPoint(position.x(), position.y(), position.z() - vertex_z);
428  return corrected_position.eta();
429 }
430 
431 float RecHitTools::getEta(const DetId& id, const float& vertex_z) const {
433  float eta = getEta(position, vertex_z);
434  return eta;
435 }
436 
438  float phi = atan2(position.y(), position.x());
439  return phi;
440 }
441 
442 float RecHitTools::getPhi(const DetId& id) const {
444  float phi = atan2(position.y(), position.x());
445  return phi;
446 }
447 
448 float RecHitTools::getPt(const GlobalPoint& position, const float& hitEnergy, const float& vertex_z) const {
449  float eta = getEta(position, vertex_z);
450  float pt = hitEnergy / cosh(eta);
451  return pt;
452 }
453 
454 float RecHitTools::getPt(const DetId& id, const float& hitEnergy, const float& vertex_z) const {
456  float eta = getEta(position, vertex_z);
457  float pt = hitEnergy / cosh(eta);
458  return pt;
459 }
460 
461 bool RecHitTools::maskCell(const DetId& id, int corners) const {
462  if (id.det() == DetId::Hcal) {
463  return false;
464  } else {
465  auto hg = static_cast<const HGCalGeometry*>(getSubdetectorGeometry(id));
466  return hg->topology().dddConstants().maskCell(id, corners);
467  }
468 }
hgcal::RecHitTools::geom_
const CaloGeometry * geom_
Definition: RecHitTools.h:77
HGCalTopology::dddConstants
const HGCalDDDConstants & dddConstants() const
Definition: HGCalTopology.h:98
hgcal::RecHitTools::getSiThickness
std::float_t getSiThickness(const DetId &) const
Definition: RecHitTools.cc:176
hgcal::RecHitTools::geometryType_
int geometryType_
Definition: RecHitTools.h:80
hgcal::RecHitTools::getRadiusToSide
std::float_t getRadiusToSide(const DetId &) const
Definition: RecHitTools.cc:222
HGCScintillatorDetId.h
ForwardEmpty
Definition: ForwardSubdetector.h:5
ESHandle.h
hgcal::RecHitTools::getSiThickIndex
int getSiThickIndex(const DetId &) const
Definition: RecHitTools.cc:202
hgcal::RecHitTools::isHalfCell
bool isHalfCell(const DetId &) const
Definition: RecHitTools.cc:402
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
HFNoseDetId::zside
int zside() const
get the z-side of the cell (1/-1)
Definition: HFNoseDetId.h:53
ForwardSubdetector
ForwardSubdetector
Definition: ForwardSubdetector.h:4
HFNoseDetId::layer
int layer() const
get the layer #
Definition: HFNoseDetId.h:56
HGCalDDDConstants::waferZ
double waferZ(int layer, bool reco) const
Definition: HGCalDDDConstants.cc:1390
DetId::Hcal
Definition: DetId.h:28
HGCalDetId::zside
int zside() const
get the z-side of the cell (1/-1)
Definition: HGCalDetId.h:49
HGCSiliconDetId.h
hgcal::RecHitTools::fhLastLayer_
unsigned int fhLastLayer_
Definition: RecHitTools.h:78
RecHitTools.h
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:27
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
cms::cuda::assert
assert(be >=bs)
HcalDetId::depth
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164
hgcal::RecHitTools::getCell
std::pair< int, int > getCell(const DetId &) const
Definition: RecHitTools.cc:384
hgcal::RecHitTools::maxNumberOfWafersNose_
unsigned int maxNumberOfWafersNose_
Definition: RecHitTools.h:79
HFNoseDetId
Definition: HFNoseDetId.h:22
HGCalDetId::layer
int layer() const
get the layer #
Definition: HGCalDetId.h:46
hgcal::RecHitTools::bhOffset_
unsigned int bhOffset_
Definition: RecHitTools.h:78
HGCSiliconDetId
Definition: HGCSiliconDetId.h:22
HcalGeometry.h
hgcal
Definition: EgammaPCAHelper.h:31
HGCalDDDConstants
Definition: HGCalDDDConstants.h:27
HGCScintillatorDetId::layer
int layer() const
get the layer #
Definition: HGCScintillatorDetId.h:50
HFNoseDetId::waferU
int waferU() const
Definition: HFNoseDetId.h:75
DetId
Definition: DetId.h:17
DetId::HGCalHSi
Definition: DetId.h:33
DetId::HGCalEE
Definition: DetId.h:32
CaloGeometry
Definition: CaloGeometry.h:21
Calorimetry_cff.thickness
thickness
Definition: Calorimetry_cff.py:115
PVValHelper::eta
Definition: PVValidationHelpers.h:70
HFNose
Definition: ForwardSubdetector.h:11
hgcal::RecHitTools::getPt
float getPt(const GlobalPoint &position, const float &hitEnergy, const float &vertex_z=0.) const
Definition: RecHitTools.cc:448
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, GlobalTag >
HGCalGeometry
Definition: HGCalGeometry.h:29
HGCScintillatorDetId::zside
int zside() const
get the z-side of the cell (1/-1)
Definition: HGCScintillatorDetId.h:47
HGCalGeometry::topology
const HGCalTopology & topology() const
Definition: HGCalGeometry.h:111
hgcal::RecHitTools::getWafer
std::pair< int, int > getWafer(const DetId &) const
Definition: RecHitTools.cc:366
CaloGeometryRecord.h
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
HGCEE
Definition: ForwardSubdetector.h:8
HGCalDetId::waferType
int waferType() const
get the wafer type
Definition: HGCalDetId.h:43
HFNoseDetId::type
int type() const
get the type
Definition: HFNoseDetId.h:50
HGCalGeometry.h
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
Event.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
hgcal::RecHitTools::getPhi
float getPhi(const GlobalPoint &position) const
Definition: RecHitTools.cc:437
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
hgcal::RecHitTools::getLayerWithOffset
unsigned int getLayerWithOffset(const DetId &) const
Definition: RecHitTools.cc:352
HcalDetId.h
hgcal::RecHitTools::isSilicon
bool isSilicon(const DetId &) const
Definition: RecHitTools.cc:415
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
hgcal::RecHitTools::maxNumberOfWafersPerLayer_
unsigned int maxNumberOfWafersPerLayer_
Definition: RecHitTools.h:79
HcalDetId
Definition: HcalDetId.h:12
HFNoseDetId::cellV
int cellV() const
Definition: HFNoseDetId.h:60
IdealGeometryRecord.h
hgcal::RecHitTools::zside
int zside(const DetId &id) const
Definition: RecHitTools.cc:160
DetId::Detector
Detector
Definition: DetId.h:24
HGCalGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Definition: HGCalGeometry.cc:198
HGCSiliconDetId::zside
int zside() const
get the z-side of the cell (1/-1)
Definition: HGCSiliconDetId.h:54
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
hgcal::RecHitTools::getPositionLayer
GlobalPoint getPositionLayer(int layer, bool nose=false) const
Definition: RecHitTools.cc:138
hgcal::RecHitTools::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
Definition: RecHitTools.cc:116
HFNoseDetId::cellU
int cellU() const
get the cell #'s in u,v or in x,y
Definition: HFNoseDetId.h:59
hgcal::RecHitTools::getLayer
unsigned int getLayer(DetId::Detector type, bool nose=false) const
Definition: RecHitTools.cc:294
hgcal::RecHitTools::getEta
float getEta(const GlobalPoint &position, const float &vertex_z=0.) const
Definition: RecHitTools.cc:426
HGCalDetId::wafer
int wafer() const
get the wafer #
Definition: HGCalDetId.h:40
HGCalDetId
Definition: HGCalDetId.h:8
HGCSiliconDetId::cellV
int cellV() const
Definition: HGCSiliconDetId.h:61
HGCalDetId.h
HGCSiliconDetId::cellU
int cellU() const
get the cell #'s in u,v or in x,y
Definition: HGCSiliconDetId.h:60
hgcal::RecHitTools::fhOffset_
unsigned int fhOffset_
Definition: RecHitTools.h:78
HcalEndcap
Definition: HcalAssistant.h:34
HGCScintillatorDetId
Definition: HGCScintillatorDetId.h:23
hgcal::RecHitTools::setGeometry
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:68
hgcal::RecHitTools::maskCell
bool maskCell(const DetId &id, int corners=3) const
Definition: RecHitTools.cc:461
DetId::HGCalHSc
Definition: DetId.h:34
Exception
Definition: hltDiff.cc:245
hgcal::RecHitTools::noseLastLayer_
unsigned int noseLastLayer_
Definition: RecHitTools.h:78
CaloGeometry.h
HGCSiliconDetId::type
int type() const
get the type
Definition: HGCSiliconDetId.h:51
hgcal::RecHitTools::isOnlySilicon
bool isOnlySilicon(const unsigned int layer) const
Definition: RecHitTools.cc:420
HGCSiliconDetId::waferU
int waferU() const
Definition: HGCSiliconDetId.h:76
EventSetup.h
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
hgcal::RecHitTools::bhMaxIphi_
int bhMaxIphi_
Definition: RecHitTools.h:81
HGCHEF
Definition: ForwardSubdetector.h:9
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
hgcal::RecHitTools::bhLastLayer_
unsigned int bhLastLayer_
Definition: RecHitTools.h:78
HFNoseDetId::waferV
int waferV() const
Definition: HFNoseDetId.h:78
DetId::Forward
Definition: DetId.h:30
HcalDetId::zside
constexpr int zside() const
get the z-side of the cell (1/-1)
Definition: HcalDetId.h:141
hgcal::RecHitTools::getPosition
GlobalPoint getPosition(const DetId &id) const
Definition: RecHitTools.cc:126
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8
HGCalDDDConstants::maskCell
bool maskCell(const DetId &id, int corners) const
Definition: HGCalDDDConstants.cc:747
HGCalDetId::cell
int cell() const
get the absolute value of the cell #'s in x and y
Definition: HGCalDetId.h:37
HGCSiliconDetId::waferV
int waferV() const
Definition: HGCSiliconDetId.h:77
HGCHEB
Definition: ForwardSubdetector.h:10
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
HGCSiliconDetId::layer
int layer() const
get the layer #
Definition: HGCSiliconDetId.h:57