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 (channelNum c, stripNum s)
 
void add (dCoord d, eCoord e)
 
void add (eCoord e, dCoord d)
 
void add (stripNum s, channelNum c)
 
 GEMROmap ()
 
const std::map< eCoord, dCoord > * getRoMap () const
 
const stripNumhitPosition (const channelNum &c) const
 
const eCoordhitPosition (const dCoord &r) const
 
const dCoordhitPosition (const eCoord &r) const
 
const channelNumhitPosition (const stripNum &s) 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 ( channelNum  c,
stripNum  s 
)
inline

Definition at line 75 of file GEMROmap.h.

75 { chStMap_[c] = s; }

References c, chStMap_, and alignCSCRings::s.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

◆ add() [2/4]

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

◆ add() [3/4]

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

◆ add() [4/4]

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

Definition at line 76 of file GEMROmap.h.

76 { stChMap_[s] = c; }

References c, alignCSCRings::s, and stChMap_.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

◆ getRoMap()

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

Definition at line 73 of file GEMROmap.h.

73 { return &roMapED_; }

References roMapED_.

◆ hitPosition() [1/4]

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

Definition at line 79 of file GEMROmap.h.

79 { return chStMap_.at(c); }

References c, and chStMap_.

◆ hitPosition() [2/4]

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

Definition at line 68 of file GEMROmap.h.

68 { return roMapDE_.at(r); }

References alignCSCRings::r, and roMapDE_.

◆ hitPosition() [3/4]

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

Definition at line 67 of file GEMROmap.h.

67 { return roMapED_.at(r); }

References alignCSCRings::r, and roMapED_.

◆ hitPosition() [4/4]

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

Definition at line 78 of file GEMROmap.h.

78 { return stChMap_.at(s); }

References alignCSCRings::s, and stChMap_.

◆ isValidChipID()

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

Definition at line 66 of file GEMROmap.h.

66 { return roMapED_.find(r) != roMapED_.end(); }

References alignCSCRings::r, and roMapED_.

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().

GEMROmap::roMapDE_
std::map< dCoord, eCoord > roMapDE_
Definition: GEMROmap.h:83
GEMROmap::stChMap_
std::map< stripNum, channelNum > stChMap_
Definition: GEMROmap.h:86
alignCSCRings.s
s
Definition: alignCSCRings.py:92
alignCSCRings.r
r
Definition: alignCSCRings.py:93
GEMROmap::roMapED_
std::map< eCoord, dCoord > roMapED_
Definition: GEMROmap.h:82
GEMROmap::chStMap_
std::map< channelNum, stripNum > chStMap_
Definition: GEMROmap.h:85
ztail.d
d
Definition: ztail.py:151
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37