#include <Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h>
Public Member Functions | |
void | addDet (GeomDet *p) |
void | addDetId (DetId p) |
void | addDetUnit (GeomDetUnit *p) |
void | addDetUnitId (DetId p) |
void | addType (GeomDetType *p) |
virtual const DetIdContainer & | detIds () const |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits). | |
virtual const DetContainer & | dets () const |
Returm a vector of all GeomDet (including all GeomDetUnits). | |
const DetContainer & | detsPXB () const |
const DetContainer & | detsPXF () const |
const DetContainer & | detsTEC () const |
const DetContainer & | detsTIB () const |
const DetContainer & | detsTID () const |
const DetContainer & | detsTOB () const |
virtual const DetTypeContainer & | detTypes () const |
Return a vector of all det types. | |
virtual const DetIdContainer & | detUnitIds () const |
Returm a vector of all GeomDetUnit DetIds. | |
virtual const DetUnitContainer & | detUnits () const |
Returm a vector of all GeomDetUnit. | |
virtual const GeomDet * | idToDet (DetId) const |
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits). | |
virtual const GeomDetUnit * | idToDetUnit (DetId) const |
Return the pointer to the GeomDetUnit corresponding to a given DetId. | |
GeometricDet const * | trackerDet () const |
TrackerGeometry (GeometricDet const *gd=0) | |
Private Attributes | |
DetIdContainer | theDetIds |
DetContainer | theDets |
DetTypeContainer | theDetTypes |
DetIdContainer | theDetUnitIds |
DetUnitContainer | theDetUnits |
mapIdToDet | theMap |
mapIdToDetUnit | theMapUnit |
DetContainer | thePXBDets |
DetContainer | thePXFDets |
DetContainer | theTECDets |
DetContainer | theTIBDets |
DetContainer | theTIDDets |
DetContainer | theTOBDets |
GeometricDet const * | theTrackerDet |
Friends | |
class | GeometryAligner |
Aligner has access to map. |
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 35 of file TrackerGeometry.cc.
References GeomDet::geographicalId(), id, 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().
00035 { 00036 theDets.push_back(p); // add to vector 00037 theMap.insert(std::make_pair(p->geographicalId().rawId(),p)); 00038 DetId id(p->geographicalId()); 00039 switch(id.subdetId()){ 00040 case PixelSubdetector::PixelBarrel: 00041 thePXBDets.push_back(p); 00042 break; 00043 case PixelSubdetector::PixelEndcap: 00044 thePXFDets.push_back(p); 00045 break; 00046 case StripSubdetector::TIB: 00047 theTIBDets.push_back(p); 00048 break; 00049 case StripSubdetector::TID: 00050 theTIDDets.push_back(p); 00051 break; 00052 case StripSubdetector::TOB: 00053 theTOBDets.push_back(p); 00054 break; 00055 case StripSubdetector::TEC: 00056 theTECDets.push_back(p); 00057 break; 00058 default: 00059 edm::LogError("TrackerGeometry")<<"ERROR - I was expecting a Tracker Subdetector, I got a "<<id.subdetId(); 00060 } 00061 00062 00063 }
Definition at line 65 of file TrackerGeometry.cc.
References theDetIds.
Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet().
00065 { 00066 theDetIds.push_back(p); 00067 }
void TrackerGeometry::addDetUnit | ( | GeomDetUnit * | p | ) |
Definition at line 26 of file TrackerGeometry.cc.
References GeomDet::geographicalId(), DetId::rawId(), theDetUnits, and theMapUnit.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), TrackerGeomBuilderFromGeometricDet::buildSilicon(), and VisCuTkGeometryTwig::onNewEvent().
00026 { 00027 theDetUnits.push_back(p); // add to vector 00028 theMapUnit.insert(std::make_pair(p->geographicalId().rawId(),p)); 00029 }
Definition at line 31 of file TrackerGeometry.cc.
References theDetUnitIds.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
00031 { 00032 theDetUnitIds.push_back(p); 00033 }
void TrackerGeometry::addType | ( | GeomDetType * | p | ) |
Definition at line 22 of file TrackerGeometry.cc.
References theDetTypes.
Referenced by TrackerGeomBuilderFromGeometricDet::buildPixel(), and TrackerGeomBuilderFromGeometricDet::buildSilicon().
00022 { 00023 theDetTypes.push_back(p); // add to vector 00024 }
const TrackerGeometry::DetIdContainer & TrackerGeometry::detIds | ( | ) | const [virtual] |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits).
Implements TrackingGeometry.
Definition at line 153 of file TrackerGeometry.cc.
References theDetIds.
00154 { 00155 return theDetIds; 00156 }
const TrackerGeometry::DetContainer & TrackerGeometry::dets | ( | ) | const [virtual] |
Returm a vector of all GeomDet (including all GeomDetUnits).
Implements TrackingGeometry.
Definition at line 76 of file TrackerGeometry.cc.
References theDets.
00077 { 00078 return theDets; 00079 }
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXB | ( | ) | const |
Definition at line 82 of file TrackerGeometry.cc.
References thePXBDets.
Referenced by AlignableTracker::AlignableTracker(), and MeasurementTracker::initialize().
00083 { 00084 return thePXBDets; 00085 }
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXF | ( | ) | const |
Definition at line 88 of file TrackerGeometry.cc.
References thePXFDets.
Referenced by AlignableTracker::AlignableTracker(), and MeasurementTracker::initialize().
00089 { 00090 return thePXFDets; 00091 }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTEC | ( | ) | const |
Definition at line 112 of file TrackerGeometry.cc.
References theTECDets.
Referenced by AlignableTracker::AlignableTracker(), and MeasurementTracker::initialize().
00113 { 00114 return theTECDets; 00115 }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTIB | ( | ) | const |
Definition at line 94 of file TrackerGeometry.cc.
References theTIBDets.
Referenced by AlignableTracker::AlignableTracker(), and MeasurementTracker::initialize().
00095 { 00096 return theTIBDets; 00097 }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTID | ( | ) | const |
Definition at line 100 of file TrackerGeometry.cc.
References theTIDDets.
Referenced by AlignableTracker::AlignableTracker(), and MeasurementTracker::initialize().
00101 { 00102 return theTIDDets; 00103 }
const TrackerGeometry::DetContainer & TrackerGeometry::detsTOB | ( | ) | const |
Definition at line 106 of file TrackerGeometry.cc.
References theTOBDets.
Referenced by AlignableTracker::AlignableTracker(), and MeasurementTracker::initialize().
00107 { 00108 return theTOBDets; 00109 }
const TrackerGeometry::DetTypeContainer & TrackerGeometry::detTypes | ( | ) | const [virtual] |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 140 of file TrackerGeometry.cc.
References theDetTypes.
00141 { 00142 return theDetTypes; 00143 }
const TrackerGeometry::DetIdContainer & TrackerGeometry::detUnitIds | ( | ) | const [virtual] |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 147 of file TrackerGeometry.cc.
References theDetUnitIds.
Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), RingMaker::dumpDetIds(), RingMaker::fillPXBGeometryArray(), RingMaker::fillPXFGeometryArray(), RingMaker::fillTECGeometryArray(), RingMaker::fillTIBGeometryArray(), RingMaker::fillTIDGeometryArray(), and RingMaker::fillTOBGeometryArray().
00148 { 00149 return theDetUnitIds; 00150 }
const TrackerGeometry::DetUnitContainer & TrackerGeometry::detUnits | ( | ) | const [virtual] |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 70 of file TrackerGeometry.cc.
References theDetUnits.
Referenced by GeometricSearchTrackerBuilder::build(), VisCuTracker::buildDet(), TrackerGeomBuilderFromGeometricDet::buildGeomDet(), and VisCuTkBuilder::fill().
00071 { 00072 return theDetUnits; 00073 }
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits).
Implements TrackingGeometry.
Definition at line 129 of file TrackerGeometry.cc.
References p, DetId::rawId(), and theMap.
Referenced by SiPixelTrackResidualSource::analyze(), SiPixelRecHitsValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), SiStripRecHitsValid::analyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), SiStripLAProfileBooker::beginJob(), 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(), PixelHitMatcher::compatibleSeeds(), SeedFromNuclearInteraction::construct(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), RoadSearchTrackCandidateMakerAlgorithm::createSeedTrajectory(), BeamProfileFitter::doFit(), LaserAlignment::endJob(), RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory(), RoadSearchCloudMakerAlgorithm::FillPixRecHitsIntoCloud(), RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloudGeneral(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHit(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet(), SiStripElectronAlgo::findElectron(), SiStripFineDelayTLA::findtrackangle(), TripletGenerator::getGlobalPosition(), RecHitsSortedInPhi::Hit::Hit(), LaserHitPairGeneratorFromLayerPair::hitPairs(), NuclearTester::HitPositions(), TripletGenerator::hitTriplets(), TrackerRecHit::init(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectoryFromTriplet(), TripletFilter::isCompatible(), ClusterShapeTrackFilter::isCompatible(), SiStripRecHitConverterAlgorithm::match(), SiTrackerGaussianSmearingRecHitConverter::matchHits(), CompareDetY_plus::operator()(), CompareHitY_plus::operator()(), CompareHitY::operator()(), SortHitsByY::operator()(), SortHitPointersByY::operator()(), CompareDetY_minus::operator()(), SeedFromNuclearInteraction::outerHitPosition(), RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates(), TrackProducerWithSCAssociation::produce(), TrajectorySeedProducer::produce(), ConvBremSeedProducer::produce(), SiStripElectronAlgo::projectPhiBand(), SeedFromGenericPairOrTriplet::qualityFilter(), SimpleTrackRefitter::refitTrack(), TrackInfoProducerAlgorithm::run(), RoadSearchTrackCandidateMakerAlgorithm::run(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), SimpleTrackRefitter::seedMeasurements(), SeedFromNuclearInteraction::setMeasurements(), SiTrackerGaussianSmearingRecHitConverter::smearHits(), SimpleTrackRefitter::startingTSOS(), and LaserDQM::trackerStatistics().
00130 { 00131 mapIdToDet::const_iterator p=theMap.find(s.rawId()); 00132 if (p != theMap.end()) 00133 return (p)->second; 00134 edm::LogError("TrackerGeometry")<<"Invalid DetID: no GeomDet associated"; 00135 GeomDet* geom = 0; 00136 return geom; 00137 }
const GeomDetUnit * TrackerGeometry::idToDetUnit | ( | DetId | ) | const [virtual] |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 118 of file TrackerGeometry.cc.
References p, DetId::rawId(), and theMapUnit.
Referenced by SiStripCalibLorentzAngle::algoBeginJob(), SiStripRecHitsValid::analyze(), SiStripTrackingRecHitsValid::analyze(), SiStripElectronAlgo::coarseHitSelection(), FineDelayHistosUsingDb::computeDelays(), CkfDebugger::det(), RingMaker::determineExtensions(), SiStripFineDelayHit::detId(), DeDxEstimatorProducer::distance(), RoadSearchCloudMakerAlgorithm::FillPixRecHitsIntoCloud(), RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloudGeneral(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProducer::fillTrk(), GlobalHitsProdHist::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), CkfDebugger::nextCorrectHits(), DeDxEstimatorProducer::normalization(), SortByRadius::operator()(), StripCPE::param(), CkfDebugger::position(), CkfDebugger::printSimHits(), SiStripElectronAlgo::projectPhiBand(), SiStripRecHitConverterAlgorithm::run(), and DeDxEstimatorProducer::thickness().
00119 { 00120 mapIdToDetUnit::const_iterator p=theMapUnit.find(s.rawId()); 00121 if (p != theMapUnit.end()) 00122 return (p)->second; 00123 edm::LogError("TrackerGeometry")<<"Invalid DetID: no GeomDetUnit associated"; 00124 GeomDetUnit* geom = 0; 00125 return geom; 00126 }
GeometricDet const * TrackerGeometry::trackerDet | ( | ) | const |
Definition at line 17 of file TrackerGeometry.cc.
References theTrackerDet.
00017 { 00018 return theTrackerDet; 00019 }
friend class GeometryAligner [friend] |
DetIdContainer TrackerGeometry::theDetIds [private] |
DetContainer TrackerGeometry::theDets [private] |
DetTypeContainer TrackerGeometry::theDetTypes [private] |
DetIdContainer TrackerGeometry::theDetUnitIds [private] |
DetUnitContainer TrackerGeometry::theDetUnits [private] |
mapIdToDet TrackerGeometry::theMap [private] |
mapIdToDetUnit TrackerGeometry::theMapUnit [private] |
DetContainer TrackerGeometry::thePXBDets [private] |
DetContainer TrackerGeometry::thePXFDets [private] |
DetContainer TrackerGeometry::theTECDets [private] |
DetContainer TrackerGeometry::theTIBDets [private] |
DetContainer TrackerGeometry::theTIDDets [private] |
DetContainer TrackerGeometry::theTOBDets [private] |
GeometricDet const* TrackerGeometry::theTrackerDet [private] |