#include <GEMGeometry.h>
Public Member Functions | |
void | add (const GEMRegion *region) |
Add a GEMRegion to the Geometry. More... | |
void | add (const GEMStation *station) |
Add a GEMStation to the Geometry. More... | |
void | add (const GEMRing *ring) |
Add a GEMRing to the Geometry. More... | |
void | add (const GEMSuperChamber *sch) |
Add a GEMSuperChamber to the Geometry. More... | |
void | add (const GEMChamber *ch) |
Add a GEMChamber to the Geometry. More... | |
void | add (const GEMEtaPartition *etaPartition) |
Add a GEMEtaPartition to the Geometry. More... | |
const GEMChamber * | chamber (GEMDetId id) const |
const std::vector< const GEMChamber * > & | chambers () const |
Return a vector of all GEM chambers. More... | |
const DetIdContainer & | detIds () const override |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
const DetContainer & | dets () const override |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
const DetTypeContainer & | detTypes () const override |
Return a vector of all det types. More... | |
const DetIdContainer & | detUnitIds () const override |
Returm a vector of all GeomDetUnit DetIds. More... | |
const DetContainer & | detUnits () const override |
Returm a vector of all GeomDet. More... | |
const GEMEtaPartition * | etaPartition (GEMDetId id) const |
Return a GEMEtaPartition given its id. More... | |
const std::vector< const GEMEtaPartition * > & | etaPartitions () const |
Return a vector of all GEM eta partitions. More... | |
GEMGeometry () | |
Default constructor. More... | |
bool | hasGE11 () const |
bool | hasGE21 () const |
bool | hasME0 () const |
const GeomDet * | idToDet (DetId) const override |
const GeomDet * | idToDetUnit (DetId) const override |
Return the pointer to the GeomDetUnit corresponding to a given DetId. More... | |
const GEMRegion * | region (int region) const |
const std::vector< const GEMRegion * > & | regions () const |
Return a vector of all GEM regions. More... | |
const GEMRing * | ring (int region, int station, int ring) const |
Return a GEMRing. More... | |
const std::vector< const GEMRing * > & | rings () const |
Return a vector of all GEM rings. More... | |
const GEMStation * | station (int region, int station) const |
const std::vector< const GEMStation * > & | stations () const |
Return a vector of all GEM stations. More... | |
const GEMSuperChamber * | superChamber (GEMDetId id) const |
const std::vector< const GEMSuperChamber * > & | superChambers () const |
Return a vector of all GEM super chambers. More... | |
~GEMGeometry () override | |
Destructor. More... | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Attributes | |
std::vector< const GEMChamber * > | allChambers |
std::vector< const GEMEtaPartition * > | allEtaPartitions |
std::vector< const GEMRegion * > | allRegions |
std::vector< const GEMRing * > | allRings |
std::vector< const GEMStation * > | allStations |
std::vector< const GEMSuperChamber * > | allSuperChambers |
DetIdContainer | theDetIds |
DetContainer | theDets |
DetIdContainer | theEtaPartitionIds |
DetContainer | theEtaPartitions |
DetTypeContainer | theEtaPartitionTypes |
mapIdToDet | theMap |
Friends | |
class | GEMGeometryBuilder |
class | GeometryAligner |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
using | DetContainer = std::vector< const GeomDet * > |
using | DetIdContainer = std::vector< DetId > |
using | DetTypeContainer = std::vector< const GeomDetType * > |
using | mapIdToDet = std::unordered_map< unsigned int, const GeomDet * > |
using | mapIdToDetUnit = std::unordered_map< unsigned int, const GeomDet * > |
The model of the geometry of GEM.
Definition at line 24 of file GEMGeometry.h.
GEMGeometry::GEMGeometry | ( | ) |
Default constructor.
Implementation of the Model for GEM Geometry
Definition at line 9 of file GEMGeometry.cc.
|
override |
void GEMGeometry::add | ( | const GEMRegion * | region | ) |
Add a GEMRegion to the Geometry.
Definition at line 81 of file GEMGeometry.cc.
References allRegions.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilder::build(), GEMGeometryBuilder::buildRegions(), and counter.Counter::register().
void GEMGeometry::add | ( | const GEMStation * | station | ) |
Add a GEMStation to the Geometry.
Definition at line 83 of file GEMGeometry.cc.
References allStations.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | const GEMRing * | ring | ) |
Add a GEMRing to the Geometry.
Definition at line 85 of file GEMGeometry.cc.
References allRings.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | const GEMSuperChamber * | sch | ) |
Add a GEMSuperChamber to the Geometry.
Definition at line 87 of file GEMGeometry.cc.
References allSuperChambers, GeomDet::geographicalId(), superChamber(), theDetIds, theDets, and theMap.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | const GEMChamber * | ch | ) |
Add a GEMChamber to the Geometry.
Definition at line 104 of file GEMGeometry.cc.
References allChambers, chamber(), GeomDet::geographicalId(), theDetIds, theDets, and theMap.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | const GEMEtaPartition * | etaPartition | ) |
Add a GEMEtaPartition to the Geometry.
Definition at line 94 of file GEMGeometry.cc.
References allEtaPartitions, etaPartition(), GeomDet::geographicalId(), theDetIds, theDets, theEtaPartitionIds, theEtaPartitions, theEtaPartitionTypes, theMap, and GEMEtaPartition::type().
Referenced by counter.Counter::register().
const GEMChamber * GEMGeometry::chamber | ( | GEMDetId | id | ) | const |
Definition at line 73 of file GEMGeometry.cc.
References idToDet().
Referenced by add(), GEMPadDigiProducer::beginRun(), GEMGeometryBuilder::buildRegions(), GEMPadDigiProducer::checkGeometry(), and geometryXMLparser.CSCAlignable::index().
const std::vector< const GEMChamber * > & GEMGeometry::chambers | ( | ) | const |
Return a vector of all GEM chambers.
Definition at line 38 of file GEMGeometry.cc.
References allChambers.
Referenced by FWRecoGeometryESProducer::addGEMGeometry(), GEMPadDigiClusterProducer::selectClusters(), GEMPadDigiClusterProducer::sortClusters(), and GEMGeometryValidate::validateGEMChamberGeometry().
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 21 of file GEMGeometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 17 of file GEMGeometry.cc.
References theDets.
Referenced by GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex().
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 13 of file GEMGeometry.cc.
References theEtaPartitionTypes.
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 19 of file GEMGeometry.cc.
References theEtaPartitionIds.
|
overridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 15 of file GEMGeometry.cc.
References theEtaPartitions.
const GEMEtaPartition * GEMGeometry::etaPartition | ( | GEMDetId | id | ) | const |
Return a GEMEtaPartition given its id.
Definition at line 77 of file GEMGeometry.cc.
References idToDetUnit().
Referenced by add(), GEMStripDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMSegmentBuilder::build(), GEMCSCSegmentBuilder::build(), and GEMSignalModel::getSimHitBx().
const std::vector< const GEMEtaPartition * > & GEMGeometry::etaPartitions | ( | ) | const |
Return a vector of all GEM eta partitions.
Definition at line 40 of file GEMGeometry.cc.
References allEtaPartitions.
Referenced by FWRecoGeometryESProducer::addGEMGeometry(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), GEMGeometryBuilder::build(), GEMPadDigiClusterProducer::buildClusters(), GEMPadDigiProducer::buildPads(), GEMPadDigiProducer::buildPads16GE21(), GEMDigiProducer::produce(), and GEMGeometryValidate::validateGEMEtaPartitionGeometry().
bool GEMGeometry::hasGE11 | ( | ) | const |
Definition at line 113 of file GEMGeometry.cc.
References station().
Referenced by GEMPadDigiProducer::checkGeometry().
bool GEMGeometry::hasGE21 | ( | ) | const |
Definition at line 115 of file GEMGeometry.cc.
References station().
Referenced by GEMPadDigiProducer::beginRun(), and GEMPadDigiProducer::checkGeometry().
bool GEMGeometry::hasME0 | ( | ) | const |
Definition at line 111 of file GEMGeometry.cc.
References station().
Referenced by GEMPadDigiProducer::checkGeometry().
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 25 of file GEMGeometry.cc.
References mps_fire::i, and theMap.
Referenced by GEMCoPadDigiValidation::analyze(), GEMPadDigiValidation::analyze(), GEMStripDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMRecHitValidation::analyze(), GEMSimHitValidation::analyze(), GEMRecHitSource::analyze(), GEMDigiSource::analyze(), chamber(), idToDetUnit(), and superChamber().
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 23 of file GEMGeometry.cc.
References idToDet().
Referenced by etaPartition().
const GEMRegion * GEMGeometry::region | ( | int | region | ) | const |
const std::vector< const GEMRegion * > & GEMGeometry::regions | ( | ) | const |
Return a vector of all GEM regions.
Definition at line 30 of file GEMGeometry.cc.
References allRegions.
Referenced by GEMPadDigiClusterValidation::analyze(), GEMStripDigiValidation::analyze(), GEMPadDigiValidation::analyze(), GEMCoPadDigiValidation::bookHistograms(), GEMRecHitValidation::bookHistograms(), GEMPadDigiValidation::bookHistograms(), GEMPadDigiClusterValidation::bookHistograms(), GEMStripDigiValidation::bookHistograms(), GEMSimHitValidation::bookHistograms(), GEMCheckGeometry::bookHistograms(), and GEMDQMBase::loadChambers().
const GEMRing * GEMGeometry::ring | ( | int | region, |
int | station, | ||
int | ring | ||
) | const |
Return a GEMRing.
Definition at line 60 of file GEMGeometry.cc.
References allRings, GEMRing::region(), GEMRing::ring(), and GEMRing::station().
Referenced by geometryXMLparser.CSCAlignable::index().
const std::vector< const GEMRing * > & GEMGeometry::rings | ( | ) | const |
Return a vector of all GEM rings.
Definition at line 34 of file GEMGeometry.cc.
References allRings.
const GEMStation * GEMGeometry::station | ( | int | region, |
int | station | ||
) | const |
Definition at line 51 of file GEMGeometry.cc.
References allStations, GEMStation::region(), and GEMStation::station().
Referenced by hasGE11(), hasGE21(), hasME0(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
const std::vector< const GEMStation * > & GEMGeometry::stations | ( | ) | const |
Return a vector of all GEM stations.
Definition at line 32 of file GEMGeometry.cc.
References allStations.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers().
const GEMSuperChamber * GEMGeometry::superChamber | ( | GEMDetId | id | ) | const |
Definition at line 69 of file GEMGeometry.cc.
References idToDet().
Referenced by add(), GEMCoPadDigiValidation::analyze(), and GEMSegmentBuilder::build().
const std::vector< const GEMSuperChamber * > & GEMGeometry::superChambers | ( | ) | const |
Return a vector of all GEM super chambers.
Definition at line 36 of file GEMGeometry.cc.
References allSuperChambers.
Referenced by FWRecoGeometryESProducer::addGEMGeometry(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), AlignableMuon::buildGEMEndcap(), and GEMDQMBase::loadChambers().
|
friend |
Definition at line 32 of file GEMGeometry.h.
|
friend |
Definition at line 33 of file GEMGeometry.h.
|
private |
Definition at line 127 of file GEMGeometry.h.
Referenced by add(), and chambers().
|
private |
Definition at line 126 of file GEMGeometry.h.
Referenced by add(), and etaPartitions().
|
private |
Definition at line 131 of file GEMGeometry.h.
|
private |
Definition at line 129 of file GEMGeometry.h.
|
private |
Definition at line 130 of file GEMGeometry.h.
Referenced by add(), station(), and stations().
|
private |
Definition at line 128 of file GEMGeometry.h.
Referenced by add(), and superChambers().
|
private |
Definition at line 121 of file GEMGeometry.h.
|
private |
Definition at line 118 of file GEMGeometry.h.
|
private |
Definition at line 120 of file GEMGeometry.h.
Referenced by add(), and detUnitIds().
|
private |
Definition at line 117 of file GEMGeometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 119 of file GEMGeometry.h.
Referenced by add(), and detTypes().
|
private |
Definition at line 124 of file GEMGeometry.h.