#include <GEMGeometry.h>
Public Member Functions | |
void | add (GEMRegion *region) |
Add a GEMRegion to the Geometry. More... | |
void | add (GEMStation *station) |
Add a GEMStation to the Geometry. More... | |
void | add (GEMRing *ring) |
Add a GEMRing to the Geometry. More... | |
void | add (GEMSuperChamber *sch) |
Add a GEMSuperChamber to the Geometry. More... | |
void | add (GEMChamber *ch) |
Add a GEMChamber to the Geometry. More... | |
void | add (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... | |
virtual const DetIdContainer & | detIds () const override |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
virtual const DetContainer & | dets () const override |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
virtual const DetTypeContainer & | detTypes () const override |
Return a vector of all det types. More... | |
virtual const DetIdContainer & | detUnitIds () const override |
Returm a vector of all GeomDetUnit DetIds. More... | |
virtual const DetUnitContainer & | detUnits () const override |
Returm a vector of all GeomDetUnit. 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... | |
virtual const GeomDet * | idToDet (DetId) const override |
virtual const GeomDetUnit * | 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... | |
virtual | ~GEMGeometry () |
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 |
DetUnitContainer | theEtaPartitions |
DetTypeContainer | theEtaPartitionTypes |
mapIdToDet | theMap |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
typedef std::vector< GeomDet const * > | DetContainer |
typedef std::vector< DetId > | DetIdContainer |
typedef std::vector < GeomDetType const * > | DetTypeContainer |
typedef std::vector < GeomDetUnit const * > | DetUnitContainer |
typedef std::unordered_map < unsigned int, GeomDet const * > | mapIdToDet |
typedef std::unordered_map < unsigned int, GeomDetUnit const * > | mapIdToDetUnit |
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.
|
virtual |
void GEMGeometry::add | ( | GEMRegion * | region | ) |
Add a GEMRegion to the Geometry.
Definition at line 108 of file GEMGeometry.cc.
References allRegions.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry(), and counter.Counter::register().
void GEMGeometry::add | ( | GEMStation * | station | ) |
Add a GEMStation to the Geometry.
Definition at line 113 of file GEMGeometry.cc.
References allStations.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | GEMRing * | ring | ) |
Add a GEMRing to the Geometry.
Definition at line 118 of file GEMGeometry.cc.
References allRings.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | GEMSuperChamber * | sch | ) |
Add a GEMSuperChamber to the Geometry.
Definition at line 123 of file GEMGeometry.cc.
References allSuperChambers, GeomDet::geographicalId(), superChamber(), theDetIds, theDets, and theMap.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | GEMChamber * | ch | ) |
Add a GEMChamber to the Geometry.
Definition at line 145 of file GEMGeometry.cc.
References allChambers, chamber(), GeomDet::geographicalId(), theDetIds, theDets, and theMap.
Referenced by counter.Counter::register().
void GEMGeometry::add | ( | GEMEtaPartition * | etaPartition | ) |
Add a GEMEtaPartition to the Geometry.
Definition at line 132 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 99 of file GEMGeometry.cc.
References idToDet().
Referenced by add(), GEMGeometryBuilderFromDDD::buildGeometry(), and geometryXMLparser.CSCAlignable::index().
const std::vector< const GEMChamber * > & GEMGeometry::chambers | ( | ) | const |
Return a vector of all GEM chambers.
Definition at line 59 of file GEMGeometry.cc.
References allChambers.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry().
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 29 of file GEMGeometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 21 of file GEMGeometry.cc.
References theDets.
|
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 25 of file GEMGeometry.cc.
References theEtaPartitionIds.
|
overridevirtual |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 17 of file GEMGeometry.cc.
References theEtaPartitions.
const GEMEtaPartition * GEMGeometry::etaPartition | ( | GEMDetId | id | ) | const |
Return a GEMEtaPartition given its id.
Definition at line 103 of file GEMGeometry.cc.
References idToDetUnit().
Referenced by add(), GEMGeometryBuilderFromDDD::buildGeometry(), and GEMSimpleModel::getSimHitBx().
const std::vector< const GEMEtaPartition * > & GEMGeometry::etaPartitions | ( | ) | const |
Return a vector of all GEM eta partitions.
Definition at line 63 of file GEMGeometry.cc.
References allEtaPartitions.
Referenced by FWRecoGeometryESProducer::addGEMGeometry(), FWTGeoRecoGeometryESProducer::addGEMGeometry(), GEMGeometryBuilderFromDDD::buildGeometry(), GEMPadDigiProducer::buildPads(), and GEMDigiProducer::produce().
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 38 of file GEMGeometry.cc.
Referenced by chamber(), and idToDetUnit().
|
overridevirtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 33 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 43 of file GEMGeometry.cc.
References allRegions.
const GEMRing * GEMGeometry::ring | ( | int | region, |
int | station, | ||
int | ring | ||
) | const |
Return a GEMRing.
Definition at line 83 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 51 of file GEMGeometry.cc.
References allRings.
const GEMStation * GEMGeometry::station | ( | int | region, |
int | station | ||
) | const |
Definition at line 75 of file GEMGeometry.cc.
References allStations, GEMStation::region(), and GEMStation::station().
Referenced by 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 47 of file GEMGeometry.cc.
References allStations.
const GEMSuperChamber * GEMGeometry::superChamber | ( | GEMDetId | id | ) | const |
Definition at line 91 of file GEMGeometry.cc.
References allSuperChambers.
Referenced by add().
const std::vector< const GEMSuperChamber * > & GEMGeometry::superChambers | ( | ) | const |
Return a vector of all GEM super chambers.
Definition at line 55 of file GEMGeometry.cc.
References allSuperChambers.
Referenced by GEMGeometryBuilderFromDDD::buildGeometry().
|
private |
Definition at line 122 of file GEMGeometry.h.
Referenced by add(), and chambers().
|
private |
Definition at line 121 of file GEMGeometry.h.
Referenced by add(), and etaPartitions().
|
private |
Definition at line 126 of file GEMGeometry.h.
|
private |
Definition at line 124 of file GEMGeometry.h.
|
private |
Definition at line 125 of file GEMGeometry.h.
Referenced by add(), station(), and stations().
|
private |
Definition at line 123 of file GEMGeometry.h.
Referenced by add(), superChamber(), and superChambers().
|
private |
Definition at line 116 of file GEMGeometry.h.
|
private |
Definition at line 113 of file GEMGeometry.h.
|
private |
Definition at line 115 of file GEMGeometry.h.
Referenced by add(), and detUnitIds().
|
private |
Definition at line 112 of file GEMGeometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 114 of file GEMGeometry.h.
Referenced by add(), and detTypes().
|
private |
Definition at line 119 of file GEMGeometry.h.