#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 27 of file TrackerGeometry.h.
Definition at line 29 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 43 of file TrackerGeometry.cc.
References GeomDet::geographicalId(), AlCaHLTBitMon_ParallelJobs::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 73 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(), AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), GeomDet::setIndex(), theDetUnits, and theMapUnit.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
{ // set index p->setIndex(theDetUnits.size()); theDetUnits.push_back(p); // add to vector theMapUnit.insert(std::make_pair(p->geographicalId().rawId(),p)); }
void TrackerGeometry::addDetUnitId | ( | DetId | p | ) |
Definition at line 39 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 161 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 84 of file TrackerGeometry.cc.
References theDets.
{ return theDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXB | ( | ) | const |
Definition at line 90 of file TrackerGeometry.cc.
References thePXBDets.
Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), FWRecoGeometryESProducer::addPixelBarrelGeometry(), AlignableTracker::AlignableTracker(), and MeasurementTrackerImpl::initialize().
{ return thePXBDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXF | ( | ) | const |
Definition at line 96 of file TrackerGeometry.cc.
References thePXFDets.
Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), FWRecoGeometryESProducer::addPixelForwardGeometry(), AlignableTracker::AlignableTracker(), and MeasurementTrackerImpl::initialize().
{ return thePXFDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTEC | ( | ) | const |
Definition at line 120 of file TrackerGeometry.cc.
References theTECDets.
Referenced by FWRecoGeometryESProducer::addTECGeometry(), FWTGeoRecoGeometryESProducer::addTECGeometry(), AlignableTracker::AlignableTracker(), and MeasurementTrackerImpl::initialize().
{ return theTECDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTIB | ( | ) | const |
Definition at line 102 of file TrackerGeometry.cc.
References theTIBDets.
Referenced by FWRecoGeometryESProducer::addTIBGeometry(), FWTGeoRecoGeometryESProducer::addTIBGeometry(), AlignableTracker::AlignableTracker(), and MeasurementTrackerImpl::initialize().
{ return theTIBDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTID | ( | ) | const |
Definition at line 108 of file TrackerGeometry.cc.
References theTIDDets.
Referenced by FWTGeoRecoGeometryESProducer::addTIDGeometry(), FWRecoGeometryESProducer::addTIDGeometry(), AlignableTracker::AlignableTracker(), and MeasurementTrackerImpl::initialize().
{ return theTIDDets; }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTOB | ( | ) | const |
Definition at line 114 of file TrackerGeometry.cc.
References theTOBDets.
Referenced by FWTGeoRecoGeometryESProducer::addTOBGeometry(), FWRecoGeometryESProducer::addTOBGeometry(), AlignableTracker::AlignableTracker(), and MeasurementTrackerImpl::initialize().
{ return theTOBDets; }
const TrackerGeometry::DetTypeContainer & TrackerGeometry::detTypes | ( | ) | const [virtual] |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 148 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 155 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 78 of file TrackerGeometry.cc.
References theDetUnits.
Referenced by TrackerGeometryIntoNtuples::analyze(), GeometricSearchTrackerBuilder::build(), TrackerGeomBuilderFromGeometricDet::buildGeomDet(), StripCPE::fillParams(), setEndsetDU(), and setOffsetDU().
{ return theDetUnits; }
unsigned int TrackerGeometry::endsetDU | ( | SubDetector | sid | ) | const [inline] |
Definition at line 51 of file TrackerGeometry.h.
References evf::utils::sid, and theEndsetDU.
{ return theEndsetDU[sid];}
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 137 of file TrackerGeometry.cc.
References relativeConstraints::geom, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), and theMap.
Referenced by FWRecoGeometryESProducer::addTECGeometry(), FWTGeoRecoGeometryESProducer::addTECGeometry(), FWRecoGeometryESProducer::addTIBGeometry(), FWTGeoRecoGeometryESProducer::addTIBGeometry(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), FWRecoGeometryESProducer::addTIDGeometry(), FWTGeoRecoGeometryESProducer::addTOBGeometry(), FWRecoGeometryESProducer::addTOBGeometry(), SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelMuonHLT::analyze(), SiPixelRecHitsValid::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiStripMonitorMuonHLT::analyze(), SiPixelLorentzAngle::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(), reco::CentralityProducer::filter(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHit(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet(), SiStripElectronAlgo::findElectron(), SiStripFineDelayTLA::findtrackangle(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), SiPixelQuality::getBadRocPositions(), NuclearTester::HitPositions(), HLTPixelClusterShapeFilter::hltFilter(), TrackerRecHit::init(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectoryFromTriplet(), SiTrackerGaussianSmearingRecHitConverter::matchHits(), SiStripMonitorMuonHLT::Normalizer(), CompareDetY_plus::operator()(), CompareHitY_plus::operator()(), CompareHitY::operator()(), SortHitsByY::operator()(), SortHitPointersByY::operator()(), TrackMerger::MomentumSort::operator()(), CompareDetY_minus::operator()(), SeedFromNuclearInteraction::outerHitPosition(), RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates(), HIPixelClusterVtxProducer::produce(), TrackCandidateProducer::produce(), PixelClusterSelectorTopBottom::produce(), TrajectorySeedProducer::produce(), ConvBremSeedProducer::produce(), StripClusterSelectorTopBottom::produce(), SiStripElectronAlgo::projectPhiBand(), TrackInfoProducerAlgorithm::run(), RoadSearchTrackCandidateMakerAlgorithm::run(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), SeedFromNuclearInteraction::setMeasurements(), SiTrackerGaussianSmearingRecHitConverter::smearHits(), 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 126 of file TrackerGeometry.cc.
References relativeConstraints::geom, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), and theMapUnit.
Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), FWRecoGeometryESProducer::addPixelBarrelGeometry(), FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), FWRecoGeometryESProducer::addPixelForwardGeometry(), SiStripCalibLorentzAngle::algoBeginJob(), SiPixelHitEfficiencySource::analyze(), 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(), 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; }
unsigned int TrackerGeometry::offsetDU | ( | SubDetector | sid | ) | const [inline] |
Definition at line 50 of file TrackerGeometry.h.
References evf::utils::sid, and theOffsetDU.
Referenced by StripCPE::fillParams().
{ return theOffsetDU[sid];}
void TrackerGeometry::setEndsetDU | ( | SubDetector | sid | ) | [inline] |
Definition at line 54 of file TrackerGeometry.h.
References detUnits(), evf::utils::sid, and theEndsetDU.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
{ theEndsetDU[sid]=detUnits().size();}
void TrackerGeometry::setOffsetDU | ( | SubDetector | sid | ) | [inline] |
Definition at line 53 of file TrackerGeometry.h.
References detUnits(), evf::utils::sid, and theOffsetDU.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
{ theOffsetDU[sid]=detUnits().size();}
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 70 of file TrackerGeometry.h.
DetIdContainer TrackerGeometry::theDetIds [private] |
Definition at line 78 of file TrackerGeometry.h.
Referenced by addDetId(), and detIds().
DetContainer TrackerGeometry::theDets [private] |
Definition at line 76 of file TrackerGeometry.h.
Referenced by addDet(), dets(), and ~TrackerGeometry().
DetTypeContainer TrackerGeometry::theDetTypes [private] |
Definition at line 72 of file TrackerGeometry.h.
Referenced by addType(), detTypes(), and ~TrackerGeometry().
DetIdContainer TrackerGeometry::theDetUnitIds [private] |
Definition at line 77 of file TrackerGeometry.h.
Referenced by addDetUnitId(), and detUnitIds().
DetUnitContainer TrackerGeometry::theDetUnits [private] |
Definition at line 73 of file TrackerGeometry.h.
Referenced by addDetUnit(), and detUnits().
unsigned int TrackerGeometry::theEndsetDU[6] [private] |
Definition at line 75 of file TrackerGeometry.h.
Referenced by endsetDU(), and setEndsetDU().
mapIdToDet TrackerGeometry::theMap [private] |
Definition at line 80 of file TrackerGeometry.h.
mapIdToDetUnit TrackerGeometry::theMapUnit [private] |
Definition at line 79 of file TrackerGeometry.h.
Referenced by addDetUnit(), and idToDetUnit().
unsigned int TrackerGeometry::theOffsetDU[6] [private] |
Definition at line 74 of file TrackerGeometry.h.
Referenced by offsetDU(), and setOffsetDU().
DetContainer TrackerGeometry::thePXBDets [private] |
Definition at line 82 of file TrackerGeometry.h.
DetContainer TrackerGeometry::thePXFDets [private] |
Definition at line 83 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTECDets [private] |
Definition at line 87 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTIBDets [private] |
Definition at line 84 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTIDDets [private] |
Definition at line 85 of file TrackerGeometry.h.
DetContainer TrackerGeometry::theTOBDets [private] |
Definition at line 86 of file TrackerGeometry.h.
GeometricDet const* TrackerGeometry::theTrackerDet [private] |
Definition at line 67 of file TrackerGeometry.h.
Referenced by trackerDet().