CMS 3D CMS Logo

Functions
hgc_digi_utils Namespace Reference

Functions

void addCellMetadata (HGCCellInfo &info, const HcalGeometry *geom, const DetId &detid)
 
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 HcalGeometry geom,
const DetId detid 
)
inline

Definition at line 29 of file HGCDigitizerBase.h.

Referenced by addCellMetadata(), HGCHEbackDigitizer::runCaliceLikeDigitizer(), and HGCDigitizerBase< DFr >::runSimple().

31  {
32  //base time samples for each DetId, initialized to 0
33  info.size = 1.0;
34  info.thickness = 1.0;
35  }
static const TGPicture * info(bool iBackgroundIsBlack)
void hgc_digi_utils::addCellMetadata ( HGCCellInfo &  info,
const HGCalGeometry geom,
const DetId detid 
)
inline

Definition at line 37 of file HGCDigitizerBase.h.

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

39  {
40  const auto& dddConst = geom->topology().dddConstants();
41  bool isHalf = (((dddConst.geomMode() == HGCalGeometryMode::Hexagon) ||
42  (dddConst.geomMode() == HGCalGeometryMode::HexagonFull)) ?
43  dddConst.isHalfCell(HGCalDetId(detid).wafer(),HGCalDetId(detid).cell()) :
44  false);
45  //base time samples for each DetId, initialized to 0
46  info.size = (isHalf ? 0.5 : 1.0);
47  info.thickness = dddConst.waferType(detid);
48  }
static const TGPicture * info(bool iBackgroundIsBlack)
const HGCalTopology & topology() const
const HGCalDDDConstants & dddConstants() const
void hgc_digi_utils::addCellMetadata ( HGCCellInfo &  info,
const CaloSubdetectorGeometry geom,
const DetId detid 
)
inline

Definition at line 50 of file HGCDigitizerBase.h.

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

52  {
53  if( DetId::Hcal == detid.det() ) {
54  const HcalGeometry* hc = static_cast<const HcalGeometry*>(geom);
55  addCellMetadata(info,hc,detid);
56  } else {
57  const HGCalGeometry* hg = static_cast<const HGCalGeometry*>(geom);
58  addCellMetadata(info,hg,detid);
59  }
60  }
static const TGPicture * info(bool iBackgroundIsBlack)
void addCellMetadata(HGCCellInfo &info, const CaloSubdetectorGeometry *geom, const DetId &detid)
susybsm::HSCParticleCollection hc
Definition: classes.h:25
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:39