18 template <
typename DDD>
19 inline void check_ddd(
const DDD* ddd) {
21 throw cms::Exception(
"hgcal::HGCalTriggerTools") <<
"DDDConstants not accessible to hgcal::HGCalTriggerTools!";
25 template <
typename GEOM>
26 inline void check_geom(
const GEOM*
geom) {
27 if (
nullptr == geom) {
28 throw cms::Exception(
"hgcal::HGCalTriggerTools") <<
"Geometry not provided yet to hgcal::HGCalTriggerTools!";
53 throw cms::Exception(
"hgcal::HGCalTriggerTools") <<
"method getTCPosition called for DetId not belonging to a TC";
130 unsigned int l =
layer(
id);
134 }
else if (
isHad(
id)) {
172 bool silicon =
false;
225 unsigned det =
id.det();
246 return corrected_position.
eta();
251 return getEta(position, vertex_z);
255 float phi = atan2(position.
y(), position.
x());
266 float pt = hitEnergy / cosh(eta);
272 return getPt(position, hitEnergy, vertex_z);
286 return getLayerZ(subdet, layerWithOffset - offset);
290 float layerGlobalZ = 0.;
306 if (dddConst.waferHexagon8() || dddConst.tileTrapezoid()) {
virtual GlobalPoint getTriggerCellPosition(const unsigned trigger_cell_det_id) const =0
int zside() const
get the z-side of the module (1/-1)
int zside() const
get the z-side of the cell (1/-1)
HGCalTriggerSubdetector subdet() const
get the subdetector
int type() const
get the type
bool isEE() const
consistency check : no bits left => no overhead
const HGCalTopology & eeTopology() const
Global3DPoint GlobalPoint
bool isEE() const
consistency check : no bits left => no overhead
int zside() const
get the z-side of the cell (1/-1)
int zside() const
get the z-side of the cell (1/-1)
bool isWithNoseGeometry() const
int type() const
get the type
constexpr std::array< uint8_t, layerIndexSize > layer
int layer() const
get the layer #
int type() const
get the type
unsigned int layers(bool reco) const
int layer() const
get the layer #
int type() const
get the type
int layer() const
get the layer #
int zside() const
get the z-side of the cell (1/-1)
int layer() const
get the layer #
double waferZ(int layer, bool reco) const
const HGCalDDDConstants & dddConstants() const
const HGCalTopology & hscTopology() const
T const * product() const
int triggerSubdetId() const
get the trigger sub-detector
int layer() const
get the layer #
int layer() const
get the layer #
int zside() const
get the z-side of the cell (1/-1)
static int position[264][3]
const HGCalTopology & noseTopology() const
int type() const
get the type
const HGCalTopology & fhTopology() const