CMS 3D CMS Logo

List of all members | Public Member Functions
TrivialGeometry Class Reference
Inheritance diagram for TrivialGeometry:
HGCalTriggerGeometryGenericMapping HGCalTriggerGeometryBase

Public Member Functions

void initialize (const edm::ESHandle< CaloGeometry > &) final
 
void initialize (const edm::ESHandle< HGCalGeometry > &, const edm::ESHandle< HGCalGeometry > &, const edm::ESHandle< HGCalGeometry > &) final
 
 TrivialGeometry (const edm::ParameterSet &conf)
 
- Public Member Functions inherited from HGCalTriggerGeometryGenericMapping
bool disconnectedModule (const unsigned module_id) const final
 
geom_set getCellsFromModule (const unsigned cell_det_id) const final
 
geom_set getCellsFromTriggerCell (const unsigned cell_det_id) const final
 
unsigned getModuleFromCell (const unsigned cell_det_id) const final
 
unsigned getModuleFromTriggerCell (const unsigned trigger_cell_det_id) const final
 
GlobalPoint getModulePosition (const unsigned module_det_id) const final
 
geom_set getNeighborsFromTriggerCell (const unsigned trigger_cell_det_id) const final
 
geom_ordered_set getOrderedCellsFromModule (const unsigned cell_det_id) const final
 
geom_ordered_set getOrderedTriggerCellsFromModule (const unsigned trigger_cell_det_id) const final
 
unsigned getTriggerCellFromCell (const unsigned cell_det_id) const final
 
GlobalPoint getTriggerCellPosition (const unsigned trigger_cell_det_id) const final
 
geom_set getTriggerCellsFromModule (const unsigned trigger_cell_det_id) const final
 
 HGCalTriggerGeometryGenericMapping (const edm::ParameterSet &conf)
 
void reset () final
 
unsigned triggerLayer (const unsigned id) const final
 
bool validTriggerCell (const unsigned trigger_cell_det_id) const final
 
 ~HGCalTriggerGeometryGenericMapping () override
 
- Public Member Functions inherited from HGCalTriggerGeometryBase
const HcalGeometrybhGeometry () const
 
const HcalTopologybhTopology () const
 
const edm::ESHandle< CaloGeometry > & caloGeometry () const
 
const HGCalGeometryeeGeometry () const
 
const HGCalTopologyeeTopology () const
 
const HGCalGeometryfhGeometry () const
 
const HGCalTopologyfhTopology () const
 
 HGCalTriggerGeometryBase (const edm::ParameterSet &conf)
 
const HGCalGeometryhscGeometry () const
 
const HGCalTopologyhscTopology () const
 
const HGCalGeometryhsiGeometry () const
 
const HGCalTopologyhsiTopology () const
 
bool isV9Geometry () const
 
const std::string & name () const
 
virtual ~HGCalTriggerGeometryBase ()
 

Additional Inherited Members

- Public Types inherited from HGCalTriggerGeometryGenericMapping
typedef std::unordered_map< unsigned, std::unique_ptr< const HGCalTriggerGeometry::Module > > module_map
 
typedef std::unordered_map< unsigned, std::unique_ptr< const HGCalTriggerGeometry::TriggerCell > > trigger_cell_map
 
- Public Types inherited from HGCalTriggerGeometryBase
typedef std::unordered_map< unsigned, unsigned > geom_map
 
typedef std::set< unsigned > geom_ordered_set
 
typedef std::unordered_set< unsigned > geom_set
 
- Protected Member Functions inherited from HGCalTriggerGeometryBase
void setCaloGeometry (const edm::ESHandle< CaloGeometry > &geom)
 
void setEEGeometry (const edm::ESHandle< HGCalGeometry > &geom)
 
void setHScGeometry (const edm::ESHandle< HGCalGeometry > &geom)
 
void setHSiGeometry (const edm::ESHandle< HGCalGeometry > &geom)
 
- Protected Attributes inherited from HGCalTriggerGeometryGenericMapping
geom_map cells_to_trigger_cells_
 
module_map modules_
 
trigger_cell_map trigger_cells_
 
geom_map trigger_cells_to_modules_
 

Detailed Description

Definition at line 3 of file TrivialGeometry.cc.

Constructor & Destructor Documentation

TrivialGeometry::TrivialGeometry ( const edm::ParameterSet conf)
inline

Definition at line 5 of file TrivialGeometry.cc.

Member Function Documentation

void TrivialGeometry::initialize ( const edm::ESHandle< CaloGeometry > &  )
inlinefinalvirtual

Implements HGCalTriggerGeometryBase.

Definition at line 7 of file TrivialGeometry.cc.

References constexpr, mps_fire::i, HGCalTriggerGeometryGenericMapping::modules_, HGCalTriggerGeometryGenericMapping::trigger_cells_, and HGCalTriggerGeometryGenericMapping::trigger_cells_to_modules_.

7  {
8  constexpr unsigned nmodules = 6;
9  for (unsigned i = 0; i < nmodules; ++i) {
11 
13  trigger_cells_[i].reset(new HGCalTriggerGeometry::TriggerCell(i, i, GlobalPoint(), tc_empty, tc_empty));
14 
18  modules_[i].reset(new HGCalTriggerGeometry::Module(i, GlobalPoint(), mod_empty, mod_comps, map_empty));
19  }
20  }
std::unordered_set< unsigned > list_type
std::unordered_multimap< unsigned, unsigned > tc_map_type
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
#define constexpr
void TrivialGeometry::initialize ( const edm::ESHandle< HGCalGeometry > &  ,
const edm::ESHandle< HGCalGeometry > &  ,
const edm::ESHandle< HGCalGeometry > &   
)
inlinefinalvirtual

Implements HGCalTriggerGeometryBase.

Definition at line 21 of file TrivialGeometry.cc.

References DEFINE_EDM_PLUGIN.

23  {}