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:
HGCalTriggerGeometryHexLayerBasedImp1 HGCalTriggerGeometryV9Imp1 HGCalTriggerGeometryV9Imp2

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 CaloGeometrycaloGeometry () 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 getLinksInModule (const unsigned module_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 unsigned getModuleSize (const unsigned module_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)
 
const HGCalGeometryhscGeometry () const
 
const HGCalTopologyhscTopology () const
 
const HGCalGeometryhsiGeometry () const
 
const HGCalTopologyhsiTopology () const
 
virtual void initialize (const CaloGeometry *)=0
 
virtual void initialize (const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *)=0
 
virtual void initialize (const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *)=0
 
bool isV9Geometry () const
 
bool isWithNoseGeometry () const
 
virtual unsigned lastTriggerLayer () const =0
 
const std::string & name () const
 
const HGCalGeometrynoseGeometry () const
 
const HGCalTopologynoseTopology () const
 
virtual void reset ()
 
void setWithNoseGeometry (const bool isNose)
 
virtual unsigned triggerLayer (const unsigned id) const =0
 
virtual bool validCell (const unsigned cell_id) const =0
 
virtual bool validTriggerCell (const unsigned trigger_cell_id) const =0
 
virtual ~HGCalTriggerGeometryBase ()
 

Protected Member Functions

void setCaloGeometry (const CaloGeometry *geom)
 
void setEEGeometry (const HGCalGeometry *geom)
 
void setHScGeometry (const HGCalGeometry *geom)
 
void setHSiGeometry (const HGCalGeometry *geom)
 
void setNoseGeometry (const HGCalGeometry *geom)
 

Private Attributes

const CaloGeometrycalo_geometry_ = nullptr
 
const HGCalGeometryhgc_ee_geometry_ = nullptr
 
const HGCalGeometryhgc_hsc_geometry_ = nullptr
 
const HGCalGeometryhgc_hsi_geometry_ = nullptr
 
const HGCalGeometryhgc_nose_geometry_ = nullptr
 
bool isNose_ = false
 
const std::string name_
 

Detailed Description

Definition at line 19 of file HGCalTriggerGeometryBase.h.

Member Typedef Documentation

◆ geom_map

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

Definition at line 21 of file HGCalTriggerGeometryBase.h.

◆ geom_ordered_set

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

Definition at line 23 of file HGCalTriggerGeometryBase.h.

◆ geom_set

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

Definition at line 22 of file HGCalTriggerGeometryBase.h.

Constructor & Destructor Documentation

◆ HGCalTriggerGeometryBase()

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

Definition at line 3 of file HGCalTriggerGeometryBase.cc.

4  : name_(conf.getParameter<std::string>("TriggerGeometryName")) {}

◆ ~HGCalTriggerGeometryBase()

virtual HGCalTriggerGeometryBase::~HGCalTriggerGeometryBase ( )
inlinevirtual

Definition at line 26 of file HGCalTriggerGeometryBase.h.

26 {}

Member Function Documentation

◆ bhGeometry()

const HcalGeometry* HGCalTriggerGeometryBase::bhGeometry ( ) const
inline

Definition at line 51 of file HGCalTriggerGeometryBase.h.

51  {
52  if (hgc_hsc_geometry_) {
53  throw cms::Exception("HGCalTriggerGeometry") << "bhGeometry cannot be used with the V9 geometry";
54  }
55  return (static_cast<const HcalGeometry*>(calo_geometry_->getSubdetectorGeometry(DetId::Hcal, HcalEndcap)));
56  }

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

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

◆ bhTopology()

const HcalTopology& HGCalTriggerGeometryBase::bhTopology ( ) const
inline

◆ caloGeometry()

const CaloGeometry* HGCalTriggerGeometryBase::caloGeometry ( ) const
inline

Definition at line 33 of file HGCalTriggerGeometryBase.h.

33 { return calo_geometry_; }

References calo_geometry_.

◆ disconnectedModule()

virtual bool HGCalTriggerGeometryBase::disconnectedModule ( const unsigned  module_id) const
pure virtual

◆ eeGeometry()

const HGCalGeometry* HGCalTriggerGeometryBase::eeGeometry ( ) const
inline

◆ eeTopology()

const HGCalTopology& HGCalTriggerGeometryBase::eeTopology ( ) const
inline

◆ fhGeometry()

const HGCalGeometry* HGCalTriggerGeometryBase::fhGeometry ( ) const
inline

◆ fhTopology()

const HGCalTopology& HGCalTriggerGeometryBase::fhTopology ( ) const
inline

◆ getCellsFromModule()

virtual geom_set HGCalTriggerGeometryBase::getCellsFromModule ( const unsigned  cell_det_id) const
pure virtual

◆ getCellsFromTriggerCell()

virtual geom_set HGCalTriggerGeometryBase::getCellsFromTriggerCell ( const unsigned  cell_det_id) const
pure virtual

◆ getLinksInModule()

virtual unsigned HGCalTriggerGeometryBase::getLinksInModule ( const unsigned  module_id) const
pure virtual

◆ getModuleFromCell()

virtual unsigned HGCalTriggerGeometryBase::getModuleFromCell ( const unsigned  cell_det_id) const
pure virtual

◆ getModuleFromTriggerCell()

virtual unsigned HGCalTriggerGeometryBase::getModuleFromTriggerCell ( const unsigned  trigger_cell_det_id) const
pure virtual

◆ getModulePosition()

virtual GlobalPoint HGCalTriggerGeometryBase::getModulePosition ( const unsigned  module_det_id) const
pure virtual

◆ getModuleSize()

virtual unsigned HGCalTriggerGeometryBase::getModuleSize ( const unsigned  module_id) const
pure virtual

◆ getNeighborsFromTriggerCell()

virtual geom_set HGCalTriggerGeometryBase::getNeighborsFromTriggerCell ( const unsigned  trigger_cell_det_id) const
pure virtual

◆ getOrderedCellsFromModule()

virtual geom_ordered_set HGCalTriggerGeometryBase::getOrderedCellsFromModule ( const unsigned  cell_det_id) const
pure virtual

◆ getOrderedTriggerCellsFromModule()

virtual geom_ordered_set HGCalTriggerGeometryBase::getOrderedTriggerCellsFromModule ( const unsigned  trigger_cell_det_id) const
pure virtual

◆ getTriggerCellFromCell()

virtual unsigned HGCalTriggerGeometryBase::getTriggerCellFromCell ( const unsigned  cell_det_id) const
pure virtual

◆ getTriggerCellPosition()

virtual GlobalPoint HGCalTriggerGeometryBase::getTriggerCellPosition ( const unsigned  trigger_cell_det_id) const
pure virtual

◆ getTriggerCellsFromModule()

virtual geom_set HGCalTriggerGeometryBase::getTriggerCellsFromModule ( const unsigned  trigger_cell_det_id) const
pure virtual

◆ hscGeometry()

const HGCalGeometry* HGCalTriggerGeometryBase::hscGeometry ( ) const
inline

◆ hscTopology()

const HGCalTopology& HGCalTriggerGeometryBase::hscTopology ( ) const
inline

◆ hsiGeometry()

const HGCalGeometry* HGCalTriggerGeometryBase::hsiGeometry ( ) const
inline

◆ hsiTopology()

const HGCalTopology& HGCalTriggerGeometryBase::hsiTopology ( ) const
inline

◆ initialize() [1/3]

virtual void HGCalTriggerGeometryBase::initialize ( const CaloGeometry )
pure virtual

◆ initialize() [2/3]

virtual void HGCalTriggerGeometryBase::initialize ( const HGCalGeometry ,
const HGCalGeometry ,
const HGCalGeometry  
)
pure virtual

◆ initialize() [3/3]

virtual void HGCalTriggerGeometryBase::initialize ( const HGCalGeometry ,
const HGCalGeometry ,
const HGCalGeometry ,
const HGCalGeometry  
)
pure virtual

◆ isV9Geometry()

bool HGCalTriggerGeometryBase::isV9Geometry ( ) const
inline

◆ isWithNoseGeometry()

bool HGCalTriggerGeometryBase::isWithNoseGeometry ( ) const
inline

Definition at line 31 of file HGCalTriggerGeometryBase.h.

31 { return isNose_; }

References isNose_.

Referenced by HGCalTriggerTools::eventSetup().

◆ lastTriggerLayer()

virtual unsigned HGCalTriggerGeometryBase::lastTriggerLayer ( ) const
pure virtual

◆ name()

const std::string& HGCalTriggerGeometryBase::name ( void  ) const
inline

◆ noseGeometry()

const HGCalGeometry* HGCalTriggerGeometryBase::noseGeometry ( ) const
inline

◆ noseTopology()

const HGCalTopology& HGCalTriggerGeometryBase::noseTopology ( ) const
inline

◆ reset()

void HGCalTriggerGeometryBase::reset ( void  )
virtual

◆ setCaloGeometry()

void HGCalTriggerGeometryBase::setCaloGeometry ( const CaloGeometry geom)
inlineprotected

◆ setEEGeometry()

void HGCalTriggerGeometryBase::setEEGeometry ( const HGCalGeometry geom)
inlineprotected

◆ setHScGeometry()

void HGCalTriggerGeometryBase::setHScGeometry ( const HGCalGeometry geom)
inlineprotected

◆ setHSiGeometry()

void HGCalTriggerGeometryBase::setHSiGeometry ( const HGCalGeometry geom)
inlineprotected

◆ setNoseGeometry()

void HGCalTriggerGeometryBase::setNoseGeometry ( const HGCalGeometry geom)
inlineprotected

◆ setWithNoseGeometry()

void HGCalTriggerGeometryBase::setWithNoseGeometry ( const bool  isNose)
inline

Definition at line 71 of file HGCalTriggerGeometryBase.h.

71 { isNose_ = isNose; }

References isNose_.

◆ triggerLayer()

virtual unsigned HGCalTriggerGeometryBase::triggerLayer ( const unsigned  id) const
pure virtual

◆ validCell()

virtual bool HGCalTriggerGeometryBase::validCell ( const unsigned  cell_id) const
pure virtual

◆ validTriggerCell()

virtual bool HGCalTriggerGeometryBase::validTriggerCell ( const unsigned  trigger_cell_id) const
pure virtual

Member Data Documentation

◆ calo_geometry_

const CaloGeometry* HGCalTriggerGeometryBase::calo_geometry_ = nullptr
private

◆ hgc_ee_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_ee_geometry_ = nullptr
private

Definition at line 117 of file HGCalTriggerGeometryBase.h.

Referenced by eeGeometry(), and setEEGeometry().

◆ hgc_hsc_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_hsc_geometry_ = nullptr
private

Definition at line 119 of file HGCalTriggerGeometryBase.h.

Referenced by bhGeometry(), hscGeometry(), and setHScGeometry().

◆ hgc_hsi_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_hsi_geometry_ = nullptr
private

Definition at line 118 of file HGCalTriggerGeometryBase.h.

Referenced by fhGeometry(), and setHSiGeometry().

◆ hgc_nose_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_nose_geometry_ = nullptr
private

Definition at line 120 of file HGCalTriggerGeometryBase.h.

Referenced by noseGeometry(), and setNoseGeometry().

◆ isNose_

bool HGCalTriggerGeometryBase::isNose_ = false
private

Definition at line 115 of file HGCalTriggerGeometryBase.h.

Referenced by isWithNoseGeometry(), and setWithNoseGeometry().

◆ name_

const std::string HGCalTriggerGeometryBase::name_
private

Definition at line 113 of file HGCalTriggerGeometryBase.h.

Referenced by name().

HGCalTriggerGeometryBase::noseGeometry
const HGCalGeometry * noseGeometry() const
Definition: HGCalTriggerGeometryBase.h:35
HGCalTriggerGeometryBase::hsiGeometry
const HGCalGeometry * hsiGeometry() const
Definition: HGCalTriggerGeometryBase.h:57
DetId::Hcal
Definition: DetId.h:28
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
HGCalTriggerGeometryBase::hgc_ee_geometry_
const HGCalGeometry * hgc_ee_geometry_
Definition: HGCalTriggerGeometryBase.h:117
HGCalTriggerGeometryBase::hgc_hsi_geometry_
const HGCalGeometry * hgc_hsi_geometry_
Definition: HGCalTriggerGeometryBase.h:118
HGCalTriggerGeometryBase::hgc_hsc_geometry_
const HGCalGeometry * hgc_hsc_geometry_
Definition: HGCalTriggerGeometryBase.h:119
HFNose
Definition: ForwardSubdetector.h:11
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
HGCalGeometry::topology
const HGCalTopology & topology() const
Definition: HGCalGeometry.h:111
HGCalTriggerGeometryBase::calo_geometry_
const CaloGeometry * calo_geometry_
Definition: HGCalTriggerGeometryBase.h:116
HGCalTriggerGeometryBase::fhGeometry
const HGCalGeometry * fhGeometry() const
Definition: HGCalTriggerGeometryBase.h:46
HGCEE
Definition: ForwardSubdetector.h:8
HGCalTriggerGeometryBase::hgc_nose_geometry_
const HGCalGeometry * hgc_nose_geometry_
Definition: HGCalTriggerGeometryBase.h:120
HGCalTriggerGeometryBase::name_
const std::string name_
Definition: HGCalTriggerGeometryBase.h:113
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalTriggerGeometryBase::eeGeometry
const HGCalGeometry * eeGeometry() const
Definition: HGCalTriggerGeometryBase.h:41
HcalEndcap
Definition: HcalAssistant.h:34
Exception
Definition: hltDiff.cc:245
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HGCalTriggerGeometryBase::hscGeometry
const HGCalGeometry * hscGeometry() const
Definition: HGCalTriggerGeometryBase.h:58
HGCHEF
Definition: ForwardSubdetector.h:9
HcalGeometry::topology
const HcalTopology & topology() const
Definition: HcalGeometry.h:111
DetId::Forward
Definition: DetId.h:30
HGCalTriggerGeometryBase::isNose_
bool isNose_
Definition: HGCalTriggerGeometryBase.h:115
HGCalTriggerGeometryBase::bhGeometry
const HcalGeometry * bhGeometry() const
Definition: HGCalTriggerGeometryBase.h:51