CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

TrackerGeometry Class Reference

#include <TrackerGeometry.h>

Inheritance diagram for TrackerGeometry:
TrackingGeometry

List of all members.

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 DetIdContainerdetIds () const
 Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
virtual const DetContainerdets () const
 Returm a vector of all GeomDet (including all GeomDetUnits)
const DetContainerdetsPXB () const
const DetContainerdetsPXF () const
const DetContainerdetsTEC () const
const DetContainerdetsTIB () const
const DetContainerdetsTID () const
const DetContainerdetsTOB () const
virtual const DetTypeContainerdetTypes () const
 Return a vector of all det types.
virtual const DetIdContainerdetUnitIds () const
 Returm a vector of all GeomDetUnit DetIds.
virtual const DetUnitContainerdetUnits () const
 Returm a vector of all GeomDetUnit.
virtual const GeomDetidToDet (DetId) const
virtual const GeomDetUnitidToDetUnit (DetId) const
 Return the pointer to the GeomDetUnit corresponding to a given DetId.
GeometricDet const * trackerDet () const
 TrackerGeometry (GeometricDet const *gd=0)
virtual ~TrackerGeometry ()

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.

Detailed Description

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.


Constructor & Destructor Documentation

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;
}

Member Function Documentation

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)
void TrackerGeometry::addDetUnitId ( DetId  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
const TrackerGeometry::DetContainer & TrackerGeometry::detsPXF ( ) const
const TrackerGeometry::DetContainer & TrackerGeometry::detsTEC ( ) const
const TrackerGeometry::DetContainer & TrackerGeometry::detsTIB ( ) const
const TrackerGeometry::DetContainer & TrackerGeometry::detsTID ( ) const
const TrackerGeometry::DetContainer & TrackerGeometry::detsTOB ( ) const
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]
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;
}
const GeomDet * TrackerGeometry::idToDet ( DetId  ) const [virtual]

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().

{
  mapIdToDet::const_iterator p=theMap.find(s.rawId());
  if (p != theMap.end())
    return (p)->second;
  edm::LogError("TrackerGeometry")<<"Invalid DetID: no GeomDet associated";
  GeomDet* geom = 0;
  return geom;
}
const GeomDetUnit * TrackerGeometry::idToDetUnit ( DetId  ) const [virtual]
GeometricDet const * TrackerGeometry::trackerDet ( ) const

Definition at line 23 of file TrackerGeometry.cc.

References theTrackerDet.

                                                       {
  return  theTrackerDet;
}

Friends And Related Function Documentation

friend class GeometryAligner [friend]

Aligner has access to map.

Definition at line 65 of file TrackerGeometry.h.


Member Data Documentation

Definition at line 71 of file TrackerGeometry.h.

Referenced by addDetId(), and detIds().

Definition at line 69 of file TrackerGeometry.h.

Referenced by addDet(), dets(), and ~TrackerGeometry().

Definition at line 67 of file TrackerGeometry.h.

Referenced by addType(), detTypes(), and ~TrackerGeometry().

Definition at line 70 of file TrackerGeometry.h.

Referenced by addDetUnitId(), and detUnitIds().

Definition at line 68 of file TrackerGeometry.h.

Referenced by addDetUnit(), and detUnits().

Definition at line 73 of file TrackerGeometry.h.

Referenced by addDet(), and idToDet().

Definition at line 72 of file TrackerGeometry.h.

Referenced by addDetUnit(), and idToDetUnit().

Definition at line 75 of file TrackerGeometry.h.

Referenced by addDet(), and detsPXB().

Definition at line 76 of file TrackerGeometry.h.

Referenced by addDet(), and detsPXF().

Definition at line 80 of file TrackerGeometry.h.

Referenced by addDet(), and detsTEC().

Definition at line 77 of file TrackerGeometry.h.

Referenced by addDet(), and detsTIB().

Definition at line 78 of file TrackerGeometry.h.

Referenced by addDet(), and detsTID().

Definition at line 79 of file TrackerGeometry.h.

Referenced by addDet(), and detsTOB().

Definition at line 62 of file TrackerGeometry.h.

Referenced by trackerDet().