1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerGeometryGenericMapping_h__ 2 #define __L1Trigger_L1THGCal_HGCalTriggerGeometryGenericMapping_h__ 49 const list_type& neighbs,
const list_type& comps) :
82 typedef std::unordered_multimap<unsigned,unsigned>
tc_map_type;
85 const list_type& neighbs,
const list_type& comps,
86 const tc_map_type& tc_comps):
91 tc_components_(tc_comps)
102 for(
const auto&
value : tc_components_ ) {
103 if(
value.second == cell )
return true;
127 typedef std::unordered_map<unsigned,std::unique_ptr<const HGCalTriggerGeometry::Module> >
module_map;
128 typedef std::unordered_map<unsigned,std::unique_ptr<const HGCalTriggerGeometry::TriggerCell> >
trigger_cell_map;
135 virtual void reset()
override final;
150 virtual unsigned getTriggerCellFromCell(
const unsigned cell_det_id )
const override final;
151 virtual unsigned getModuleFromCell(
const unsigned cell_det_id )
const override final;
152 virtual unsigned getModuleFromTriggerCell(
const unsigned trigger_cell_det_id )
const override final;
154 virtual geom_set getCellsFromTriggerCell(
const unsigned cell_det_id )
const override final;
155 virtual geom_set getCellsFromModule(
const unsigned cell_det_id )
const override final;
156 virtual geom_set getTriggerCellsFromModule(
const unsigned trigger_cell_det_id )
const override final;
158 virtual geom_ordered_set getOrderedCellsFromModule(
const unsigned cell_det_id )
const override final;
159 virtual geom_ordered_set getOrderedTriggerCellsFromModule(
const unsigned trigger_cell_det_id )
const override final;
161 virtual GlobalPoint getTriggerCellPosition(
const unsigned trigger_cell_det_id)
const override final;
162 virtual GlobalPoint getModulePosition(
const unsigned module_det_id)
const override final;
std::unordered_set< unsigned > list_type
const tc_map_type & triggerCellComponents() const
bool containsCell(const unsigned cell) const
std::unordered_map< unsigned, unsigned > geom_map
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