#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 47 of file ME0Geometry.cc.
References allEtaPartitions, etaPartition(), GeomDet::geographicalId(), theDetIds, theDets, theEtaPartitionIds, theEtaPartitions, theEtaPartitionTypes, theMap, and ME0EtaPartition::type().
Referenced by ME0GeometryBuilder::buildGeometry(), and counter.Counter::register().
void ME0Geometry::add | ( | ME0Layer * | layer | ) |
Add a ME0 layer to the Geometry.
Definition at line 57 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 67 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 43 of file ME0Geometry.cc.
References idToDetUnit().
Referenced by add(), ME0SegmentsValidation::analyze(), ME0TriggerBuilder::build(), ME0SegmentBuilder::build(), geometryXMLparser.CSCAlignable::index(), and ME0TriggerPseudoBuilder::segmentConversion().
const std::vector< ME0Chamber const * > & ME0Geometry::chambers | ( | ) | const |
Return a vector of all ME0 chambers.
Definition at line 29 of file ME0Geometry.cc.
References allChambers.
Referenced by ME0ReDigiProducer::beginRun(), ME0ReDigiProducer::fillCentralTOFs(), ME0ReDigiProducer::TemporaryGeometry::TemporaryGeometry(), and ME0GeometryValidate::validateME0ChamberGeometry().
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 20 of file ME0Geometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 16 of file ME0Geometry.cc.
References theDets.
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 12 of file ME0Geometry.cc.
References theEtaPartitionTypes.
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 18 of file ME0Geometry.cc.
References theEtaPartitionIds.
|
overridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 14 of file ME0Geometry.cc.
References theEtaPartitions.
const ME0EtaPartition * ME0Geometry::etaPartition | ( | ME0DetId | id | ) | const |
Return a etaPartition given its id.
Definition at line 35 of file ME0Geometry.cc.
References idToDetUnit().
Referenced by add(), ME0SegmentsValidation::analyze(), ME0SegmentBuilder::build(), ME0ReDigiProducer::buildDigis(), and ME0SimpleModel::getSimHitBx().
const std::vector< ME0EtaPartition const * > & ME0Geometry::etaPartitions | ( | ) | const |
Return a vector of all ME0 eta partitions.
Definition at line 33 of file ME0Geometry.cc.
References allEtaPartitions.
Referenced by FWRecoGeometryESProducer::addME0Geometry(), FWTGeoRecoGeometryESProducer::addME0Geometry(), ME0GeometryBuilder::buildGeometry(), ME0PadDigiProducer::buildPads(), ME0GeometryValidate::validateME0EtaPartitionGeometry(), and ME0GeometryValidate::validateME0EtaPartitionGeometry2().
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 24 of file ME0Geometry.cc.
References mps_fire::i, and theMap.
Referenced by ME0HitsValidation::analyze(), ME0RecHitsValidation::analyze(), ME0SegmentsValidation::analyze(), ME0DigisValidation::analyze(), MuonME0DetLayerGeometryBuilder::buildLayer(), ME0TriggerPseudoBuilder::dumpAllME0Segments(), idToDetUnit(), and ME0TriggerPseudoBuilder::segmentConversion().
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 22 of file ME0Geometry.cc.
References idToDet().
Referenced by chamber(), etaPartition(), and layer().
Return a layer given its id.
Definition at line 39 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 31 of file ME0Geometry.cc.
References allLayers.
|
private |
Definition at line 82 of file ME0Geometry.h.
Referenced by add(), and chambers().
|
private |
Definition at line 80 of file ME0Geometry.h.
Referenced by add(), and etaPartitions().
|
private |
Definition at line 81 of file ME0Geometry.h.
|
private |
Definition at line 74 of file ME0Geometry.h.
|
private |
Definition at line 75 of file ME0Geometry.h.
|
private |
Definition at line 73 of file ME0Geometry.h.
Referenced by add(), and detUnitIds().
|
private |
Definition at line 71 of file ME0Geometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 72 of file ME0Geometry.h.
Referenced by add(), and detTypes().
|
private |
Definition at line 78 of file ME0Geometry.h.