CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HGCalTriggerGeometry::Module Class Reference

#include <HGCalTriggerGeometryGenericMapping.h>

Public Types

typedef std::unordered_set< unsigned > list_type
 
typedef std::unordered_multimap< unsigned, unsigned > tc_map_type
 

Public Member Functions

const list_typecomponents () const
 
bool containsCell (const unsigned cell) const
 
bool containsTriggerCell (const unsigned trig_cell) const
 
 Module (unsigned mod_id, const GlobalPoint &pos, const list_type &neighbs, const list_type &comps, const tc_map_type &tc_comps)
 
unsigned moduleId () const
 
const list_typeneighbours () const
 
const GlobalPointposition () const
 
const tc_map_typetriggerCellComponents () const
 
 ~Module ()
 

Private Attributes

list_type components_
 
unsigned module_id_
 
list_type neighbours_
 
GlobalPoint position_
 
tc_map_type tc_components_
 

Detailed Description

Definition at line 59 of file HGCalTriggerGeometryGenericMapping.h.

Member Typedef Documentation

typedef std::unordered_set<unsigned> HGCalTriggerGeometry::Module::list_type

Definition at line 61 of file HGCalTriggerGeometryGenericMapping.h.

typedef std::unordered_multimap<unsigned, unsigned> HGCalTriggerGeometry::Module::tc_map_type

Definition at line 62 of file HGCalTriggerGeometryGenericMapping.h.

Constructor & Destructor Documentation

HGCalTriggerGeometry::Module::Module ( unsigned  mod_id,
const GlobalPoint pos,
const list_type neighbs,
const list_type comps,
const tc_map_type tc_comps 
)
inline
HGCalTriggerGeometry::Module::~Module ( )
inline

Definition at line 70 of file HGCalTriggerGeometryGenericMapping.h.

70 {}

Member Function Documentation

const list_type& HGCalTriggerGeometry::Module::components ( ) const
inline
bool HGCalTriggerGeometry::Module::containsCell ( const unsigned  cell) const
inline

Definition at line 78 of file HGCalTriggerGeometryGenericMapping.h.

78  {
79  for (const auto& value : tc_components_) {
80  if (value.second == cell)
81  return true;
82  }
83  return false;
84  }
Definition: value.py:1
bool HGCalTriggerGeometry::Module::containsTriggerCell ( const unsigned  trig_cell) const
inline

Definition at line 74 of file HGCalTriggerGeometryGenericMapping.h.

References HGCalTriggerGeometry::TriggerCell::components_.

74  {
75  return (components_.find(trig_cell) != components_.end());
76  }
unsigned HGCalTriggerGeometry::Module::moduleId ( ) const
inline
const list_type& HGCalTriggerGeometry::Module::neighbours ( ) const
inline
const GlobalPoint& HGCalTriggerGeometry::Module::position ( ) const
inline
const tc_map_type& HGCalTriggerGeometry::Module::triggerCellComponents ( ) const
inline

Member Data Documentation

list_type HGCalTriggerGeometry::Module::components_
private

Definition at line 97 of file HGCalTriggerGeometryGenericMapping.h.

unsigned HGCalTriggerGeometry::Module::module_id_
private

Definition at line 94 of file HGCalTriggerGeometryGenericMapping.h.

list_type HGCalTriggerGeometry::Module::neighbours_
private

Definition at line 96 of file HGCalTriggerGeometryGenericMapping.h.

GlobalPoint HGCalTriggerGeometry::Module::position_
private

Definition at line 95 of file HGCalTriggerGeometryGenericMapping.h.

tc_map_type HGCalTriggerGeometry::Module::tc_components_
private

Definition at line 98 of file HGCalTriggerGeometryGenericMapping.h.