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++) {
66 HGCSiliconDetId cell_det_id(cell_det, zside, type, layer, waferu, waferv, cellus[ic], cellvs[ic]);
67 cell_det_ids.emplace(cell_det_id.
rawId());
std::unordered_set< unsigned > getCellsFromTriggerCell(const unsigned trigger_cell_id) const
FWProxyBuilderConfiguration * getConfig() const
HGCalTriggerSubdetector subdet() const
get the subdetector
constexpr uint32_t rawId() const
get the raw id
void setItem(const FWEventItem *iItem) override
int type() const
get/set the type
int zside() const
get the z-side of the cell (1/-1)
int type() const
get the type
int layer() const
get the layer #
virtual void setItem(const FWEventItem *iItem)
std::vector< int > cellV() const
int iphi() const
get the phi index
FWGenericParameter< T > * assertParam(const std::string &name, T def)
int layer() const
get the layer #
std::vector< int > cellU() const
int zside() const
get the z-side of the cell (1/-1)
constexpr Detector det() const
get the detector field from this detid