CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 31 of file HGCDigitizerBase.h.

References HGCalTopology::dddConstants(), HGCalGeometryMode::Hexagon, HGCalGeometryMode::HexagonFull, HGCalGeometry::topology(), and HGCalDDDConstants::waferType().

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);
40  }
static const TGPicture * info(bool iBackgroundIsBlack)
const HGCalTopology & topology() const
const HGCalDDDConstants & dddConstants() const
Definition: HGCalTopology.h:98
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, and DetId::Hcal.

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)
void addCellMetadata(HGCCellInfo &info, const HGCalGeometry *geom, const DetId &detid)
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46