#include <TrackerGeometry.h>
A specific Tracker Builder which builds a Tracker from a list of DetUnits. Pattern recognition is used to discover layers, rings etc.
Definition at line 26 of file TrackerGeometry.h.
TrackerGeometry::TrackerGeometry | ( | GeometricDet const * | gd = 0 | ) | [explicit] |
Definition at line 16 of file TrackerGeometry.cc.
: theTrackerDet(gd){}
TrackerGeometry::~TrackerGeometry | ( | ) | [virtual] |
Definition at line 18 of file TrackerGeometry.cc.
References theDets, and theDetTypes.
{ for (DetContainer::iterator it = theDets.begin(), ed = theDets.end(); it != ed; ++it) delete *it; for (DetTypeContainer::iterator it = theDetTypes.begin(), ed = theDetTypes.end(); it != ed; ++it) delete *it; }
void TrackerGeometry::addDet | ( | GeomDet * | p | ) |
Definition at line 41 of file TrackerGeometry.cc.
References GeomDet::geographicalId(), L1TEmulatorMonitor_cff::p, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::rawId(), StripSubdetector::TEC, theDets, theMap, thePXBDets, thePXFDets, theTECDets, theTIBDets, theTIDDets, theTOBDets, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet().
{ theDets.push_back(p); // add to vector theMap.insert(std::make_pair(p->geographicalId().rawId(),p)); DetId id(p->geographicalId()); switch(id.subdetId()){ case PixelSubdetector::PixelBarrel: thePXBDets.push_back(p); break; case PixelSubdetector::PixelEndcap: thePXFDets.push_back(p); break; case StripSubdetector::TIB: theTIBDets.push_back(p); break; case StripSubdetector::TID: theTIDDets.push_back(p); break; case StripSubdetector::TOB: theTOBDets.push_back(p); break; case StripSubdetector::TEC: theTECDets.push_back(p); break; default: edm::LogError("TrackerGeometry")<<"ERROR - I was expecting a Tracker Subdetector, I got a "<<id.subdetId(); } }
void TrackerGeometry::addDetId | ( | DetId | p | ) |
Definition at line 71 of file TrackerGeometry.cc.
References theDetIds.
Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet().
{ theDetIds.push_back(p); }
void TrackerGeometry::addDetUnit | ( | GeomDetUnit * | p | ) |
Definition at line 32 of file TrackerGeometry.cc.
References GeomDet::geographicalId(), L1TEmulatorMonitor_cff::p, DetId::rawId(), theDetUnits, and theMapUnit.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
{ theDetUnits.push_back(p); // add to vector theMapUnit.insert(std::make_pair(p->geographicalId().rawId(),p)); }
void TrackerGeometry::addDetUnitId | ( | DetId | p | ) |
Definition at line 37 of file TrackerGeometry.cc.
References theDetUnitIds.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
{ theDetUnitIds.push_back(p); }
void TrackerGeometry::addType | ( | GeomDetType * | p | ) |
Definition at line 28 of file TrackerGeometry.cc.
References theDetTypes.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
{ theDetTypes.push_back(p); // add to vector }
const TrackerGeometry::DetIdContainer & TrackerGeometry::detIds | ( | ) | const [virtual] |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 159 of file TrackerGeometry.cc.
References theDetIds.
Referenced by TrackerOfflineValidationSummary::analyze(), and TrackerOfflineValidation::checkBookHists().
{ return theDetIds; }
const TrackerGeometry::DetContainer & TrackerGeometry::dets | ( | ) | const [virtual] |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 82 of file TrackerGeometry.cc.
References theDets.
{ return theDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXB | ( | ) | const |
Definition at line 88 of file TrackerGeometry.cc.
References thePXBDets.
Referenced by FWRecoGeometryESProducer::addPixelBarrelGeometry(), and AlignableTracker::AlignableTracker().
{ return thePXBDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXF | ( | ) | const |
Definition at line 94 of file TrackerGeometry.cc.
References thePXFDets.
Referenced by FWRecoGeometryESProducer::addPixelForwardGeometry(), and AlignableTracker::AlignableTracker().
{ return thePXFDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTEC | ( | ) | const |
Definition at line 118 of file TrackerGeometry.cc.
References theTECDets.
Referenced by FWRecoGeometryESProducer::addTECGeometry(), and AlignableTracker::AlignableTracker().
{ return theTECDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTIB | ( | ) | const |
Definition at line 100 of file TrackerGeometry.cc.
References theTIBDets.
Referenced by FWRecoGeometryESProducer::addTIBGeometry(), and AlignableTracker::AlignableTracker().
{ return theTIBDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTID | ( | ) | const |
Definition at line 106 of file TrackerGeometry.cc.
References theTIDDets.
Referenced by FWRecoGeometryESProducer::addTIDGeometry(), and AlignableTracker::AlignableTracker().
{ return theTIDDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTOB | ( | ) | const |
Definition at line 112 of file TrackerGeometry.cc.
References theTOBDets.
Referenced by FWRecoGeometryESProducer::addTOBGeometry(), and AlignableTracker::AlignableTracker().
{ return theTOBDets; }
const TrackerGeometry::DetTypeContainer & TrackerGeometry::detTypes | ( | ) | const [virtual] |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 146 of file TrackerGeometry.cc.
References theDetTypes.
{ return theDetTypes; }
const TrackerGeometry::DetIdContainer & TrackerGeometry::detUnitIds | ( | ) | const [virtual] |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 153 of file TrackerGeometry.cc.
References theDetUnitIds.
Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), TrackerOfflineValidation::checkBookHists(), SiStripMonitorMuonHLT::createMEs(), RingMaker::dumpDetIds(), RingMaker::fillPXBGeometryArray(), RingMaker::fillPXFGeometryArray(), TkAlCaRecoMonitor::fillRawIdMap(), RingMaker::fillTECGeometryArray(), RingMaker::fillTIBGeometryArray(), RingMaker::fillTIDGeometryArray(), and RingMaker::fillTOBGeometryArray().
{ return theDetUnitIds; }
const TrackerGeometry::DetUnitContainer & TrackerGeometry::detUnits | ( | ) | const [virtual] |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 76 of file TrackerGeometry.cc.
References theDetUnits.
Referenced by GeometricSearchTrackerBuilder::build(), and TrackerGeomBuilderFromGeometricDet::buildGeomDet().
{ return theDetUnits; }
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 135 of file TrackerGeometry.cc.
References relativeConstraints::geom, L1TEmulatorMonitor_cff::p, DetId::rawId(), and theMap.
Referenced by FWRecoGeometryESProducer::addTECGeometry(), FWRecoGeometryESProducer::addTIBGeometry(), FWRecoGeometryESProducer::addTIDGeometry(), FWRecoGeometryESProducer::addTOBGeometry(), SiPixelHitEfficiencySource::analyze(), SiPixelMuonHLT::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelRecHitsValid::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), SiStripMonitorMuonHLT::analyze(), SiStripRecHitsValid::analyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripMonitorMuonHLT::analyzeOnTrackClusters(), SiStripLAProfileBooker::beginRun(), SiPixelErrorsDigisToCalibDigis::bookDQMHistoPlaquetteSummary2D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D(), PixelRodBuilder::build(), TIDRingBuilder::build(), TECWedgeBuilder::build(), TOBRodBuilder::build(), PixelBladeBuilder::build(), SeedFromGenericPairOrTriplet::buildSeed(), RoadSearchSeedFinderAlgorithm::calculateCircleSeedsFromHits(), RoadSearchSeedFinderAlgorithm::calculateCircleSeedsFromRingsOneInnerOneOuter(), RoadSearchSeedFinderAlgorithm::calculateCircleSeedsFromRingsOneInnerTwoOuter(), RoadSearchSeedFinderAlgorithm::calculateCircleSeedsFromRingsTwoInnerOneOuter(), SiStripFineDelayHit::closestCluster(), SeedFromNuclearInteraction::construct(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), RoadSearchTrackCandidateMakerAlgorithm::createSeedTrajectory(), LaserAlignment::endRun(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory(), SiPixelClusterModule::fill(), TkAlCaRecoMonitor::fillHitmaps(), QcdLowPtDQM::fillPixels(), RoadSearchCloudMakerAlgorithm::FillPixRecHitsIntoCloud(), RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloudGeneral(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), HLTPixelClusterShapeFilter::filter(), reco::CentralityProducer::filter(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHit(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet(), SiStripElectronAlgo::findElectron(), SiStripFineDelayTLA::findtrackangle(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), SiPixelQuality::getBadRocPositions(), NuclearTester::HitPositions(), TrackerRecHit::init(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectoryFromTriplet(), SiTrackerGaussianSmearingRecHitConverter::matchHits(), SiStripMonitorMuonHLT::Normalizer(), CompareDetY_plus::operator()(), CompareHitY_plus::operator()(), CompareHitY::operator()(), SortHitsByY::operator()(), SortHitPointersByY::operator()(), CompareDetY_minus::operator()(), SeedFromNuclearInteraction::outerHitPosition(), RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates(), HIPixelClusterVtxProducer::produce(), TrackCandidateProducer::produce(), PixelClusterSelectorTopBottom::produce(), TrajectorySeedProducer::produce(), ConvBremSeedProducer::produce(), StripClusterSelectorTopBottom::produce(), SiStripElectronAlgo::projectPhiBand(), SimpleTrackRefitter::refitTrack(), TrackInfoProducerAlgorithm::run(), RoadSearchTrackCandidateMakerAlgorithm::run(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), SimpleTrackRefitter::seedMeasurements(), SeedFromNuclearInteraction::setMeasurements(), SiTrackerGaussianSmearingRecHitConverter::smearHits(), SimpleTrackRefitter::startingTSOS(), LaserAlignment::testRoutine(), FastTSGFromPropagation::trackerSeeds(), LaserDQM::trackerStatistics(), and TrajectoryAtInvalidHit::TrajectoryAtInvalidHit().
const GeomDetUnit * TrackerGeometry::idToDetUnit | ( | DetId | ) | const [virtual] |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 124 of file TrackerGeometry.cc.
References relativeConstraints::geom, L1TEmulatorMonitor_cff::p, DetId::rawId(), and theMapUnit.
Referenced by FWRecoGeometryESProducer::addPixelBarrelGeometry(), FWRecoGeometryESProducer::addPixelForwardGeometry(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripRecHitsValid::analyze(), SiStripTrackingRecHitsValid::analyze(), SiStripElectronAlgo::coarseHitSelection(), FineDelayHistosUsingDb::computeDelays(), CkfDebugger::det(), RingMaker::determineExtensions(), SiStripFineDelayHit::detId(), RoadSearchCloudMakerAlgorithm::FillPixRecHitsIntoCloud(), RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloudGeneral(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalHitsProdHist::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), DeDxDiscriminatorLearner::Learn(), CkfDebugger::nextCorrectHits(), SiStripMonitorMuonHLT::Normalizer(), StripCPE::param(), CkfDebugger::position(), CkfDebugger::printSimHits(), SiClusterTranslator::produce(), SiStripElectronAlgo::projectPhiBand(), and ShallowGainCalibration::thickness().
{ mapIdToDetUnit::const_iterator p=theMapUnit.find(s.rawId()); if (p != theMapUnit.end()) return (p)->second; edm::LogError("TrackerGeometry")<<"Invalid DetID: no GeomDetUnit associated"; GeomDetUnit* geom = 0; return geom; }
GeometricDet const * TrackerGeometry::trackerDet | ( | ) | const |
Definition at line 23 of file TrackerGeometry.cc.
References theTrackerDet.
{ return theTrackerDet; }
friend class GeometryAligner [friend] |
Aligner has access to map.
Definition at line 65 of file TrackerGeometry.h.
DetIdContainer TrackerGeometry::theDetIds [private] |
Definition at line 71 of file TrackerGeometry.h.
Referenced by addDetId(), and detIds().
DetContainer TrackerGeometry::theDets [private] |
Definition at line 69 of file TrackerGeometry.h.
Referenced by addDet(), dets(), and ~TrackerGeometry().
DetTypeContainer TrackerGeometry::theDetTypes [private] |
Definition at line 67 of file TrackerGeometry.h.
Referenced by addType(), detTypes(), and ~TrackerGeometry().
DetIdContainer TrackerGeometry::theDetUnitIds [private] |
Definition at line 70 of file TrackerGeometry.h.
Referenced by addDetUnitId(), and detUnitIds().
DetUnitContainer TrackerGeometry::theDetUnits [private] |
Definition at line 68 of file TrackerGeometry.h.
Referenced by addDetUnit(), and detUnits().
mapIdToDet TrackerGeometry::theMap [private] |
Definition at line 73 of file TrackerGeometry.h.
mapIdToDetUnit TrackerGeometry::theMapUnit [private] |
Definition at line 72 of file TrackerGeometry.h.
Referenced by addDetUnit(), and idToDetUnit().
DetContainer TrackerGeometry::thePXBDets [private] |
Definition at line 75 of file TrackerGeometry.h.
DetContainer TrackerGeometry::thePXFDets [private] |
Definition at line 76 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTECDets [private] |
Definition at line 80 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTIBDets [private] |
Definition at line 77 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTIDDets [private] |
Definition at line 78 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTOBDets [private] |
Definition at line 79 of file TrackerGeometry.h.
GeometricDet const* TrackerGeometry::theTrackerDet [private] |
Definition at line 62 of file TrackerGeometry.h.
Referenced by trackerDet().