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

Member Typedef Documentation

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

Definition at line 81 of file HGCalTriggerGeometryGenericMapping.h.

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

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

93 {}

Member Function Documentation

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

Definition at line 101 of file HGCalTriggerGeometryGenericMapping.h.

101  {
102  for( const auto& value : tc_components_ ) {
103  if( value.second == cell ) return true;
104  }
105  return false;
106  }
Definition: value.py:1
bool HGCalTriggerGeometry::Module::containsTriggerCell ( const unsigned  trig_cell) const
inline

Definition at line 97 of file HGCalTriggerGeometryGenericMapping.h.

References HGCalTriggerGeometry::TriggerCell::components_.

97  {
98  return ( components_.find(trig_cell) != components_.end() );
99  }
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 119 of file HGCalTriggerGeometryGenericMapping.h.

unsigned HGCalTriggerGeometry::Module::module_id_
private

Definition at line 116 of file HGCalTriggerGeometryGenericMapping.h.

list_type HGCalTriggerGeometry::Module::neighbours_
private

Definition at line 118 of file HGCalTriggerGeometryGenericMapping.h.

GlobalPoint HGCalTriggerGeometry::Module::position_
private

Definition at line 117 of file HGCalTriggerGeometryGenericMapping.h.

tc_map_type HGCalTriggerGeometry::Module::tc_components_
private

Definition at line 120 of file HGCalTriggerGeometryGenericMapping.h.