#include <DTGeometry.h>
Public Member Functions | |
const DTChamber * | chamber (DTChamberId id) const |
Return a DTChamber given its id. More... | |
const std::vector< DTChamber * > & | chambers () const |
Return a vector of all Chamber. 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... | |
DTGeometry () | |
Default constructor. 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 DTLayer * | layer (DTLayerId id) const |
Return a layer given its id. More... | |
const std::vector< DTLayer * > & | layers () const |
Return a vector of all SuperLayer. More... | |
const DTSuperLayer * | superLayer (DTSuperLayerId id) const |
Return a DTSuperLayer given its id. More... | |
const std::vector < DTSuperLayer * > & | superLayers () const |
Return a vector of all SuperLayer. More... | |
virtual | ~DTGeometry () |
Destructor. More... | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Types | |
typedef std::map< DetId, GeomDet * > | DTDetMap |
Private Member Functions | |
void | add (DTChamber *ch) |
Add a DTChamber to Geometry. More... | |
void | add (DTSuperLayer *sl) |
Add a DTSuperLayer to Geometry. More... | |
void | add (DTLayer *l) |
Add a DTLayer to Geometry. More... | |
Private Attributes | |
std::vector< DTChamber * > | theChambers |
DetContainer | theDets |
DetUnitContainer | theDetUnits |
std::vector< DTLayer * > | theLayers |
DTDetMap | theMap |
std::vector< DTSuperLayer * > | theSuperLayers |
Friends | |
class | DTGeometryBuilderFromCondDB |
class | DTGeometryBuilderFromDDD |
class | GeometryAligner |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
typedef std::vector< GeomDet * > | DetContainer |
typedef std::vector< DetId > | DetIdContainer |
typedef std::vector < GeomDetType * > | DetTypeContainer |
typedef std::vector < GeomDetUnit * > | DetUnitContainer |
typedef __gnu_cxx::hash_map < unsigned int, GeomDet * > | mapIdToDet |
typedef __gnu_cxx::hash_map < unsigned int, GeomDetUnit * > | mapIdToDetUnit |
The model of the geometry of Muon Drift Tube detectors.
The geometry owns the DTChamber s; these own their DTSuperLayer s which in turn own their DTLayer s.
Definition at line 27 of file DTGeometry.h.
|
private |
Definition at line 29 of file DTGeometry.h.
DTGeometry::DTGeometry | ( | ) |
|
virtual |
|
private |
Add a DTChamber to Geometry.
Definition at line 30 of file DTGeometry.cc.
References GeomDet::geographicalId(), theChambers, theDets, and theMap.
|
private |
Add a DTSuperLayer to Geometry.
Definition at line 37 of file DTGeometry.cc.
References GeomDet::geographicalId(), theDets, theMap, and theSuperLayers.
|
private |
Add a DTLayer to Geometry.
Definition at line 44 of file DTGeometry.cc.
References GeomDet::geographicalId(), prof2calltree::l, theDets, theDetUnits, theLayers, and theMap.
const DTChamber * DTGeometry::chamber | ( | DTChamberId | id | ) | const |
Return a DTChamber given its id.
Definition at line 105 of file DTGeometry.cc.
References idToDet().
Referenced by DTResidualCalibration::analyze(), DTRecHitSegmentResidual::compute(), DTCalibValidation::compute(), geometryXMLparser.CSCAlignable::index(), MuonSimHitProducer::produce(), and DTResidualCalibration::segmentToWireDistance().
const std::vector< DTChamber * > & DTGeometry::chambers | ( | ) | const |
Return a vector of all Chamber.
Definition at line 90 of file DTGeometry.cc.
References theChambers.
Referenced by FWRecoGeometryESProducer::addDTGeometry(), DTResidualCalibration::beginRun(), and AlignableMuon::buildDTBarrel().
|
virtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 69 of file DTGeometry.cc.
|
virtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 57 of file DTGeometry.cc.
References theDets.
|
virtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 23 of file DTGeometry.cc.
|
virtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 62 of file DTGeometry.cc.
|
virtual |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 52 of file DTGeometry.cc.
References theDetUnits.
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 81 of file DTGeometry.cc.
Referenced by MuonDTDetLayerGeometryBuilder::buildLayers(), chamber(), DTHitQualityUtils::findMuSimSegmentDirAndPos(), idToDetUnit(), layer(), and superLayer().
|
virtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 76 of file DTGeometry.cc.
References idToDet().
Referenced by MuonSimHitsValidAnalyzer::fillDT(), and MuonSimHitProducer::produce().
Return a layer given its id.
Definition at line 115 of file DTGeometry.cc.
References idToDet().
Referenced by DTRecHitSegmentResidual::compute(), DTCalibValidation::compute(), DTRecHitQuality::compute(), GlobalRecHitsAnalyzer::compute(), GlobalRecHitsProducer::compute(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), DTHitQualityUtils::findMuSimSegmentDirAndPos(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and DTResidualCalibration::segmentToWireDistance().
const std::vector< DTLayer * > & DTGeometry::layers | ( | ) | const |
Return a vector of all SuperLayer.
Definition at line 100 of file DTGeometry.cc.
References theLayers.
Referenced by FWRecoGeometryESProducer::addDTGeometry().
const DTSuperLayer * DTGeometry::superLayer | ( | DTSuperLayerId | id | ) | const |
Return a DTSuperLayer given its id.
Definition at line 110 of file DTGeometry.cc.
References idToDet().
const std::vector< DTSuperLayer * > & DTGeometry::superLayers | ( | ) | const |
Return a vector of all SuperLayer.
Definition at line 95 of file DTGeometry.cc.
References theSuperLayers.
|
friend |
Definition at line 87 of file DTGeometry.h.
|
friend |
Definition at line 86 of file DTGeometry.h.
|
friend |
Definition at line 89 of file DTGeometry.h.
|
private |
Definition at line 104 of file DTGeometry.h.
Referenced by add(), chambers(), and ~DTGeometry().
|
private |
Definition at line 118 of file DTGeometry.h.
|
private |
Definition at line 117 of file DTGeometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 110 of file DTGeometry.h.
|
private |
Definition at line 113 of file DTGeometry.h.
|
private |
Definition at line 109 of file DTGeometry.h.
Referenced by add(), and superLayers().