1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerGeometryGenericMapping_h__ 2 #define __L1Trigger_L1THGCal_HGCalTriggerGeometryGenericMapping_h__ 37 const list_type& neighbs,
const list_type& comps) :
70 typedef std::unordered_multimap<unsigned,unsigned>
tc_map_type;
73 const list_type& neighbs,
const list_type& comps,
74 const tc_map_type& tc_comps):
79 tc_components_(tc_comps)
90 for(
const auto&
value : tc_components_ ) {
91 if(
value.second == cell )
return true;
115 typedef std::unordered_map<unsigned,std::unique_ptr<const HGCalTriggerGeometry::Module> >
module_map;
116 typedef std::unordered_map<unsigned,std::unique_ptr<const HGCalTriggerGeometry::TriggerCell> >
trigger_cell_map;
124 unsigned getTriggerCellFromCell(
const unsigned cell_det_id )
const final;
125 unsigned getModuleFromCell(
const unsigned cell_det_id )
const final;
126 unsigned getModuleFromTriggerCell(
const unsigned trigger_cell_det_id )
const final;
128 geom_set getCellsFromTriggerCell(
const unsigned cell_det_id )
const final;
129 geom_set getCellsFromModule(
const unsigned cell_det_id )
const final;
130 geom_set getTriggerCellsFromModule(
const unsigned trigger_cell_det_id )
const final;
132 geom_ordered_set getOrderedCellsFromModule(
const unsigned cell_det_id )
const final;
133 geom_ordered_set getOrderedTriggerCellsFromModule(
const unsigned trigger_cell_det_id )
const final;
135 geom_set getNeighborsFromTriggerCell(
const unsigned trigger_cell_det_id )
const final;
137 GlobalPoint getTriggerCellPosition(
const unsigned trigger_cell_det_id)
const final;
138 GlobalPoint getModulePosition(
const unsigned module_det_id)
const final;
140 bool validTriggerCell(
const unsigned trigger_cell_det_id )
const final;
141 bool disconnectedModule(
const unsigned module_id)
const final;
std::unordered_set< unsigned > list_type
const tc_map_type & triggerCellComponents() const
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)
geom_map cells_to_trigger_cells_
std::unordered_multimap< unsigned, unsigned > tc_map_type
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
std::unordered_map< unsigned, std::unique_ptr< const HGCalTriggerGeometry::TriggerCell > > trigger_cell_map
std::unordered_map< unsigned, std::unique_ptr< const HGCalTriggerGeometry::Module > > module_map
const list_type & neighbours() const
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