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 91 of file GEMROMapping.h.

91 {};

Member Function Documentation

void GEMROMapping::add ( chamEC  e,
chamDC  d 
)
inline
void GEMROMapping::add ( GEMDetId  e,
vfatEC  d 
)
inline
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 100 of file GEMROMapping.h.

References chamED_.

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

Definition at line 103 of file GEMROMapping.h.

References chamVfats_.

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

Definition at line 109 of file GEMROMapping.h.

References stChMap_.

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

Definition at line 110 of file GEMROMapping.h.

References chStMap_.

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

Definition at line 96 of file GEMROMapping.h.

References chamED_.

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

Definition at line 93 of file GEMROMapping.h.

References vMapED_.

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

Definition at line 106 of file GEMROMapping.h.

References vMapED_.

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

Member Data Documentation

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

Definition at line 116 of file GEMROMapping.h.

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

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

Definition at line 118 of file GEMROMapping.h.

Referenced by add(), and getVfats().

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

Definition at line 122 of file GEMROMapping.h.

Referenced by add(), and hitPos().

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

Definition at line 123 of file GEMROMapping.h.

Referenced by add(), and hitPos().

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

Definition at line 120 of file GEMROMapping.h.

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