CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
GEMROmap Class Reference

#include <GEMROmap.h>

Classes

struct  channelNum
 
struct  dCoord
 
struct  eCoord
 
struct  stripNum
 

Public Member Functions

void add (eCoord e, dCoord d)
 
void add (dCoord d, eCoord e)
 
void add (channelNum c, stripNum s)
 
void add (stripNum s, channelNum c)
 
 GEMROmap ()
 
const std::map< eCoord, dCoord > * getRoMap () const
 
const dCoordhitPosition (const eCoord &r) const
 
const eCoordhitPosition (const dCoord &r) const
 
const channelNumhitPosition (const stripNum &s) const
 
const stripNumhitPosition (const channelNum &c) const
 
bool isValidChipID (const eCoord &r) const
 

Private Attributes

std::map< channelNum, stripNumchStMap_
 
std::map< dCoord, eCoordroMapDE_
 
std::map< eCoord, dCoordroMapED_
 
std::map< stripNum, channelNumstChMap_
 

Detailed Description

Definition at line 6 of file GEMROmap.h.

Constructor & Destructor Documentation

◆ GEMROmap()

GEMROmap::GEMROmap ( )
inline

Definition at line 64 of file GEMROmap.h.

64 {};

Member Function Documentation

◆ add() [1/4]

void GEMROmap::add ( eCoord  e,
dCoord  d 
)
inline

◆ add() [2/4]

void GEMROmap::add ( dCoord  d,
eCoord  e 
)
inline

◆ add() [3/4]

void GEMROmap::add ( channelNum  c,
stripNum  s 
)
inline

◆ add() [4/4]

void GEMROmap::add ( stripNum  s,
channelNum  c 
)
inline

◆ getRoMap()

const std::map<eCoord, dCoord>* GEMROmap::getRoMap ( ) const
inline

Definition at line 73 of file GEMROmap.h.

References roMapED_.

73 { return &roMapED_; }
std::map< eCoord, dCoord > roMapED_
Definition: GEMROmap.h:82

◆ hitPosition() [1/4]

const dCoord& GEMROmap::hitPosition ( const eCoord r) const
inline

Definition at line 67 of file GEMROmap.h.

References alignCSCRings::r, and roMapED_.

67 { return roMapED_.at(r); }
std::map< eCoord, dCoord > roMapED_
Definition: GEMROmap.h:82

◆ hitPosition() [2/4]

const eCoord& GEMROmap::hitPosition ( const dCoord r) const
inline

Definition at line 68 of file GEMROmap.h.

References alignCSCRings::r, and roMapDE_.

68 { return roMapDE_.at(r); }
std::map< dCoord, eCoord > roMapDE_
Definition: GEMROmap.h:83

◆ hitPosition() [3/4]

const channelNum& GEMROmap::hitPosition ( const stripNum s) const
inline

Definition at line 78 of file GEMROmap.h.

References alignCSCRings::s, and stChMap_.

78 { return stChMap_.at(s); }
std::map< stripNum, channelNum > stChMap_
Definition: GEMROmap.h:86

◆ hitPosition() [4/4]

const stripNum& GEMROmap::hitPosition ( const channelNum c) const
inline

Definition at line 79 of file GEMROmap.h.

References HltBtagPostValidation_cff::c, and chStMap_.

79 { return chStMap_.at(c); }
std::map< channelNum, stripNum > chStMap_
Definition: GEMROmap.h:85

◆ isValidChipID()

bool GEMROmap::isValidChipID ( const eCoord r) const
inline

Definition at line 66 of file GEMROmap.h.

References alignCSCRings::r, and roMapED_.

66 { return roMapED_.find(r) != roMapED_.end(); }
std::map< eCoord, dCoord > roMapED_
Definition: GEMROmap.h:82

Member Data Documentation

◆ chStMap_

std::map<channelNum, stripNum> GEMROmap::chStMap_
private

Definition at line 85 of file GEMROmap.h.

Referenced by add(), and hitPosition().

◆ roMapDE_

std::map<dCoord, eCoord> GEMROmap::roMapDE_
private

Definition at line 83 of file GEMROmap.h.

Referenced by add(), and hitPosition().

◆ roMapED_

std::map<eCoord, dCoord> GEMROmap::roMapED_
private

Definition at line 82 of file GEMROmap.h.

Referenced by add(), getRoMap(), hitPosition(), and isValidChipID().

◆ stChMap_

std::map<stripNum, channelNum> GEMROmap::stChMap_
private

Definition at line 86 of file GEMROmap.h.

Referenced by add(), and hitPosition().