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  sectorEC
 
struct  stripNum
 
struct  vfatDC
 
struct  vfatEC
 

Public Member Functions

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

Private Attributes

std::vector< sectorECamcVec_
 
std::map< chamEC, chamDCchamberMap_
 
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
 
std::map< channelNum, stripNumchStMap_
 
std::map< stripNum, channelNumstChMap_
 
std::map< vfatEC, vfatDCvfatMap_
 

Detailed Description

Definition at line 8 of file GEMROMapping.h.

Constructor & Destructor Documentation

◆ GEMROMapping()

GEMROMapping::GEMROMapping ( )
inline

Definition at line 99 of file GEMROMapping.h.

99 {};

Member Function Documentation

◆ add() [1/6]

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

◆ add() [2/6]

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

Definition at line 120 of file GEMROMapping.h.

120 { chStMap_[c] = s; }

References c, chStMap_, and alignCSCRings::s.

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

◆ add() [3/6]

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

◆ add() [4/6]

void GEMROMapping::add ( sectorEC  e)
inline

◆ add() [5/6]

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

Definition at line 121 of file GEMROMapping.h.

121 { stChMap_[s] = c; }

References c, alignCSCRings::s, and stChMap_.

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

◆ add() [6/6]

void GEMROMapping::add ( vfatEC  e,
vfatDC  d 
)
inline

◆ chamberPos()

const chamDC& GEMROMapping::chamberPos ( const chamEC r) const
inline

Definition at line 108 of file GEMROMapping.h.

108 { return chamberMap_.at(r); }

References chamberMap_, and alignCSCRings::r.

◆ getVfats()

const std::vector<vfatEC> GEMROMapping::getVfats ( const GEMDetId r) const
inline

Definition at line 111 of file GEMROMapping.h.

111 { return chamVfats_.at(r); }

References chamVfats_, and alignCSCRings::r.

◆ hitPos() [1/2]

const stripNum& GEMROMapping::hitPos ( const channelNum c) const
inline

Definition at line 118 of file GEMROMapping.h.

118 { return chStMap_.at(c); }

References c, and chStMap_.

◆ hitPos() [2/2]

const channelNum& GEMROMapping::hitPos ( const stripNum s) const
inline

Definition at line 117 of file GEMROMapping.h.

117 { return stChMap_.at(s); }

References alignCSCRings::s, and stChMap_.

◆ isValidAMC()

bool GEMROMapping::isValidAMC ( const sectorEC r) const
inline

Definition at line 104 of file GEMROMapping.h.

104 { return std::find(amcVec_.begin(), amcVec_.end(), r) != amcVec_.end(); }

References amcVec_, spr::find(), and alignCSCRings::r.

Referenced by GEMeMap::convert(), and GEMeMap::convertDummy().

◆ isValidChamber()

bool GEMROMapping::isValidChamber ( const chamEC r) const
inline

Definition at line 102 of file GEMROMapping.h.

102 { return chamberMap_.find(r) != chamberMap_.end(); }

References chamberMap_, and alignCSCRings::r.

◆ isValidChipID()

bool GEMROMapping::isValidChipID ( const vfatEC r) const
inline

Definition at line 101 of file GEMROMapping.h.

101 { return vfatMap_.find(r) != vfatMap_.end(); }

References alignCSCRings::r, and vfatMap_.

◆ vfatPos()

const vfatDC& GEMROMapping::vfatPos ( const vfatEC r) const
inline

Definition at line 114 of file GEMROMapping.h.

114 { return vfatMap_.at(r); }

References alignCSCRings::r, and vfatMap_.

Member Data Documentation

◆ amcVec_

std::vector<sectorEC> GEMROMapping::amcVec_
private

Definition at line 124 of file GEMROMapping.h.

Referenced by add(), and isValidAMC().

◆ chamberMap_

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

Definition at line 127 of file GEMROMapping.h.

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

◆ chamVfats_

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

Definition at line 129 of file GEMROMapping.h.

Referenced by add(), and getVfats().

◆ chStMap_

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

Definition at line 133 of file GEMROMapping.h.

Referenced by add(), and hitPos().

◆ stChMap_

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

Definition at line 134 of file GEMROMapping.h.

Referenced by add(), and hitPos().

◆ vfatMap_

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

Definition at line 131 of file GEMROMapping.h.

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

GEMROMapping::chStMap_
std::map< channelNum, stripNum > chStMap_
Definition: GEMROMapping.h:133
GEMROMapping::amcVec_
std::vector< sectorEC > amcVec_
Definition: GEMROMapping.h:124
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GEMROMapping::vfatMap_
std::map< vfatEC, vfatDC > vfatMap_
Definition: GEMROMapping.h:131
GEMROMapping::stChMap_
std::map< stripNum, channelNum > stChMap_
Definition: GEMROMapping.h:134
alignCSCRings.r
r
Definition: alignCSCRings.py:93
GEMROMapping::chamberMap_
std::map< chamEC, chamDC > chamberMap_
Definition: GEMROMapping.h:127
GEMROMapping::chamVfats_
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
Definition: GEMROMapping.h:129
ztail.d
d
Definition: ztail.py:151
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37