26 constexpr unsigned hSc_triggercell_size_ = 2;
29 DetId trigger_cell_det_id(trigger_cell_id);
30 unsigned det = trigger_cell_det_id.
det();
32 std::unordered_set<unsigned> cell_det_ids;
37 int ieta0 = (trigger_cell_sc_id.
ietaAbs() - 1) * hSc_triggercell_size_ + 1;
38 int iphi0 = (trigger_cell_sc_id.
iphi() - 1) * hSc_triggercell_size_ + 1;
39 for (
int ietaAbs = ieta0; ietaAbs < ieta0 + (
int)hSc_triggercell_size_; ietaAbs++) {
40 int ieta = ietaAbs * trigger_cell_sc_id.
zside();
41 for (
int iphi = iphi0;
iphi < iphi0 + (
int)hSc_triggercell_size_;
iphi++) {
46 cell_det_ids.emplace(cell_id);
53 unsigned subdet = trigger_cell_trig_id.
subdet();
59 int type = trigger_cell_trig_id.
type();
60 int waferu = trigger_cell_trig_id.
waferU();
61 int waferv = trigger_cell_trig_id.
waferV();
62 std::vector<int> cellus = trigger_cell_trig_id.
cellU();
63 std::vector<int> cellvs = trigger_cell_trig_id.
cellV();
64 for (
unsigned ic = 0; ic < cellus.size(); ic++) {
65 HGCSiliconDetId cell_det_id(cell_det, zside, type, layer, waferu, waferv, cellus[ic], cellvs[ic]);
66 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 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