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 67 of file HGCalTriggerGeometryGenericMapping.h.

Member Typedef Documentation

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

Definition at line 69 of file HGCalTriggerGeometryGenericMapping.h.

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

Definition at line 70 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 81 of file HGCalTriggerGeometryGenericMapping.h.

81 {}

Member Function Documentation

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

Definition at line 89 of file HGCalTriggerGeometryGenericMapping.h.

89  {
90  for( const auto& value : tc_components_ ) {
91  if( value.second == cell ) return true;
92  }
93  return false;
94  }
Definition: value.py:1
bool HGCalTriggerGeometry::Module::containsTriggerCell ( const unsigned  trig_cell) const
inline

Definition at line 85 of file HGCalTriggerGeometryGenericMapping.h.

References HGCalTriggerGeometry::TriggerCell::components_.

85  {
86  return ( components_.find(trig_cell) != components_.end() );
87  }
unsigned HGCalTriggerGeometry::Module::moduleId ( void  ) 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 107 of file HGCalTriggerGeometryGenericMapping.h.

unsigned HGCalTriggerGeometry::Module::module_id_
private

Definition at line 104 of file HGCalTriggerGeometryGenericMapping.h.

list_type HGCalTriggerGeometry::Module::neighbours_
private

Definition at line 106 of file HGCalTriggerGeometryGenericMapping.h.

GlobalPoint HGCalTriggerGeometry::Module::position_
private

Definition at line 105 of file HGCalTriggerGeometryGenericMapping.h.

tc_map_type HGCalTriggerGeometry::Module::tc_components_
private

Definition at line 108 of file HGCalTriggerGeometryGenericMapping.h.