CMS 3D CMS Logo

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

#include <HGCalTriggerGeometryGenericMapping.h>

Public Types

typedef std::unordered_set< unsigned > list_type
 

Public Member Functions

const std::unordered_set< unsigned > & components () const
 
bool containsCell (const unsigned cell) const
 
unsigned moduleId () const
 
const std::unordered_set< unsigned > & neighbours () const
 
const GlobalPointposition () const
 
 TriggerCell (unsigned tc_id, unsigned mod_id, const GlobalPoint &pos, const list_type &neighbs, const list_type &comps)
 
unsigned triggerCellId () const
 
 ~TriggerCell ()
 

Private Attributes

list_type components_
 
unsigned module_id_
 
list_type neighbours_
 
GlobalPoint position_
 
unsigned trigger_cell_id_
 

Detailed Description

Definition at line 31 of file HGCalTriggerGeometryGenericMapping.h.

Member Typedef Documentation

◆ list_type

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

Definition at line 33 of file HGCalTriggerGeometryGenericMapping.h.

Constructor & Destructor Documentation

◆ TriggerCell()

HGCalTriggerGeometry::TriggerCell::TriggerCell ( unsigned  tc_id,
unsigned  mod_id,
const GlobalPoint pos,
const list_type neighbs,
const list_type comps 
)
inline

Definition at line 35 of file HGCalTriggerGeometryGenericMapping.h.

38  : trigger_cell_id_(tc_id), module_id_(mod_id), position_(pos), neighbours_(neighbs), components_(comps) {}

◆ ~TriggerCell()

HGCalTriggerGeometry::TriggerCell::~TriggerCell ( )
inline

Definition at line 38 of file HGCalTriggerGeometryGenericMapping.h.

38 : trigger_cell_id_(tc_id), module_id_(mod_id), position_(pos), neighbours_(neighbs), components_(comps) {}

Member Function Documentation

◆ components()

const std::unordered_set<unsigned>& HGCalTriggerGeometry::TriggerCell::components ( ) const
inline

Definition at line 48 of file HGCalTriggerGeometryGenericMapping.h.

48 { return neighbours_; }

References neighbours_.

◆ containsCell()

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

Definition at line 43 of file HGCalTriggerGeometryGenericMapping.h.

44 { return (components_.find(cell) != components_.end()); }

References components_.

◆ moduleId()

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

Definition at line 41 of file HGCalTriggerGeometryGenericMapping.h.

41 { return trigger_cell_id_; }

References trigger_cell_id_.

◆ neighbours()

const std::unordered_set<unsigned>& HGCalTriggerGeometry::TriggerCell::neighbours ( ) const
inline

Definition at line 47 of file HGCalTriggerGeometryGenericMapping.h.

◆ position()

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

Definition at line 45 of file HGCalTriggerGeometryGenericMapping.h.

46 { return position_; }

References position_.

◆ triggerCellId()

unsigned HGCalTriggerGeometry::TriggerCell::triggerCellId ( ) const
inline

Definition at line 40 of file HGCalTriggerGeometryGenericMapping.h.

41 { return trigger_cell_id_; }

Member Data Documentation

◆ components_

list_type HGCalTriggerGeometry::TriggerCell::components_
private

Definition at line 55 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by containsCell().

◆ module_id_

unsigned HGCalTriggerGeometry::TriggerCell::module_id_
private

Definition at line 52 of file HGCalTriggerGeometryGenericMapping.h.

◆ neighbours_

list_type HGCalTriggerGeometry::TriggerCell::neighbours_
private

Definition at line 54 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by components().

◆ position_

GlobalPoint HGCalTriggerGeometry::TriggerCell::position_
private

Definition at line 53 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by position().

◆ trigger_cell_id_

unsigned HGCalTriggerGeometry::TriggerCell::trigger_cell_id_
private

Definition at line 51 of file HGCalTriggerGeometryGenericMapping.h.

Referenced by moduleId().

HGCalTriggerGeometry::TriggerCell::trigger_cell_id_
unsigned trigger_cell_id_
Definition: HGCalTriggerGeometryGenericMapping.h:51
pos
Definition: PixelAliasList.h:18
HGCalTriggerGeometry::TriggerCell::position_
GlobalPoint position_
Definition: HGCalTriggerGeometryGenericMapping.h:53
HGCalTriggerGeometry::TriggerCell::module_id_
unsigned module_id_
Definition: HGCalTriggerGeometryGenericMapping.h:52
HGCalTriggerGeometry::TriggerCell::neighbours_
list_type neighbours_
Definition: HGCalTriggerGeometryGenericMapping.h:54
HGCalTriggerGeometry::TriggerCell::components_
list_type components_
Definition: HGCalTriggerGeometryGenericMapping.h:55