CMS 3D CMS Logo

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

#include <GEMROmap.h>

Classes

struct  dCoord
 
struct  eCoord
 

Public Member Functions

void add (eCoord e, dCoord d)
 
void add (dCoord d, eCoord e)
 
void add (GEMDetId d, uint32_t e)
 
void add (uint32_t d, GEMDetId e)
 
void addAMC (uint16_t d)
 
void addAMC2GEB (uint16_t d, uint16_t c)
 
const uint32_t & gebPosition (const GEMDetId &r)
 
const GEMDetIdgebPosition (const uint32_t &r)
 
 GEMROmap ()
 
std::vector< uint16_t > getAMC2GEBs (uint16_t d)
 
std::vector< uint16_t > getAMCs ()
 
std::map< GEMDetId, uint32_t > getRoMap ()
 
const dCoordhitPosition (const eCoord &r)
 
const eCoordhitPosition (const dCoord &r)
 
bool isValidChipID (const eCoord &r)
 

Private Attributes

std::map< uint16_t, std::vector< uint16_t > > amc2Gebs_
 
std::vector< uint16_t > amcs_
 
std::map< dCoord, eCoordroMapDE_
 
std::map< GEMDetId, uint32_t > roMapDet2Geb_
 
std::map< eCoord, dCoordroMapED_
 
std::map< uint32_t, GEMDetIdroMapGeb2Det_
 

Detailed Description

Definition at line 6 of file GEMROmap.h.

Constructor & Destructor Documentation

GEMROmap::GEMROmap ( )
inline

Definition at line 31 of file GEMROmap.h.

31 {};

Member Function Documentation

void GEMROmap::add ( eCoord  e,
dCoord  d 
)
inline
void GEMROmap::add ( dCoord  d,
eCoord  e 
)
inline
void GEMROmap::add ( GEMDetId  d,
uint32_t  e 
)
inline
void GEMROmap::add ( uint32_t  d,
GEMDetId  e 
)
inline
void GEMROmap::addAMC ( uint16_t  d)
inline

Definition at line 50 of file GEMROmap.h.

References amcs_.

Referenced by GEMEMap::convertDummy().

50 {amcs_.push_back(d);}
std::vector< uint16_t > amcs_
Definition: GEMROmap.h:57
void GEMROmap::addAMC2GEB ( uint16_t  d,
uint16_t  c 
)
inline

Definition at line 53 of file GEMROmap.h.

References amc2Gebs_, and edmIntegrityCheck::d.

Referenced by GEMEMap::convertDummy().

53 {amc2Gebs_[d].push_back(c);}
std::map< uint16_t, std::vector< uint16_t > > amc2Gebs_
Definition: GEMROmap.h:58
const uint32_t& GEMROmap::gebPosition ( const GEMDetId r)
inline

Definition at line 42 of file GEMROmap.h.

References alignCSCRings::r, and roMapDet2Geb_.

42 {return roMapDet2Geb_[r];}
std::map< GEMDetId, uint32_t > roMapDet2Geb_
Definition: GEMROmap.h:63
const GEMDetId& GEMROmap::gebPosition ( const uint32_t &  r)
inline

Definition at line 43 of file GEMROmap.h.

References alignCSCRings::r, and roMapGeb2Det_.

43 {return roMapGeb2Det_[r];}
std::map< uint32_t, GEMDetId > roMapGeb2Det_
Definition: GEMROmap.h:64
std::vector<uint16_t> GEMROmap::getAMC2GEBs ( uint16_t  d)
inline

Definition at line 54 of file GEMROmap.h.

References amc2Gebs_, and edmIntegrityCheck::d.

54 {return amc2Gebs_[d];}
std::map< uint16_t, std::vector< uint16_t > > amc2Gebs_
Definition: GEMROmap.h:58
std::vector<uint16_t> GEMROmap::getAMCs ( )
inline

Definition at line 51 of file GEMROmap.h.

References amcs_.

51 {return amcs_;}
std::vector< uint16_t > amcs_
Definition: GEMROmap.h:57
std::map<GEMDetId,uint32_t> GEMROmap::getRoMap ( )
inline

Definition at line 48 of file GEMROmap.h.

References roMapDet2Geb_.

48 {return roMapDet2Geb_;}
std::map< GEMDetId, uint32_t > roMapDet2Geb_
Definition: GEMROmap.h:63
const dCoord& GEMROmap::hitPosition ( const eCoord r)
inline

Definition at line 36 of file GEMROmap.h.

References alignCSCRings::r, and roMapED_.

36 {return roMapED_[r];}
std::map< eCoord, dCoord > roMapED_
Definition: GEMROmap.h:60
const eCoord& GEMROmap::hitPosition ( const dCoord r)
inline

Definition at line 37 of file GEMROmap.h.

References alignCSCRings::r, and roMapDE_.

37 {return roMapDE_[r];}
std::map< dCoord, eCoord > roMapDE_
Definition: GEMROmap.h:61
bool GEMROmap::isValidChipID ( const eCoord r)
inline

Definition at line 33 of file GEMROmap.h.

References roMapED_.

33  {
34  return roMapED_.find(r) != roMapED_.end();
35  }
std::map< eCoord, dCoord > roMapED_
Definition: GEMROmap.h:60

Member Data Documentation

std::map<uint16_t,std::vector<uint16_t> > GEMROmap::amc2Gebs_
private

Definition at line 58 of file GEMROmap.h.

Referenced by addAMC2GEB(), and getAMC2GEBs().

std::vector<uint16_t> GEMROmap::amcs_
private

Definition at line 57 of file GEMROmap.h.

Referenced by addAMC(), and getAMCs().

std::map<dCoord,eCoord> GEMROmap::roMapDE_
private

Definition at line 61 of file GEMROmap.h.

Referenced by add(), and hitPosition().

std::map<GEMDetId,uint32_t> GEMROmap::roMapDet2Geb_
private

Definition at line 63 of file GEMROmap.h.

Referenced by add(), gebPosition(), and getRoMap().

std::map<eCoord,dCoord> GEMROmap::roMapED_
private

Definition at line 60 of file GEMROmap.h.

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

std::map<uint32_t,GEMDetId> GEMROmap::roMapGeb2Det_
private

Definition at line 64 of file GEMROmap.h.

Referenced by add(), and gebPosition().