CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( )
inline

Definition at line 99 of file GEMROMapping.h.

99 {};

Member Function Documentation

void GEMROMapping::add ( sectorEC  e)
inline

Definition at line 106 of file GEMROMapping.h.

References amcVec_.

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

106 { amcVec_.push_back(e); }
std::vector< sectorEC > amcVec_
Definition: GEMROMapping.h:124
void GEMROMapping::add ( chamEC  e,
chamDC  d 
)
inline

Definition at line 109 of file GEMROMapping.h.

References chamberMap_, ztail::d, and alignCSCRings::e.

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

109 { chamberMap_[e] = d; }
std::map< chamEC, chamDC > chamberMap_
Definition: GEMROMapping.h:127
tuple d
Definition: ztail.py:151
void GEMROMapping::add ( GEMDetId  e,
vfatEC  d 
)
inline

Definition at line 112 of file GEMROMapping.h.

References chamVfats_, and alignCSCRings::e.

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

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

Definition at line 115 of file GEMROMapping.h.

References ztail::d, alignCSCRings::e, and vfatMap_.

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

115 { vfatMap_[e] = d; }
tuple d
Definition: ztail.py:151
std::map< vfatEC, vfatDC > vfatMap_
Definition: GEMROMapping.h:131
void GEMROMapping::add ( channelNum  c,
stripNum  s 
)
inline

Definition at line 120 of file GEMROMapping.h.

References c, chStMap_, and alignCSCRings::s.

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

120 { chStMap_[c] = s; }
const edm::EventSetup & c
std::map< channelNum, stripNum > chStMap_
Definition: GEMROMapping.h:133
void GEMROMapping::add ( stripNum  s,
channelNum  c 
)
inline

Definition at line 121 of file GEMROMapping.h.

References c, alignCSCRings::s, and stChMap_.

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

121 { stChMap_[s] = c; }
const edm::EventSetup & c
std::map< stripNum, channelNum > stChMap_
Definition: GEMROMapping.h:134
const chamDC& GEMROMapping::chamberPos ( const chamEC r) const
inline

Definition at line 108 of file GEMROMapping.h.

References chamberMap_.

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

Definition at line 111 of file GEMROMapping.h.

References chamVfats_.

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

Definition at line 117 of file GEMROMapping.h.

References stChMap_.

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

Definition at line 118 of file GEMROMapping.h.

References chStMap_.

118 { return chStMap_.at(c); }
const edm::EventSetup & c
std::map< channelNum, stripNum > chStMap_
Definition: GEMROMapping.h:133
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
bool GEMROMapping::isValidChamber ( const chamEC r) const
inline

Definition at line 102 of file GEMROMapping.h.

References chamberMap_.

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

Definition at line 101 of file GEMROMapping.h.

References vfatMap_.

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

Definition at line 114 of file GEMROMapping.h.

References vfatMap_.

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

Member Data Documentation

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

Definition at line 124 of file GEMROMapping.h.

Referenced by add(), and isValidAMC().

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

Definition at line 127 of file GEMROMapping.h.

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

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

Definition at line 129 of file GEMROMapping.h.

Referenced by add(), and getVfats().

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

Definition at line 133 of file GEMROMapping.h.

Referenced by add(), and hitPos().

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

Definition at line 134 of file GEMROMapping.h.

Referenced by add(), and hitPos().

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

Definition at line 131 of file GEMROMapping.h.

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