#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=nullptr) | |
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 108 of file MTDGeometry.cc.
References ztail::d, theDets, and theDetTypes.
|
explicitprivate |
Definition at line 42 of file MTDGeometry.cc.
References cms::cuda::assert(), GeometricTimingDet::components(), hcal_dqm_sourceclient-live_cfg::debugstr, TauDecayModes::dec, GeometricTimingDet::deepComponents(), fillTestMap(), geomDetSubDetector(), mps_fire::i, GeomDetEnumerators::invalidDet, LogTrace, MTDDetId::mtdSubDetector(), numberOfLayers(), jetUpdater_cfi::sort, theDetTypetList, theNumberOfLayers, and theSubDetTypeMap.
|
private |
Definition at line 139 of file MTDGeometry.cc.
References MTDDetId::BTL, MTDDetId::ETL, triggerObjects_cff::id, AlCaHLTBitMon_ParallelJobs::p, theBTLDets, theDets, theETLDets, and theMap.
|
private |
Definition at line 157 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, and theDetIds.
|
private |
Definition at line 130 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, theDetUnits, and theMapUnit.
|
private |
Definition at line 137 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, and theDetUnitIds.
|
private |
Definition at line 126 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, and theDetTypes.
|
inlineoverridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 30 of file MTDGeometry.h.
References 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 |
Definition at line 161 of file MTDGeometry.cc.
References theETLDets.
Referenced by ETLDetLayerGeometryBuilder::buildLayerNew().
|
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.
|
inlineoverridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 27 of file MTDGeometry.h.
References theDetUnits.
Referenced by MTDCPEBase::MTDCPEBase(), setEndsetDU(), and setOffsetDU().
|
inline |
void MTDGeometry::fillTestMap | ( | const GeometricTimingDet * | gd | ) |
Definition at line 203 of file MTDGeometry.cc.
References GeometricTimingDet::bounds(), GeometricTimingDet::geographicalId(), moduleType(), Skims_PA_cff::name, GeometricTimingDet::name(), AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, groupFilesInBlocks::temp, theDetTypetList, and Calorimetry_cff::thickness.
Referenced by MTDGeometry().
|
private |
Definition at line 115 of file MTDGeometry.cc.
References theBTLDets, theDetIds, theDets, theDetTypes, theDetUnitIds, theDetUnits, and theETLDets.
const GeomDetEnumerators::SubDetector MTDGeometry::geomDetSubDetector | ( | int | subdet | ) | const |
Definition at line 179 of file MTDGeometry.cc.
References Exception, and theSubDetTypeMap.
Referenced by isThere(), and MTDGeometry().
float MTDGeometry::getDetectorThickness | ( | DetId | detid | ) | const |
Definition at line 233 of file MTDGeometry.cc.
References DetId::rawId(), and theDetTypetList.
MTDGeometry::ModuleType MTDGeometry::getDetectorType | ( | DetId | detid | ) | const |
Definition at line 223 of file MTDGeometry.cc.
References DetId::rawId(), theDetTypetList, and UNKNOWN.
|
overridevirtual |
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 171 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::s, and theMap.
Referenced by ETLDetLayerGeometryBuilder::buildLayer(), BTLDetLayerGeometryBuilder::buildLayers(), ETLDeviceSim::getHitsResponse(), BTLDeviceSim::getHitsResponse(), MTDTimeCalib::getTimeCalib(), and ETLElectronicsSim::run().
|
overridevirtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 163 of file MTDGeometry.cc.
References AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::s, and theMapUnit.
bool MTDGeometry::isThere | ( | GeomDetEnumerators::SubDetector | subdet | ) | const |
Definition at line 195 of file MTDGeometry.cc.
References geomDetSubDetector(), and mps_fire::i.
MTDGeometry::ModuleType MTDGeometry::moduleType | ( | const std::string & | name | ) | const |
Definition at line 242 of file MTDGeometry.cc.
References BTL, ETL, Skims_PA_cff::name, and UNKNOWN.
Referenced by fillTestMap().
unsigned int MTDGeometry::numberOfLayers | ( | int | subdet | ) | const |
Definition at line 187 of file MTDGeometry.cc.
References Exception, and theNumberOfLayers.
Referenced by MTDGeometry().
|
inline |
|
inline |
Definition at line 42 of file MTDGeometry.h.
References detUnits(), and theEndsetDU.
|
inline |
Definition at line 41 of file MTDGeometry.h.
References detUnits(), and theOffsetDU.
|
inline |
|
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().