CMS 3D CMS Logo

Functions
hgc_digi_utils Namespace Reference

Functions

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

Function Documentation

◆ addCellMetadata() [1/2]

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

Definition at line 31 of file HGCDigitizerBase.h.

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

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

31  {
32  const auto& dddConst = geom->topology().dddConstants();
33  bool isHalf = (((dddConst.geomMode() == HGCalGeometryMode::Hexagon) ||
34  (dddConst.geomMode() == HGCalGeometryMode::HexagonFull))
35  ? dddConst.isHalfCell(HGCalDetId(detid).wafer(), HGCalDetId(detid).cell())
36  : false);
37  //base time samples for each DetId, initialized to 0
38  info.size = (isHalf ? 0.5 : 1.0);
39  info.thickness = 1 + dddConst.waferType(detid, false);
40  }
static const TGPicture * info(bool iBackgroundIsBlack)

◆ addCellMetadata() [2/2]

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

Definition at line 42 of file HGCDigitizerBase.h.

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

42  {
43  if (DetId::Hcal == detid.det()) {
44  const HcalGeometry* hc = static_cast<const HcalGeometry*>(geom);
45  addCellMetadata(info, hc, detid);
46  } else {
47  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom);
48  addCellMetadata(info, hg, detid);
49  }
50  }
static const TGPicture * info(bool iBackgroundIsBlack)
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
void addCellMetadata(HGCCellInfo &info, const CaloSubdetectorGeometry *geom, const DetId &detid)