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:
HGCalTriggerGeometryV9Imp2 HGCalTriggerGeometryV9Imp3

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

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 geom_set getLpgbtsFromModule (const unsigned module_id) const =0
 
virtual std::vector< unsigned > getLpgbtsFromStage1Fpga (const unsigned stage1_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 getModulesFromLpgbt (const unsigned lpgbt_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 getStage1FpgaFromLpgbt (const unsigned lpgbt_id) const =0
 
virtual unsigned getStage1FpgaFromModule (const unsigned module_id) const =0
 
virtual unsigned getStage1FpgaFromStage1Link (const unsigned) const =0
 
virtual geom_set getStage1FpgasFromStage2Fpga (const unsigned stage2_id) const =0
 
virtual geom_set getStage1LinksFromStage1Fpga (const unsigned) const =0
 
virtual geom_set getStage1LinksFromStage2Fpga (const unsigned) const =0
 
virtual unsigned getStage2FpgaFromStage1Link (const unsigned) const =0
 
virtual geom_set getStage2FpgasFromStage1Fpga (const unsigned stage1_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 HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *)=0
 
virtual void initialize (const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *, const HGCalGeometry *)=0
 
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 setEEGeometry (const HGCalGeometry *geom)
 
void setHScGeometry (const HGCalGeometry *geom)
 
void setHSiGeometry (const HGCalGeometry *geom)
 
void setNoseGeometry (const HGCalGeometry *geom)
 

Private Attributes

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 16 of file HGCalTriggerGeometryBase.h.

Member Typedef Documentation

◆ geom_map

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

Definition at line 18 of file HGCalTriggerGeometryBase.h.

◆ geom_ordered_set

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

Definition at line 20 of file HGCalTriggerGeometryBase.h.

◆ geom_set

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

Definition at line 19 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")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ ~HGCalTriggerGeometryBase()

virtual HGCalTriggerGeometryBase::~HGCalTriggerGeometryBase ( )
inlinevirtual

Definition at line 23 of file HGCalTriggerGeometryBase.h.

23 {}

Member Function Documentation

◆ 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

Definition at line 31 of file HGCalTriggerGeometryBase.h.

References hgc_hsi_geometry_.

Referenced by fhTopology(), and hsiGeometry().

31 { return hgc_hsi_geometry_; }
const HGCalGeometry * hgc_hsi_geometry_

◆ fhTopology()

const HGCalTopology& HGCalTriggerGeometryBase::fhTopology ( ) const
inline

Definition at line 36 of file HGCalTriggerGeometryBase.h.

References fhGeometry(), and HGCalGeometry::topology().

Referenced by HGCalTriggerTools::getLayerZ(), and HGCalTriggerTools::setGeometry().

36 { return fhGeometry()->topology(); }
const HGCalTopology & topology() const
const HGCalGeometry * fhGeometry() const

◆ 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

◆ getLpgbtsFromModule()

virtual geom_set HGCalTriggerGeometryBase::getLpgbtsFromModule ( const unsigned  module_id) const
pure virtual

◆ getLpgbtsFromStage1Fpga()

virtual std::vector<unsigned> HGCalTriggerGeometryBase::getLpgbtsFromStage1Fpga ( const unsigned  stage1_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

◆ getModulesFromLpgbt()

virtual geom_set HGCalTriggerGeometryBase::getModulesFromLpgbt ( const unsigned  lpgbt_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

◆ getStage1FpgaFromLpgbt()

virtual unsigned HGCalTriggerGeometryBase::getStage1FpgaFromLpgbt ( const unsigned  lpgbt_id) const
pure virtual

◆ getStage1FpgaFromModule()

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

◆ getStage1FpgaFromStage1Link()

virtual unsigned HGCalTriggerGeometryBase::getStage1FpgaFromStage1Link ( const unsigned  ) const
pure virtual

◆ getStage1FpgasFromStage2Fpga()

virtual geom_set HGCalTriggerGeometryBase::getStage1FpgasFromStage2Fpga ( const unsigned  stage2_id) const
pure virtual

◆ getStage1LinksFromStage1Fpga()

virtual geom_set HGCalTriggerGeometryBase::getStage1LinksFromStage1Fpga ( const unsigned  ) const
pure virtual

◆ getStage1LinksFromStage2Fpga()

virtual geom_set HGCalTriggerGeometryBase::getStage1LinksFromStage2Fpga ( const unsigned  ) const
pure virtual

◆ getStage2FpgaFromStage1Link()

virtual unsigned HGCalTriggerGeometryBase::getStage2FpgaFromStage1Link ( const unsigned  ) const
pure virtual

◆ getStage2FpgasFromStage1Fpga()

virtual geom_set HGCalTriggerGeometryBase::getStage2FpgasFromStage1Fpga ( const unsigned  stage1_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/2]

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

◆ initialize() [2/2]

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

◆ isWithNoseGeometry()

bool HGCalTriggerGeometryBase::isWithNoseGeometry ( ) const
inline

Definition at line 27 of file HGCalTriggerGeometryBase.h.

References isNose_.

Referenced by HGCalTriggerTools::setGeometry().

◆ 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

Reimplemented in HGCalTriggerGeometryV9Imp3, and HGCalTriggerGeometryV9Imp2.

Definition at line 6 of file HGCalTriggerGeometryBase.cc.

6 {}

◆ 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 40 of file HGCalTriggerGeometryBase.h.

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

◆ hgc_ee_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_ee_geometry_ = nullptr
private

Definition at line 96 of file HGCalTriggerGeometryBase.h.

Referenced by eeGeometry(), and setEEGeometry().

◆ hgc_hsc_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_hsc_geometry_ = nullptr
private

Definition at line 98 of file HGCalTriggerGeometryBase.h.

Referenced by hscGeometry(), and setHScGeometry().

◆ hgc_hsi_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_hsi_geometry_ = nullptr
private

Definition at line 97 of file HGCalTriggerGeometryBase.h.

Referenced by fhGeometry(), and setHSiGeometry().

◆ hgc_nose_geometry_

const HGCalGeometry* HGCalTriggerGeometryBase::hgc_nose_geometry_ = nullptr
private

Definition at line 99 of file HGCalTriggerGeometryBase.h.

Referenced by noseGeometry(), and setNoseGeometry().

◆ isNose_

bool HGCalTriggerGeometryBase::isNose_ = false
private

Definition at line 95 of file HGCalTriggerGeometryBase.h.

Referenced by isWithNoseGeometry(), and setWithNoseGeometry().

◆ name_

const std::string HGCalTriggerGeometryBase::name_
private

Definition at line 93 of file HGCalTriggerGeometryBase.h.

Referenced by name().