#include <ME0Geometry.h>
Public Member Functions | |
void | add (ME0EtaPartition *etaPartition) |
Add a ME0 etaPartition to the Geometry. More... | |
void | add (ME0Layer *layer) |
Add a ME0 layer to the Geometry. More... | |
void | add (ME0Chamber *chamber) |
Add a ME0 Chamber to the Geometry. More... | |
const ME0Chamber * | chamber (ME0DetId id) const |
Return a chamber given its id. More... | |
const std::vector< const ME0Chamber * > & | chambers () const |
Return a vector of all ME0 chambers. More... | |
virtual const DetIdContainer & | detIds () const |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
virtual const DetContainer & | dets () const |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
virtual const DetTypeContainer & | detTypes () const |
Return a vector of all det types. More... | |
virtual const DetIdContainer & | detUnitIds () const |
Returm a vector of all GeomDetUnit DetIds. More... | |
virtual const DetUnitContainer & | detUnits () const |
Returm a vector of all GeomDetUnit. More... | |
const ME0EtaPartition * | etaPartition (ME0DetId id) const |
Return a etaPartition given its id. More... | |
const std::vector< ME0EtaPartition const * > & | etaPartitions () const |
Return a vector of all ME0 eta partitions. More... | |
virtual const GeomDet * | idToDet (DetId) const |
virtual const GeomDetUnit * | idToDetUnit (DetId) const |
Return the pointer to the GeomDetUnit corresponding to a given DetId. More... | |
const ME0Layer * | layer (ME0DetId id) const |
Return a layer given its id. More... | |
const std::vector< const ME0Layer * > & | layers () const |
Return a vector of all ME0 layers. More... | |
ME0Geometry () | |
Default constructor. More... | |
virtual | ~ME0Geometry () |
Destructor. More... | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Attributes | |
std::vector< ME0Chamber const * > | allChambers |
std::vector< ME0EtaPartition const * > | allEtaPartitions |
std::vector< ME0Layer const * > | allLayers |
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 |
Definition at line 12 of file ME0Geometry.h.
ME0Geometry::ME0Geometry | ( | ) |
Default constructor.
Implementation of the Model for ME0 Geometry
Definition at line 9 of file ME0Geometry.cc.
|
virtual |
void ME0Geometry::add | ( | ME0EtaPartition * | etaPartition | ) |
Add a ME0 etaPartition to the Geometry.
Definition at line 79 of file ME0Geometry.cc.
References allEtaPartitions, etaPartition(), GeomDet::geographicalId(), theDetIds, theDets, theEtaPartitionIds, theEtaPartitions, theEtaPartitionTypes, theMap, and ME0EtaPartition::type().
Referenced by ME0GeometryBuilderFromDDD10EtaPart::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), and counter.Counter::register().
void ME0Geometry::add | ( | ME0Layer * | layer | ) |
Add a ME0 layer to the Geometry.
Definition at line 92 of file ME0Geometry.cc.
References allLayers, GeomDet::geographicalId(), layer(), theDetIds, theDets, theEtaPartitionTypes, theMap, and GeomDet::type().
Referenced by counter.Counter::register().
void ME0Geometry::add | ( | ME0Chamber * | chamber | ) |
Add a ME0 Chamber to the Geometry.
Definition at line 105 of file ME0Geometry.cc.
References allChambers, chamber(), GeomDet::geographicalId(), theDetIds, theDets, and theMap.
Referenced by counter.Counter::register().
const ME0Chamber * ME0Geometry::chamber | ( | ME0DetId | id | ) | const |
Return a chamber given its id.
Definition at line 73 of file ME0Geometry.cc.
References idToDetUnit().
Referenced by add(), ME0SegmentsValidation::analyze(), ME0SegmentBuilder::build(), geometryXMLparser.CSCAlignable::index(), and ME0SegmentMatcher::produce().
const std::vector< ME0Chamber const * > & ME0Geometry::chambers | ( | ) | const |
Return a vector of all ME0 chambers.
Definition at line 49 of file ME0Geometry.cc.
References allChambers.
|
virtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 33 of file ME0Geometry.cc.
References theDetIds.
|
virtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 23 of file ME0Geometry.cc.
References theDets.
|
virtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 13 of file ME0Geometry.cc.
References theEtaPartitionTypes.
|
virtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 28 of file ME0Geometry.cc.
References theEtaPartitionIds.
|
virtual |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 18 of file ME0Geometry.cc.
References theEtaPartitions.
const ME0EtaPartition * ME0Geometry::etaPartition | ( | ME0DetId | id | ) | const |
Return a etaPartition given its id.
Definition at line 64 of file ME0Geometry.cc.
References idToDetUnit().
Referenced by add(), ME0SegmentsValidation::analyze(), ME0SegmentBuilder::build(), ME0ReDigiProducer::buildDigis(), and ME0GeometryBuilderFromDDD::buildGeometry().
const std::vector< ME0EtaPartition const * > & ME0Geometry::etaPartitions | ( | ) | const |
Return a vector of all ME0 eta partitions.
Definition at line 59 of file ME0Geometry.cc.
References allEtaPartitions.
Referenced by FWRecoGeometryESProducer::addME0Geometry(), FWTGeoRecoGeometryESProducer::addME0Geometry(), ME0ReDigiProducer::beginRun(), ME0ReDigiProducer::buildDigis(), ME0GeometryBuilderFromDDD::buildGeometry(), and ME0DigiPreRecoProducer::produce().
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 42 of file ME0Geometry.cc.
Referenced by ME0HitsValidation::analyze(), ME0DigisValidation::analyze(), ME0RecHitsValidation::analyze(), MuonME0DetLayerGeometryBuilder::buildLayer(), and idToDetUnit().
|
virtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 38 of file ME0Geometry.cc.
References idToDet().
Referenced by chamber(), etaPartition(), and layer().
Return a layer given its id.
Definition at line 69 of file ME0Geometry.cc.
References idToDetUnit().
Referenced by add(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
const std::vector< ME0Layer const * > & ME0Geometry::layers | ( | ) | const |
Return a vector of all ME0 layers.
Definition at line 54 of file ME0Geometry.cc.
References allLayers.
|
private |
Definition at line 85 of file ME0Geometry.h.
Referenced by add(), and chambers().
|
private |
Definition at line 83 of file ME0Geometry.h.
Referenced by add(), and etaPartitions().
|
private |
Definition at line 84 of file ME0Geometry.h.
|
private |
Definition at line 77 of file ME0Geometry.h.
|
private |
Definition at line 78 of file ME0Geometry.h.
|
private |
Definition at line 76 of file ME0Geometry.h.
Referenced by add(), and detUnitIds().
|
private |
Definition at line 74 of file ME0Geometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 75 of file ME0Geometry.h.
Referenced by add(), and detTypes().
|
private |
Definition at line 81 of file ME0Geometry.h.