27 constexpr
unsigned hSc_triggercell_size_ = 2;
30 DetId trigger_cell_det_id(trigger_cell_id);
31 unsigned det = trigger_cell_det_id.
det();
33 std::unordered_set<unsigned> cell_det_ids;
38 int ieta0 = (trigger_cell_sc_id.
ietaAbs() - 1) * hSc_triggercell_size_ + 1;
39 int iphi0 = (trigger_cell_sc_id.
iphi() - 1) * hSc_triggercell_size_ + 1;
40 for (
int ietaAbs = ieta0; ietaAbs < ieta0 + (
int)hSc_triggercell_size_; ietaAbs++) {
41 int ieta = ietaAbs * trigger_cell_sc_id.
zside();
42 for (
int iphi = iphi0;
iphi < iphi0 + (
int)hSc_triggercell_size_;
iphi++) {
47 cell_det_ids.emplace(cell_id);
54 unsigned subdet = trigger_cell_trig_id.
subdet();
60 int type = trigger_cell_trig_id.
type();
61 int waferu = trigger_cell_trig_id.
waferU();
62 int waferv = trigger_cell_trig_id.
waferV();
63 std::vector<int> cellus = trigger_cell_trig_id.
cellU();
64 std::vector<int> cellvs = trigger_cell_trig_id.
cellV();
65 for (
unsigned ic = 0; ic < cellus.size(); ic++) {
67 cell_det_ids.emplace(cell_det_id.
rawId());
constexpr int iphi() const
get the phi index
std::vector< int > cellV() const
std::vector< int > cellU() const
constexpr int ietaAbs() const
FWProxyBuilderConfiguration * getConfig() const
void setItem(const FWEventItem *iItem) override
int zside() const
get the z-side of the cell (1/-1)
std::unordered_set< unsigned > getCellsFromTriggerCell(const unsigned trigger_cell_id) const
constexpr int zside() const
get the z-side of the cell (1/-1)
constexpr Detector det() const
get the detector field from this detid
int layer() const
get the layer #
virtual void setItem(const FWEventItem *iItem)
HGCalTriggerSubdetector subdet() const
get the subdetector
constexpr int type() const
get/set the type
FWGenericParameter< T > * assertParam(const std::string &name, T def)
constexpr uint32_t rawId() const
get the raw id
int type() const
get the type
constexpr int layer() const
get the layer #