#include <MTDGeometry.h>
Public Types | |
enum | ModuleType { ModuleType::UNKNOWN, ModuleType::BTL, ModuleType::ETL } |
using | SubDetector = GeomDetEnumerators::SubDetector |
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 * > |
Public Member Functions | |
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 DetContainer & | detsBTL () const |
const DetContainer & | detsETL () const |
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... | |
unsigned int | endsetDU (unsigned sid) const |
void | fillTestMap (const GeometricTimingDet *gd) |
const GeomDetEnumerators::SubDetector | geomDetSubDetector (int subdet) const |
float | getDetectorThickness (DetId) const |
ModuleType | getDetectorType (DetId) const |
const MTDGeomDet * | idToDet (DetId) const override |
const MTDGeomDet * | idToDetUnit (DetId) const override |
Return the pointer to the GeomDetUnit corresponding to a given DetId. More... | |
bool | isThere (GeomDetEnumerators::SubDetector subdet) const |
ModuleType | moduleType (const std::string &name) const |
unsigned int | numberOfLayers (int subdet) const |
unsigned int | offsetDU (unsigned sid) const |
void | setEndsetDU (unsigned sid) |
void | setOffsetDU (unsigned sid) |
GeometricTimingDet const * | trackerDet () const |
~MTDGeometry () override | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Member Functions | |
void | addDet (GeomDet const *p) |
void | addDetId (DetId p) |
void | addDetUnit (GeomDet const *p) |
void | addDetUnitId (DetId p) |
void | addType (GeomDetType const *p) |
void | finalize () |
MTDGeometry (GeometricTimingDet const *gd=0) | |
Private Attributes | |
DetContainer | theBTLDets |
DetIdContainer | theDetIds |
DetContainer | theDets |
DetTypeContainer | theDetTypes |
std::vector< std::tuple< DetId, MTDGeometry::ModuleType, float > > | theDetTypetList |
DetIdContainer | theDetUnitIds |
DetContainer | theDetUnits |
unsigned int | theEndsetDU [2] |
DetContainer | theETLDets |
mapIdToDet | theMap |
mapIdToDetUnit | theMapUnit |
unsigned int | theNumberOfLayers [2] |
unsigned int | theOffsetDU [2] |
GeomDetEnumerators::SubDetector | theSubDetTypeMap [2] |
GeometricTimingDet const * | theTrackerDet |
Friends | |
class | GeometryAligner |
Aligner has access to map. More... | |
class | MTDGeomBuilderFromGeometricTimingDet |
A specific MTD Builder which builds MTD from a list of DetUnits. Pattern recognition is used to discover layers, rings etc.
Definition at line 14 of file MTDGeometry.h.
Definition at line 16 of file MTDGeometry.h.
|
strong |
Enumerator | |
---|---|
UNKNOWN | |
BTL | |
ETL |
Definition at line 18 of file MTDGeometry.h.
|
override |
Definition at line 97 of file MTDGeometry.cc.
References ztail::d, theDets, and theDetTypes.
|
explicitprivate |
Definition at line 40 of file MTDGeometry.cc.
References GeometricTimingDet::components(), hcal2_dqm_sourceclient-live_cfg::debugstr, TauDecayModes::dec, GeometricTimingDet::deepComponents(), fillTestMap(), geomDetSubDetector(), mps_fire::i, GeomDetEnumerators::invalidDet, LogDebug, LogTrace, MTDDetId::mtdSubDetector(), numberOfLayers(), theDetTypetList, theNumberOfLayers, and theSubDetTypeMap.
Referenced by trackerDet().
|
private |
Definition at line 128 of file MTDGeometry.cc.
References MTDDetId::BTL, MTDDetId::ETL, GeomDet::geographicalId(), triggerObjects_cff::id, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), theBTLDets, theDets, theETLDets, and theMap.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildGeomDet().
|
private |
Definition at line 146 of file MTDGeometry.cc.
References theDetIds.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildGeomDet().
|
private |
Definition at line 119 of file MTDGeometry.cc.
References GeomDet::geographicalId(), AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), theDetUnits, and theMapUnit.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel().
|
private |
Definition at line 126 of file MTDGeometry.cc.
References theDetUnitIds.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel().
|
private |
Definition at line 115 of file MTDGeometry.cc.
References theDetTypes.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel().
|
inlineoverridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 30 of file MTDGeometry.h.
References geomDetSubDetector(), idToDet(), idToDetUnit(), isThere(), numberOfLayers(), and theDetIds.
|
inlineoverridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 28 of file MTDGeometry.h.
References theDets.
const MTDGeometry::DetContainer & MTDGeometry::detsBTL | ( | ) | const |
const MTDGeometry::DetContainer & MTDGeometry::detsETL | ( | ) | const |
|
inlineoverridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 26 of file MTDGeometry.h.
References theDetTypes.
|
inlineoverridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 29 of file MTDGeometry.h.
References theDetUnitIds.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildGeomDet().
|
inlineoverridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 27 of file MTDGeometry.h.
References theDetUnits.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildGeomDet(), MTDCPEBase::fillDetParams(), setEndsetDU(), and setOffsetDU().
|
inline |
void MTDGeometry::fillTestMap | ( | const GeometricTimingDet * | gd | ) |
Definition at line 192 of file MTDGeometry.cc.
References GeometricTimingDet::bounds(), GeometricTimingDet::geographicalId(), moduleType(), Skims_PA_cff::name, GeometricTimingDet::name(), AlCaHLTBitMon_QueryRunRegistry::string, OrderedSet::t, groupFilesInBlocks::temp, theDetTypetList, and Calorimetry_cff::thickness.
Referenced by MTDGeometry(), and setEndsetDU().
|
private |
Definition at line 104 of file MTDGeometry.cc.
References theBTLDets, theDetIds, theDets, theDetTypes, theDetUnitIds, theDetUnits, and theETLDets.
const GeomDetEnumerators::SubDetector MTDGeometry::geomDetSubDetector | ( | int | subdet | ) | const |
Definition at line 168 of file MTDGeometry.cc.
References Exception, and theSubDetTypeMap.
Referenced by detIds(), isThere(), and MTDGeometry().
float MTDGeometry::getDetectorThickness | ( | DetId | detid | ) | const |
Definition at line 222 of file MTDGeometry.cc.
References DetId::rawId(), and theDetTypetList.
Referenced by trackerDet().
MTDGeometry::ModuleType MTDGeometry::getDetectorType | ( | DetId | detid | ) | const |
Definition at line 212 of file MTDGeometry.cc.
References DetId::rawId(), theDetTypetList, and UNKNOWN.
Referenced by trackerDet().
|
overridevirtual |
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 160 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), and theMap.
Referenced by EtlDigiHitsValidation::analyze(), EtlRecHitsValidation::analyze(), BtlDigiHitsValidation::analyze(), EtlSimHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlRecHitsValidation::analyze(), ETLDetLayerGeometryBuilder::buildLayer(), BTLDetLayerGeometryBuilder::buildLayers(), detIds(), ETLDeviceSim::getHitsResponse(), BTLTileDeviceSim::getHitsResponse(), BTLBarDeviceSim::getHitsResponse(), MTDTimeCalib::getTimeCalib(), and MTDThresholdClusterizer::setup().
|
overridevirtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 152 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), and theMapUnit.
Referenced by detIds(), and MTDTrackingRecHitProducer::run().
bool MTDGeometry::isThere | ( | GeomDetEnumerators::SubDetector | subdet | ) | const |
Definition at line 184 of file MTDGeometry.cc.
References geomDetSubDetector(), and mps_fire::i.
Referenced by detIds().
MTDGeometry::ModuleType MTDGeometry::moduleType | ( | const std::string & | name | ) | const |
Definition at line 231 of file MTDGeometry.cc.
References BTL, ETL, and UNKNOWN.
Referenced by fillTestMap(), and setEndsetDU().
unsigned int MTDGeometry::numberOfLayers | ( | int | subdet | ) | const |
Definition at line 176 of file MTDGeometry.cc.
References Exception, and theNumberOfLayers.
Referenced by detIds(), and MTDGeometry().
|
inline |
|
inline |
Definition at line 42 of file MTDGeometry.h.
References detUnits(), fillTestMap(), moduleType(), Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and theEndsetDU.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel().
|
inline |
Definition at line 41 of file MTDGeometry.h.
References detUnits(), and theOffsetDU.
Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel().
|
inline |
Definition at line 47 of file MTDGeometry.h.
References detsBTL(), detsETL(), getDetectorThickness(), getDetectorType(), MTDGeometry(), and theTrackerDet.
|
friend |
Aligner has access to map.
Definition at line 70 of file MTDGeometry.h.
|
friend |
Definition at line 58 of file MTDGeometry.h.
|
private |
Definition at line 82 of file MTDGeometry.h.
Referenced by addDet(), detsBTL(), and finalize().
|
private |
Definition at line 78 of file MTDGeometry.h.
Referenced by addDetId(), detIds(), and finalize().
|
private |
Definition at line 76 of file MTDGeometry.h.
Referenced by addDet(), dets(), finalize(), and ~MTDGeometry().
|
private |
Definition at line 72 of file MTDGeometry.h.
Referenced by addType(), detTypes(), finalize(), and ~MTDGeometry().
|
private |
Definition at line 87 of file MTDGeometry.h.
Referenced by fillTestMap(), getDetectorThickness(), getDetectorType(), and MTDGeometry().
|
private |
Definition at line 77 of file MTDGeometry.h.
Referenced by addDetUnitId(), detUnitIds(), and finalize().
|
private |
Definition at line 73 of file MTDGeometry.h.
Referenced by addDetUnit(), detUnits(), and finalize().
|
private |
Definition at line 75 of file MTDGeometry.h.
Referenced by endsetDU(), and setEndsetDU().
|
private |
Definition at line 83 of file MTDGeometry.h.
Referenced by addDet(), detsETL(), and finalize().
|
private |
Definition at line 80 of file MTDGeometry.h.
|
private |
Definition at line 79 of file MTDGeometry.h.
Referenced by addDetUnit(), and idToDetUnit().
|
private |
Definition at line 86 of file MTDGeometry.h.
Referenced by MTDGeometry(), and numberOfLayers().
|
private |
Definition at line 74 of file MTDGeometry.h.
Referenced by offsetDU(), and setOffsetDU().
|
private |
Definition at line 85 of file MTDGeometry.h.
Referenced by geomDetSubDetector(), and MTDGeometry().
|
private |
Definition at line 67 of file MTDGeometry.h.
Referenced by trackerDet().