1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerGeometryGenericMapping_h__ 2 #define __L1Trigger_L1THGCal_HGCalTriggerGeometryGenericMapping_h__ 37 unsigned tc_id,
unsigned mod_id,
const GlobalPoint&
pos,
const list_type& neighbs,
const list_type& comps)
62 typedef std::unordered_multimap<unsigned, unsigned>
tc_map_type;
66 const list_type& neighbs,
67 const list_type& comps,
68 const tc_map_type& tc_comps)
79 for (
const auto&
value : tc_components_) {
80 if (
value.second == cell)
104 typedef std::unordered_map<unsigned, std::unique_ptr<const HGCalTriggerGeometry::Module> >
module_map;
105 typedef std::unordered_map<unsigned, std::unique_ptr<const HGCalTriggerGeometry::TriggerCell> >
trigger_cell_map;
113 unsigned getTriggerCellFromCell(
const unsigned cell_det_id)
const final;
114 unsigned getModuleFromCell(
const unsigned cell_det_id)
const final;
115 unsigned getModuleFromTriggerCell(
const unsigned trigger_cell_det_id)
const final;
117 geom_set getCellsFromTriggerCell(
const unsigned cell_det_id)
const final;
118 geom_set getCellsFromModule(
const unsigned cell_det_id)
const final;
119 geom_set getTriggerCellsFromModule(
const unsigned trigger_cell_det_id)
const final;
121 geom_ordered_set getOrderedCellsFromModule(
const unsigned cell_det_id)
const final;
122 geom_ordered_set getOrderedTriggerCellsFromModule(
const unsigned trigger_cell_det_id)
const final;
124 geom_set getNeighborsFromTriggerCell(
const unsigned trigger_cell_det_id)
const final;
126 GlobalPoint getTriggerCellPosition(
const unsigned trigger_cell_det_id)
const final;
127 GlobalPoint getModulePosition(
const unsigned module_det_id)
const final;
129 bool validTriggerCell(
const unsigned trigger_cell_det_id)
const final;
130 bool disconnectedModule(
const unsigned module_id)
const final;
131 unsigned triggerLayer(
const unsigned id)
const final;
std::unordered_set< unsigned > list_type
const tc_map_type & triggerCellComponents() const
std::unordered_multimap< unsigned, unsigned > tc_map_type
bool containsCell(const unsigned cell) const
unsigned moduleId() const
tc_map_type tc_components_
unsigned triggerCellId() const
~HGCalTriggerGeometryGenericMapping() override
Module(unsigned mod_id, const GlobalPoint &pos, const list_type &neighbs, const list_type &comps, const tc_map_type &tc_comps)
std::unordered_map< unsigned, std::unique_ptr< const HGCalTriggerGeometry::Module > > module_map
geom_map cells_to_trigger_cells_
unsigned moduleId() const
const GlobalPoint & position() const
TriggerCell(unsigned tc_id, unsigned mod_id, const GlobalPoint &pos, const list_type &neighbs, const list_type &comps)
const std::unordered_set< unsigned > & neighbours() const
const list_type & neighbours() const
std::unordered_map< unsigned, std::unique_ptr< const HGCalTriggerGeometry::TriggerCell > > trigger_cell_map
geom_map trigger_cells_to_modules_
bool containsTriggerCell(const unsigned trig_cell) const
std::set< unsigned > geom_ordered_set
std::unordered_set< unsigned > geom_set
trigger_cell_map trigger_cells_
bool containsCell(const unsigned cell) const
unsigned trigger_cell_id_
const GlobalPoint & position() const
void reset(double vett[256])
std::unordered_set< unsigned > list_type
const list_type & components() const
const std::unordered_set< unsigned > & components() const