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 (sectorEC e)
 
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 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 ( sectorEC  e)
inline

◆ add() [2/6]

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

◆ add() [3/6]

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

Definition at line 112 of file GEMROMapping.h.

References chamVfats_, ztail::d, and MillePedeFileConverter_cfg::e.

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

112 { chamVfats_[e].push_back(d); }
d
Definition: ztail.py:151
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
Definition: GEMROMapping.h:129

◆ add() [4/6]

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

◆ add() [5/6]

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

Definition at line 120 of file GEMROMapping.h.

References DummyCfis::c, chStMap_, and alignCSCRings::s.

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

120 { chStMap_[c] = s; }
std::map< channelNum, stripNum > chStMap_
Definition: GEMROMapping.h:133

◆ add() [6/6]

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

Definition at line 121 of file GEMROMapping.h.

References DummyCfis::c, alignCSCRings::s, and stChMap_.

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

121 { stChMap_[s] = c; }
std::map< stripNum, channelNum > stChMap_
Definition: GEMROMapping.h:134

◆ chamberPos()

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

Definition at line 108 of file GEMROMapping.h.

References chamberMap_, and alignCSCRings::r.

108 { return chamberMap_.at(r); }
std::map< chamEC, chamDC > chamberMap_
Definition: GEMROMapping.h:127

◆ getVfats()

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

Definition at line 111 of file GEMROMapping.h.

References chamVfats_, and alignCSCRings::r.

111 { return chamVfats_.at(r); }
std::map< GEMDetId, std::vector< vfatEC > > chamVfats_
Definition: GEMROMapping.h:129

◆ hitPos() [1/2]

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

Definition at line 117 of file GEMROMapping.h.

References alignCSCRings::s, and stChMap_.

117 { return stChMap_.at(s); }
std::map< stripNum, channelNum > stChMap_
Definition: GEMROMapping.h:134

◆ hitPos() [2/2]

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

Definition at line 118 of file GEMROMapping.h.

References DummyCfis::c, and chStMap_.

118 { return chStMap_.at(c); }
std::map< channelNum, stripNum > chStMap_
Definition: GEMROMapping.h:133

◆ isValidAMC()

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

Definition at line 104 of file GEMROMapping.h.

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

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

104 { return std::find(amcVec_.begin(), amcVec_.end(), r) != amcVec_.end(); }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
std::vector< sectorEC > amcVec_
Definition: GEMROMapping.h:124

◆ isValidChamber()

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

Definition at line 102 of file GEMROMapping.h.

References chamberMap_, and alignCSCRings::r.

102 { return chamberMap_.find(r) != chamberMap_.end(); }
std::map< chamEC, chamDC > chamberMap_
Definition: GEMROMapping.h:127

◆ isValidChipID()

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

Definition at line 101 of file GEMROMapping.h.

References alignCSCRings::r, and vfatMap_.

101 { return vfatMap_.find(r) != vfatMap_.end(); }
std::map< vfatEC, vfatDC > vfatMap_
Definition: GEMROMapping.h:131

◆ vfatPos()

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

Definition at line 114 of file GEMROMapping.h.

References alignCSCRings::r, and vfatMap_.

114 { return vfatMap_.at(r); }
std::map< vfatEC, vfatDC > vfatMap_
Definition: GEMROMapping.h:131

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