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();
266 float pt = hitEnergy / cosh(
eta);
290 float layerGlobalZ = 0.;
306 if (dddConst.waferHexagon8() || dddConst.tileTrapezoid()) {
double waferZ(int layer, bool reco) const
virtual GlobalPoint getTriggerCellPosition(const unsigned trigger_cell_det_id) const =0
bool isWithNoseGeometry() const
int layer() const
get the layer #
const HGCalTopology & eeTopology() const
Global3DPoint GlobalPoint
int zside() const
get the z-side of the cell (1/-1)
constexpr int zside() const
get the z-side of the cell (1/-1)
int zside() const
get the z-side of the cell (1/-1)
int layer() const
get the layer #
bool isEE() const
consistency check : no bits left => no overhead
int type() const
get the type
int layer() const
get the layer #
T const * product() const
HGCalTriggerSubdetector subdet() const
get the subdetector
constexpr int32_t zside() const
get the z-side of the cell (1/-1)
unsigned int layers(bool reco) const
int type() const
get the type
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
int type() const
get the type
int type() const
get the type
constexpr int32_t layer() const
get the layer #
const HGCalTopology & noseTopology() const
bool isEE() const
consistency check : no bits left => no overhead
const HGCalTopology & fhTopology() const
const HGCalTopology & hscTopology() const
constexpr int layer() const
get the layer #
static int position[264][3]
int zside() const
get the z-side of the module (1/-1)
int triggerSubdetId() const
get the trigger sub-detector
constexpr int32_t type() const
get the type
int layer() const
get the layer #
const HGCalDDDConstants & dddConstants() const
int zside() const
get the z-side of the cell (1/-1)