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

Member Typedef Documentation

◆ list_type

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

Definition at line 60 of file HGCalTriggerGeometryGenericMapping.h.

◆ tc_map_type

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

Definition at line 61 of file HGCalTriggerGeometryGenericMapping.h.

Constructor & Destructor Documentation

◆ Module()

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

Definition at line 63 of file HGCalTriggerGeometryGenericMapping.h.

69  : module_id_(mod_id), position_(pos), neighbours_(neighbs), components_(comps), tc_components_(tc_comps) {}

◆ ~Module()

HGCalTriggerGeometry::Module::~Module ( )
inline

Definition at line 69 of file HGCalTriggerGeometryGenericMapping.h.

69 : module_id_(mod_id), position_(pos), neighbours_(neighbs), components_(comps), tc_components_(tc_comps) {}

Member Function Documentation

◆ components()

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

Definition at line 88 of file HGCalTriggerGeometryGenericMapping.h.

88 { return neighbours_; }

References neighbours_.

◆ containsCell()

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

Definition at line 77 of file HGCalTriggerGeometryGenericMapping.h.

78  {
79  for (const auto& value : tc_components_) {
80  if (value.second == cell)
81  return true;
82  }
83  return false;

References tc_components_.

◆ containsTriggerCell()

bool HGCalTriggerGeometry::Module::containsTriggerCell ( const unsigned  trig_cell) const
inline

Definition at line 73 of file HGCalTriggerGeometryGenericMapping.h.

74  {
75  return (components_.find(trig_cell) != components_.end());

References components_.

◆ moduleId()

unsigned HGCalTriggerGeometry::Module::moduleId ( ) const
inline

Definition at line 71 of file HGCalTriggerGeometryGenericMapping.h.

72 { return module_id_; }

References module_id_.

◆ neighbours()

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

Definition at line 87 of file HGCalTriggerGeometryGenericMapping.h.

88 { return neighbours_; }

◆ position()

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

Definition at line 85 of file HGCalTriggerGeometryGenericMapping.h.

86 { return position_; }

References position_.

◆ triggerCellComponents()

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

Definition at line 90 of file HGCalTriggerGeometryGenericMapping.h.

91 { return tc_components_; }

References tc_components_.

Member Data Documentation

◆ components_

list_type HGCalTriggerGeometry::Module::components_
private

Definition at line 96 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by containsTriggerCell().

◆ module_id_

unsigned HGCalTriggerGeometry::Module::module_id_
private

Definition at line 93 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by moduleId().

◆ neighbours_

list_type HGCalTriggerGeometry::Module::neighbours_
private

Definition at line 95 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by components().

◆ position_

GlobalPoint HGCalTriggerGeometry::Module::position_
private

Definition at line 94 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by position().

◆ tc_components_

tc_map_type HGCalTriggerGeometry::Module::tc_components_
private

Definition at line 97 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by containsCell(), and triggerCellComponents().

pos
Definition: PixelAliasList.h:18
HGCalTriggerGeometry::Module::position_
GlobalPoint position_
Definition: HGCalTriggerGeometryGenericMapping.h:94
HGCalTriggerGeometry::Module::module_id_
unsigned module_id_
Definition: HGCalTriggerGeometryGenericMapping.h:93
HGCalTriggerGeometry::Module::tc_components_
tc_map_type tc_components_
Definition: HGCalTriggerGeometryGenericMapping.h:97
HGCalTriggerGeometry::Module::neighbours_
list_type neighbours_
Definition: HGCalTriggerGeometryGenericMapping.h:95
value
Definition: value.py:1
HGCalTriggerGeometry::Module::components_
list_type components_
Definition: HGCalTriggerGeometryGenericMapping.h:96