CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Definition at line 111 of file HGCalTriggerGeometryGenericMapping.h.

References components_.

bool HGCalTriggerGeometry::Module::containsCell ( const unsigned  cell) const
inline

Definition at line 101 of file HGCalTriggerGeometryGenericMapping.h.

References tc_components_, and relativeConstraints::value.

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

Definition at line 97 of file HGCalTriggerGeometryGenericMapping.h.

References components_.

97  {
98  return ( components_.find(trig_cell) != components_.end() );
99  }
unsigned HGCalTriggerGeometry::Module::moduleId ( void  ) const
inline

Definition at line 95 of file HGCalTriggerGeometryGenericMapping.h.

References module_id_.

const list_type& HGCalTriggerGeometry::Module::neighbours ( ) const
inline

Definition at line 110 of file HGCalTriggerGeometryGenericMapping.h.

References neighbours_.

const GlobalPoint& HGCalTriggerGeometry::Module::position ( ) const
inline

Definition at line 108 of file HGCalTriggerGeometryGenericMapping.h.

References position_.

const tc_map_type& HGCalTriggerGeometry::Module::triggerCellComponents ( ) const
inline

Definition at line 113 of file HGCalTriggerGeometryGenericMapping.h.

References tc_components_.

Member Data Documentation

list_type HGCalTriggerGeometry::Module::components_
private

Definition at line 119 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by components(), and containsTriggerCell().

unsigned HGCalTriggerGeometry::Module::module_id_
private

Definition at line 116 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by moduleId().

list_type HGCalTriggerGeometry::Module::neighbours_
private

Definition at line 118 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by neighbours().

GlobalPoint HGCalTriggerGeometry::Module::position_
private

Definition at line 117 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by position().

tc_map_type HGCalTriggerGeometry::Module::tc_components_
private

Definition at line 120 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by containsCell(), and triggerCellComponents().