CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
HGCalTriggerGeometryBase Class Referenceabstract

#include <HGCalTriggerGeometryBase.h>

Inheritance diagram for HGCalTriggerGeometryBase:
HGCalTriggerGeometryGenericMapping HGCalTriggerGeometryHexImp2 HGCalTriggerGeometryHexLayerBasedImp1 HGCalTriggerGeometryHexImp1 HGCalTriggerGeometryImp1 NullGeometry TrivialGeometry

Public Types

typedef std::unordered_map< unsigned, unsigned > geom_map
 
typedef std::set< unsigned > geom_ordered_set
 
typedef std::unordered_set< unsigned > geom_set
 

Public Member Functions

const HcalGeometrybhGeometry () const
 
const HcalTopologybhTopology () const
 
const edm::ESHandle< CaloGeometry > & caloGeometry () const
 
virtual bool disconnectedModule (const unsigned module_id) const =0
 
const HGCalGeometryeeGeometry () const
 
const HGCalTopologyeeTopology () const
 
const HGCalGeometryfhGeometry () const
 
const HGCalTopologyfhTopology () const
 
virtual geom_set getCellsFromModule (const unsigned cell_det_id) const =0
 
virtual geom_set getCellsFromTriggerCell (const unsigned cell_det_id) const =0
 
virtual unsigned getModuleFromCell (const unsigned cell_det_id) const =0
 
virtual unsigned getModuleFromTriggerCell (const unsigned trigger_cell_det_id) const =0
 
virtual GlobalPoint getModulePosition (const unsigned module_det_id) const =0
 
virtual geom_set getNeighborsFromTriggerCell (const unsigned trigger_cell_det_id) const =0
 
virtual geom_ordered_set getOrderedCellsFromModule (const unsigned cell_det_id) const =0
 
virtual geom_ordered_set getOrderedTriggerCellsFromModule (const unsigned trigger_cell_det_id) const =0
 
virtual unsigned getTriggerCellFromCell (const unsigned cell_det_id) const =0
 
virtual GlobalPoint getTriggerCellPosition (const unsigned trigger_cell_det_id) const =0
 
virtual geom_set getTriggerCellsFromModule (const unsigned trigger_cell_det_id) const =0
 
 HGCalTriggerGeometryBase (const edm::ParameterSet &conf)
 
virtual void initialize (const edm::ESHandle< CaloGeometry > &)=0
 
const std::string & name () const
 
virtual void reset ()
 
virtual unsigned triggerLayer (const unsigned id) const =0
 
virtual bool validTriggerCell (const unsigned trigger_cell_id) const =0
 
virtual ~HGCalTriggerGeometryBase ()
 

Protected Member Functions

void setCaloGeometry (const edm::ESHandle< CaloGeometry > &geom)
 

Private Attributes

edm::ESHandle< CaloGeometrycalo_geometry_
 
const std::string name_
 

Detailed Description

Definition at line 22 of file HGCalTriggerGeometryBase.h.

Member Typedef Documentation

typedef std::unordered_map<unsigned,unsigned> HGCalTriggerGeometryBase::geom_map

Definition at line 25 of file HGCalTriggerGeometryBase.h.

typedef std::set<unsigned> HGCalTriggerGeometryBase::geom_ordered_set

Definition at line 27 of file HGCalTriggerGeometryBase.h.

typedef std::unordered_set<unsigned> HGCalTriggerGeometryBase::geom_set

Definition at line 26 of file HGCalTriggerGeometryBase.h.

Constructor & Destructor Documentation

HGCalTriggerGeometryBase::HGCalTriggerGeometryBase ( const edm::ParameterSet conf)

Definition at line 6 of file HGCalTriggerGeometryBase.cc.

6  :
7  name_(conf.getParameter<std::string>("TriggerGeometryName"))
8 {
9 }
T getParameter(std::string const &) const
virtual HGCalTriggerGeometryBase::~HGCalTriggerGeometryBase ( )
inlinevirtual

Definition at line 30 of file HGCalTriggerGeometryBase.h.

30 {}

Member Function Documentation

const HcalGeometry* HGCalTriggerGeometryBase::bhGeometry ( ) const
inline

Definition at line 37 of file HGCalTriggerGeometryBase.h.

References calo_geometry_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, and HcalEndcap.

Referenced by bhTopology(), HGCalTriggerNtupleHGCDigis::fill(), HGCalTriggerGeometryHexLayerBasedImp1::getModulePosition(), and HGCalTriggerGeometryHexLayerBasedImp1::getTriggerCellPosition().

37 {return (static_cast<const HcalGeometry*>(calo_geometry_->getSubdetectorGeometry(DetId::Hcal,HcalEndcap)));}
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:44
edm::ESHandle< CaloGeometry > calo_geometry_
const HcalTopology& HGCalTriggerGeometryBase::bhTopology ( ) const
inline
const edm::ESHandle<CaloGeometry>& HGCalTriggerGeometryBase::caloGeometry ( ) const
inline

Definition at line 34 of file HGCalTriggerGeometryBase.h.

References calo_geometry_.

34 {return calo_geometry_;}
edm::ESHandle< CaloGeometry > calo_geometry_
virtual bool HGCalTriggerGeometryBase::disconnectedModule ( const unsigned  module_id) const
pure virtual
const HGCalGeometry* HGCalTriggerGeometryBase::eeGeometry ( ) const
inline
const HGCalTopology& HGCalTriggerGeometryBase::eeTopology ( ) const
inline
const HGCalGeometry* HGCalTriggerGeometryBase::fhGeometry ( ) const
inline
const HGCalTopology& HGCalTriggerGeometryBase::fhTopology ( ) const
inline
virtual geom_set HGCalTriggerGeometryBase::getCellsFromModule ( const unsigned  cell_det_id) const
pure virtual
virtual geom_set HGCalTriggerGeometryBase::getCellsFromTriggerCell ( const unsigned  cell_det_id) const
pure virtual
virtual unsigned HGCalTriggerGeometryBase::getModuleFromCell ( const unsigned  cell_det_id) const
pure virtual
virtual unsigned HGCalTriggerGeometryBase::getModuleFromTriggerCell ( const unsigned  trigger_cell_det_id) const
pure virtual
virtual GlobalPoint HGCalTriggerGeometryBase::getModulePosition ( const unsigned  module_det_id) const
pure virtual
virtual geom_set HGCalTriggerGeometryBase::getNeighborsFromTriggerCell ( const unsigned  trigger_cell_det_id) const
pure virtual
virtual geom_ordered_set HGCalTriggerGeometryBase::getOrderedCellsFromModule ( const unsigned  cell_det_id) const
pure virtual
virtual geom_ordered_set HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule ( const unsigned  trigger_cell_det_id) const
pure virtual
virtual unsigned HGCalTriggerGeometryBase::getTriggerCellFromCell ( const unsigned  cell_det_id) const
pure virtual
virtual GlobalPoint HGCalTriggerGeometryBase::getTriggerCellPosition ( const unsigned  trigger_cell_det_id) const
pure virtual
virtual geom_set HGCalTriggerGeometryBase::getTriggerCellsFromModule ( const unsigned  trigger_cell_det_id) const
pure virtual
virtual void HGCalTriggerGeometryBase::initialize ( const edm::ESHandle< CaloGeometry > &  )
pure virtual
const std::string& HGCalTriggerGeometryBase::name ( void  ) const
inline
void HGCalTriggerGeometryBase::reset ( void  )
virtual
void HGCalTriggerGeometryBase::setCaloGeometry ( const edm::ESHandle< CaloGeometry > &  geom)
inlineprotected
virtual unsigned HGCalTriggerGeometryBase::triggerLayer ( const unsigned  id) const
pure virtual
virtual bool HGCalTriggerGeometryBase::validTriggerCell ( const unsigned  trigger_cell_id) const
pure virtual

Member Data Documentation

edm::ESHandle<CaloGeometry> HGCalTriggerGeometryBase::calo_geometry_
private
const std::string HGCalTriggerGeometryBase::name_
private

Definition at line 72 of file HGCalTriggerGeometryBase.h.

Referenced by name().