CMS 3D CMS Logo

Functions
hgc_digi_utils Namespace Reference

Functions

void addCellMetadata (HGCCellInfo &info, const CaloSubdetectorGeometry *geom, const DetId &detid)
 
void addCellMetadata (HGCCellInfo &info, const HcalGeometry *geom, const DetId &detid)
 
void addCellMetadata (HGCCellInfo &info, const HGCalGeometry *geom, const DetId &detid)
 

Function Documentation

◆ addCellMetadata() [1/3]

void hgc_digi_utils::addCellMetadata ( HGCCellInfo info,
const CaloSubdetectorGeometry geom,
const DetId detid 
)
inline

Definition at line 48 of file HGCDigitizerBase.h.

48  {
49  if (DetId::Hcal == detid.det()) {
50  const HcalGeometry* hc = static_cast<const HcalGeometry*>(geom);
51  addCellMetadata(info, hc, detid);
52  } else {
53  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom);
54  addCellMetadata(info, hg, detid);
55  }
56  }

References addCellMetadata(), DetId::det(), relativeConstraints::geom, DetId::Hcal, and info().

◆ addCellMetadata() [2/3]

void hgc_digi_utils::addCellMetadata ( HGCCellInfo info,
const HcalGeometry geom,
const DetId detid 
)
inline

Definition at line 31 of file HGCDigitizerBase.h.

31  {
32  //base time samples for each DetId, initialized to 0
33  info.size = 1.0;
34  info.thickness = 1.0;
35  }

References info().

Referenced by addCellMetadata(), HGCHEbackDigitizer::runCaliceLikeDigitizer(), HGCHEbackDigitizer::runEmptyDigitizer(), HGCHEbackDigitizer::runRealisticDigitizer(), and HGCDigitizerBase< HGCalDataFrame >::runSimple().

◆ addCellMetadata() [3/3]

void hgc_digi_utils::addCellMetadata ( HGCCellInfo info,
const HGCalGeometry geom,
const DetId detid 
)
inline

Definition at line 37 of file HGCDigitizerBase.h.

37  {
38  const auto& dddConst = geom->topology().dddConstants();
39  bool isHalf = (((dddConst.geomMode() == HGCalGeometryMode::Hexagon) ||
40  (dddConst.geomMode() == HGCalGeometryMode::HexagonFull))
41  ? dddConst.isHalfCell(HGCalDetId(detid).wafer(), HGCalDetId(detid).cell())
42  : false);
43  //base time samples for each DetId, initialized to 0
44  info.size = (isHalf ? 0.5 : 1.0);
45  info.thickness = 1 + dddConst.waferType(detid);
46  }

References relativeConstraints::geom, HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, and info().

DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
DetId::Hcal
Definition: DetId.h:28
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
hgc_digi_utils::addCellMetadata
void addCellMetadata(HGCCellInfo &info, const CaloSubdetectorGeometry *geom, const DetId &detid)
Definition: HGCDigitizerBase.h:48
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
HGCalGeometry
Definition: HGCalGeometry.h:29
HGCalGeometryMode::Hexagon
Definition: HGCalGeometryMode.h:27
HGCalDetId
Definition: HGCalDetId.h:8
HGCalGeometryMode::HexagonFull
Definition: HGCalGeometryMode.h:28
HcalGeometry
Definition: HcalGeometry.h:17