#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... | |
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 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... | |
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 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... | |
~ME0Geometry () override | |
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 |
DetContainer | theEtaPartitions |
DetTypeContainer | theEtaPartitionTypes |
mapIdToDet | theMap |
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 * > |
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.
|
override |
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 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(), ME0TriggerBuilder::build(), 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.
Referenced by ME0ReDigiProducer::TemporaryGeometry::TemporaryGeometry().
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 33 of file ME0Geometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 23 of file ME0Geometry.cc.
References theDets.
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 13 of file ME0Geometry.cc.
References theEtaPartitionTypes.
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 28 of file ME0Geometry.cc.
References theEtaPartitionIds.
|
overridevirtual |
Returm a vector of all GeomDet.
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(), and ME0SimpleModel::getSimHitBx().
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(), ME0PadDigiProducer::buildPads(), ME0DigiPreRecoProducer::produce(), and ME0DigiProducer::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.
References mps_fire::i, and theMap.
Referenced by ME0HitsValidation::analyze(), ME0DigisValidation::analyze(), ME0RecHitsValidation::analyze(), ME0SegmentsValidation::analyze(), MuonME0DetLayerGeometryBuilder::buildLayer(), and idToDetUnit().
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.
Referenced by ME0PadDigiClusterProducer::buildClusters().
|
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.