CMS 3D CMS Logo

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

#include <GEMROMapping.h>

Classes

struct  chamDC
 
struct  chamEC
 
struct  channelNum
 
struct  stripNum
 
struct  vfatDC
 
struct  vfatEC
 

Public Member Functions

void add (chamEC e, chamDC d)
 
void add (GEMDetId e, vfatEC d)
 
void add (vfatEC e, vfatDC d)
 
void add (channelNum c, stripNum s)
 
void add (stripNum s, channelNum c)
 
const chamDCchamberPos (const chamEC &r) const
 
 GEMROMapping ()
 
const std::vector< vfatECgetVfats (const GEMDetId &r) const
 
const channelNumhitPos (const stripNum &s) const
 
const stripNumhitPos (const channelNum &c) const
 
bool isValidChamber (const chamEC &r) const
 
bool isValidChipID (const vfatEC &r) const
 
const vfatDCvfatPos (const vfatEC &r) const
 

Private Attributes

std::map< chamEC, chamDCchamED_
 
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
 
std::map< channelNum, stripNumchStMap_
 
std::map< stripNum, channelNumstChMap_
 
std::map< vfatEC, vfatDCvMapED_
 

Detailed Description

Definition at line 7 of file GEMROMapping.h.

Constructor & Destructor Documentation

GEMROMapping::GEMROMapping ( )
inline

Definition at line 83 of file GEMROMapping.h.

83 {};

Member Function Documentation

void GEMROMapping::add ( chamEC  e,
chamDC  d 
)
inline
void GEMROMapping::add ( GEMDetId  e,
vfatEC  d 
)
inline

Definition at line 92 of file GEMROMapping.h.

References chamVfats_, and MillePedeFileConverter_cfg::e.

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

92 { chamVfats_[e].push_back(d); }
d
Definition: ztail.py:151
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
Definition: GEMROMapping.h:106
void GEMROMapping::add ( vfatEC  e,
vfatDC  d 
)
inline
void GEMROMapping::add ( channelNum  c,
stripNum  s 
)
inline
void GEMROMapping::add ( stripNum  s,
channelNum  c 
)
inline
const chamDC& GEMROMapping::chamberPos ( const chamEC r) const
inline

Definition at line 88 of file GEMROMapping.h.

References chamED_.

88 { return chamED_.at(r); }
std::map< chamEC, chamDC > chamED_
Definition: GEMROMapping.h:104
const std::vector<vfatEC> GEMROMapping::getVfats ( const GEMDetId r) const
inline

Definition at line 91 of file GEMROMapping.h.

References chamVfats_.

91 { return chamVfats_.at(r); }
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
Definition: GEMROMapping.h:106
const channelNum& GEMROMapping::hitPos ( const stripNum s) const
inline

Definition at line 97 of file GEMROMapping.h.

References stChMap_.

97 { return stChMap_.at(s); }
std::map< stripNum, channelNum > stChMap_
Definition: GEMROMapping.h:111
const stripNum& GEMROMapping::hitPos ( const channelNum c) const
inline

Definition at line 98 of file GEMROMapping.h.

References chStMap_.

98 { return chStMap_.at(c); }
std::map< channelNum, stripNum > chStMap_
Definition: GEMROMapping.h:110
bool GEMROMapping::isValidChamber ( const chamEC r) const
inline

Definition at line 86 of file GEMROMapping.h.

References chamED_.

86 { return chamED_.find(r) != chamED_.end(); }
std::map< chamEC, chamDC > chamED_
Definition: GEMROMapping.h:104
bool GEMROMapping::isValidChipID ( const vfatEC r) const
inline

Definition at line 85 of file GEMROMapping.h.

References vMapED_.

85 { return vMapED_.find(r) != vMapED_.end(); }
std::map< vfatEC, vfatDC > vMapED_
Definition: GEMROMapping.h:108
const vfatDC& GEMROMapping::vfatPos ( const vfatEC r) const
inline

Definition at line 94 of file GEMROMapping.h.

References vMapED_.

94 { return vMapED_.at(r); }
std::map< vfatEC, vfatDC > vMapED_
Definition: GEMROMapping.h:108

Member Data Documentation

std::map<chamEC, chamDC> GEMROMapping::chamED_
private

Definition at line 104 of file GEMROMapping.h.

Referenced by add(), chamberPos(), and isValidChamber().

std::map<GEMDetId, std::vector<vfatEC> > GEMROMapping::chamVfats_
private

Definition at line 106 of file GEMROMapping.h.

Referenced by add(), and getVfats().

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

Definition at line 110 of file GEMROMapping.h.

Referenced by add(), and hitPos().

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

Definition at line 111 of file GEMROMapping.h.

Referenced by add(), and hitPos().

std::map<vfatEC, vfatDC> GEMROMapping::vMapED_
private

Definition at line 108 of file GEMROMapping.h.

Referenced by add(), isValidChipID(), and vfatPos().