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;
122 virtual void reset()
override final;
124 virtual unsigned getTriggerCellFromCell(
const unsigned cell_det_id )
const override final;
125 virtual unsigned getModuleFromCell(
const unsigned cell_det_id )
const override final;
126 virtual unsigned getModuleFromTriggerCell(
const unsigned trigger_cell_det_id )
const override final;
128 virtual geom_set getCellsFromTriggerCell(
const unsigned cell_det_id )
const override final;
129 virtual geom_set getCellsFromModule(
const unsigned cell_det_id )
const override final;
130 virtual geom_set getTriggerCellsFromModule(
const unsigned trigger_cell_det_id )
const override final;
132 virtual geom_ordered_set getOrderedCellsFromModule(
const unsigned cell_det_id )
const override final;
133 virtual geom_ordered_set getOrderedTriggerCellsFromModule(
const unsigned trigger_cell_det_id )
const override final;
135 virtual geom_set getNeighborsFromTriggerCell(
const unsigned trigger_cell_det_id )
const override final;
137 virtual GlobalPoint getTriggerCellPosition(
const unsigned trigger_cell_det_id)
const override final;
138 virtual GlobalPoint getModulePosition(
const unsigned module_det_id)
const override final;
140 bool validTriggerCell(
const unsigned trigger_cell_det_id )
const final;
141 bool disconnectedModule(
const unsigned module_id)
const final;
142 unsigned triggerLayer(
const unsigned 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
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
virtual ~HGCalTriggerGeometryGenericMapping()
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