#include <GeometricSearchTracker.h>
Public Member Functions | |
std::vector< DetLayer * > const & | allLayers () const |
std::vector< BarrelDetLayer * > const & | barrelLayers () const |
const DetLayer * | detLayer (const DetId &id) const |
obsolete method. Use idToLayer() instead. | |
std::vector< ForwardDetLayer * > const & | forwardLayers () const |
GeometricSearchTracker (const std::vector< BarrelDetLayer * > &pxlBar, const std::vector< BarrelDetLayer * > &tib, const std::vector< BarrelDetLayer * > &tob, const std::vector< ForwardDetLayer * > &negPxlFwd, const std::vector< ForwardDetLayer * > &negTid, const std::vector< ForwardDetLayer * > &negTec, const std::vector< ForwardDetLayer * > &posPxlFwd, const std::vector< ForwardDetLayer * > &posTid, const std::vector< ForwardDetLayer * > &posTec) | |
virtual const DetLayer * | idToLayer (const DetId &detId) const |
Give the DetId of a module, returns the pointer to the corresponding DetLayer. | |
std::vector< ForwardDetLayer * > const & | negForwardLayers () const |
std::vector< ForwardDetLayer * > const & | negPixelForwardLayers () const |
std::vector< ForwardDetLayer * > const & | negTecLayers () const |
std::vector< ForwardDetLayer * > const & | negTidLayers () const |
std::vector< BarrelDetLayer * > const & | pixelBarrelLayers () const |
std::vector< ForwardDetLayer * > const & | posForwardLayers () const |
std::vector< ForwardDetLayer * > const & | posPixelForwardLayers () const |
std::vector< ForwardDetLayer * > const & | posTecLayers () const |
std::vector< ForwardDetLayer * > const & | posTidLayers () const |
std::vector< BarrelDetLayer * > const & | tibLayers () const |
std::vector< BarrelDetLayer * > const & | tobLayers () const |
virtual | ~GeometricSearchTracker () |
Private Attributes | |
std::vector< DetLayer * > | theAllLayers |
std::vector< BarrelDetLayer * > | theBarrelLayers |
std::vector< ForwardDetLayer * > | theForwardLayers |
std::vector< ForwardDetLayer * > | theNegForwardLayers |
std::vector< ForwardDetLayer * > | theNegPixelForwardLayers |
std::vector< ForwardDetLayer * > | theNegTecLayers |
std::vector< ForwardDetLayer * > | theNegTidLayers |
std::vector< BarrelDetLayer * > | thePixelBarrelLayers |
std::vector< ForwardDetLayer * > | thePosForwardLayers |
std::vector< ForwardDetLayer * > | thePosPixelForwardLayers |
std::vector< ForwardDetLayer * > | thePosTecLayers |
std::vector< ForwardDetLayer * > | thePosTidLayers |
std::vector< BarrelDetLayer * > | theTibLayers |
std::vector< BarrelDetLayer * > | theTobLayers |
GeometricSearchTracker implementation
Definition at line 13 of file GeometricSearchTracker.h.
GeometricSearchTracker::GeometricSearchTracker | ( | const std::vector< BarrelDetLayer * > & | pxlBar, |
const std::vector< BarrelDetLayer * > & | tib, | ||
const std::vector< BarrelDetLayer * > & | tob, | ||
const std::vector< ForwardDetLayer * > & | negPxlFwd, | ||
const std::vector< ForwardDetLayer * > & | negTid, | ||
const std::vector< ForwardDetLayer * > & | negTec, | ||
const std::vector< ForwardDetLayer * > & | posPxlFwd, | ||
const std::vector< ForwardDetLayer * > & | posTid, | ||
const std::vector< ForwardDetLayer * > & | posTec | ||
) |
Definition at line 6 of file GeometricSearchTracker.cc.
References barrelLayers(), negForwardLayers(), negPixelForwardLayers(), negTecLayers(), negTidLayers(), pixelBarrelLayers(), posForwardLayers(), posPixelForwardLayers(), posTecLayers(), posTidLayers(), theAllLayers, theBarrelLayers, theForwardLayers, theNegForwardLayers, theNegPixelForwardLayers, theNegTecLayers, theNegTidLayers, thePixelBarrelLayers, thePosForwardLayers, thePosPixelForwardLayers, thePosTecLayers, thePosTidLayers, theTibLayers, theTobLayers, tibLayers(), and tobLayers().
: thePixelBarrelLayers(pxlBar.begin(),pxlBar.end()), theTibLayers(tib.begin(),tib.end()), theTobLayers(tob.begin(),tob.end()), theNegPixelForwardLayers(negPxlFwd.begin(),negPxlFwd.end()), theNegTidLayers(negTid.begin(),negTid.end()), theNegTecLayers(negTec.begin(),negTec.end()), thePosPixelForwardLayers(posPxlFwd.begin(),posPxlFwd.end()), thePosTidLayers(posTid.begin(),posTid.end()), thePosTecLayers(posTec.begin(),posTec.end()) { theBarrelLayers.assign(thePixelBarrelLayers.begin(),thePixelBarrelLayers.end()); theBarrelLayers.insert(theBarrelLayers.end(),theTibLayers.begin(),theTibLayers.end()); theBarrelLayers.insert(theBarrelLayers.end(),theTobLayers.begin(),theTobLayers.end()); theNegForwardLayers.assign(theNegPixelForwardLayers.begin(),theNegPixelForwardLayers.end()); theNegForwardLayers.insert(theNegForwardLayers.end(),theNegTidLayers.begin(),theNegTidLayers.end()); theNegForwardLayers.insert(theNegForwardLayers.end(),theNegTecLayers.begin(),theNegTecLayers.end()); thePosForwardLayers.assign(thePosPixelForwardLayers.begin(),thePosPixelForwardLayers.end()); thePosForwardLayers.insert(thePosForwardLayers.end(),thePosTidLayers.begin(),thePosTidLayers.end()); thePosForwardLayers.insert(thePosForwardLayers.end(),thePosTecLayers.begin(),thePosTecLayers.end()); theForwardLayers.assign(theNegForwardLayers.begin(),theNegForwardLayers.end()); theForwardLayers.insert(theForwardLayers.end(),thePosForwardLayers.begin(),thePosForwardLayers.end()); theAllLayers.assign(theBarrelLayers.begin(),theBarrelLayers.end()); theAllLayers.insert(theAllLayers.end(), theForwardLayers.begin(), theForwardLayers.end()); edm::LogInfo("TkDetLayers") << "------ GeometricSearchTracker constructed with: ------" << "\n" << "n pxlBarLayers: " << this->pixelBarrelLayers().size() << "\n" << "n tibLayers: " << this->tibLayers().size() << "\n" << "n tobLayers: " << this->tobLayers().size() << "\n" << "n negPxlFwdLayers: " << this->negPixelForwardLayers().size() << "\n" << "n negPxlFwdLayers: " << this->posPixelForwardLayers().size() << "\n" << "n negTidLayers: " << this->negTidLayers().size() << "\n" << "n posTidLayers: " << this->posTidLayers().size() << "\n" << "n negTecLayers: " << this->negTecLayers().size() << "\n" << "n posTecLayers: " << this->posTecLayers().size() << "\n" << "n barreLayers: " << this->barrelLayers().size() << "\n" << "n negforwardLayers: " << this->negForwardLayers().size() << "\n" << "n posForwardLayers: " << this->posForwardLayers().size() ; }
GeometricSearchTracker::~GeometricSearchTracker | ( | ) | [virtual] |
Definition at line 63 of file GeometricSearchTracker.cc.
References theAllLayers.
{ for(vector<DetLayer*>::const_iterator it=theAllLayers.begin(); it!=theAllLayers.end();it++){ delete *it; } }
std::vector<DetLayer*> const& GeometricSearchTracker::allLayers | ( | ) | const [inline] |
Definition at line 28 of file GeometricSearchTracker.h.
References theAllLayers.
Referenced by BeamHaloNavigationSchool::BeamHaloNavigationSchool(), CosmicNavigationSchool::build(), CfgNavigationSchool::CfgNavigationSchool(), SimpleNavigationSchool::establishInverseRelations(), HICSimpleNavigationSchool::HICSimpleNavigationSchool(), MuonTkNavigationSchool::MuonTkNavigationSchool(), and SimpleNavigationSchool::SimpleNavigationSchool().
{return theAllLayers;}
std::vector<BarrelDetLayer*> const& GeometricSearchTracker::barrelLayers | ( | ) | const [inline] |
Definition at line 30 of file GeometricSearchTracker.h.
References theBarrelLayers.
Referenced by CfgNavigationSchool::CfgNavigationSchool(), GeometricSearchTracker(), HICMeasurementEstimator::HICMeasurementEstimator(), HICSimpleNavigationSchool::HICSimpleNavigationSchool(), cms::HICTkOuterStartingLayerFinder::HICTkOuterStartingLayerFinder(), TrajectoryManager::initializeLayerMap(), ConvBremSeedProducer::initializeLayerMap(), MuonNavigationPrinter::MuonNavigationPrinter(), MuonTkNavigationSchool::MuonTkNavigationSchool(), SimpleNavigationSchool::SimpleNavigationSchool(), and TrackerInteractionGeometry::TrackerInteractionGeometry().
{return theBarrelLayers;}
obsolete method. Use idToLayer() instead.
Definition at line 53 of file GeometricSearchTracker.h.
Referenced by CkfDebugger::analyseRecHitNotFound(), MuonRoadTrajectoryBuilder::cleanTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHit(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet(), MuonCkfTrajectoryBuilder::findCompatibleMeasurements(), NuclearInteractionFinder::findMeasurementsFromTSOS(), BaseCkfTrajectoryBuilder::findStateAndLayers(), RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm::run(), and BaseCkfTrajectoryBuilder::seedMeasurements().
{return idToLayer(id);};
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::forwardLayers | ( | ) | const [inline] |
Definition at line 32 of file GeometricSearchTracker.h.
References theForwardLayers.
Referenced by CfgNavigationSchool::CfgNavigationSchool(), HICSimpleNavigationSchool::HICSimpleNavigationSchool(), MuonTkNavigationSchool::MuonTkNavigationSchool(), and SimpleNavigationSchool::SimpleNavigationSchool().
{return theForwardLayers;}
Give the DetId of a module, returns the pointer to the corresponding DetLayer.
Reimplemented from DetLayerGeometry.
Definition at line 81 of file GeometricSearchTracker.cc.
References PXFDetId::disk(), TIBDetId::layer(), TOBDetId::layer(), PXBDetId::layer(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, theNegPixelForwardLayers, theNegTecLayers, theNegTidLayers, thePixelBarrelLayers, thePosPixelForwardLayers, thePosTecLayers, thePosTidLayers, theTibLayers, theTobLayers, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, TIDDetId::wheel(), and TECDetId::wheel().
Referenced by GlobalDetLayerGeometry::idToLayer().
{ switch(id.subdetId()) { case StripSubdetector::TIB: //edm::LogInfo(TkDetLayers) << "TIB layer n: " << TIBDetId(id).layer() ; return theTibLayers[TIBDetId(id).layer()-1]; break; case StripSubdetector::TOB: //edm::LogInfo(TkDetLayers) << "TOB layer n: " << TOBDetId(id).layer() ; return theTobLayers[TOBDetId(id).layer()-1]; break; case StripSubdetector::TID: //edm::LogInfo(TkDetLayers) << "TID wheel n: " << TIDDetId(id).wheel() ; if(TIDDetId(id).side() ==1 ) { return theNegTidLayers[TIDDetId(id).wheel()-1]; }else if( TIDDetId(id).side() == 2 ) { return thePosTidLayers[TIDDetId(id).wheel()-1]; } break; case StripSubdetector::TEC: //edm::LogInfo(TkDetLayers) << "TEC wheel n: " << TECDetId(id).wheel() ; if(TECDetId(id).side() ==1 ) { return theNegTecLayers[TECDetId(id).wheel()-1]; }else if( TECDetId(id).side() == 2 ) { return thePosTecLayers[TECDetId(id).wheel()-1]; } break; case PixelSubdetector::PixelBarrel: //edm::LogInfo(TkDetLayers) << "PixelBarrel layer n: " << PXBDetId(id).layer() ; return thePixelBarrelLayers[PXBDetId(id).layer()-1]; break; case PixelSubdetector::PixelEndcap: //edm::LogInfo(TkDetLayers) << "PixelEndcap disk n: " << PXFDetId(id).disk() ; if(PXFDetId(id).side() ==1 ) { return theNegPixelForwardLayers[PXFDetId(id).disk()-1]; }else if( PXFDetId(id).side() == 2 ) { return thePosPixelForwardLayers[PXFDetId(id).disk()-1]; } break; default: edm::LogError("TkDetLayers") << "ERROR:layer not found!" ; // throw(something); } return 0; //just to avoid compile warnings }
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::negForwardLayers | ( | ) | const [inline] |
Definition at line 33 of file GeometricSearchTracker.h.
References theNegForwardLayers.
Referenced by GeometricSearchTracker(), HICMeasurementEstimator::HICMeasurementEstimator(), cms::HICTkOuterStartingLayerFinder::HICTkOuterStartingLayerFinder(), TrajectoryManager::initializeLayerMap(), and MuonNavigationPrinter::MuonNavigationPrinter().
{return theNegForwardLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::negPixelForwardLayers | ( | ) | const [inline] |
Definition at line 40 of file GeometricSearchTracker.h.
References theNegPixelForwardLayers.
Referenced by StartingLayerFinder::checkPixelLayers(), GeometricSearchTracker(), CfgNavigationSchool::layer(), and PixelMatchStartLayers::setup().
{return theNegPixelForwardLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::negTecLayers | ( | ) | const [inline] |
Definition at line 42 of file GeometricSearchTracker.h.
References theNegTecLayers.
Referenced by GeometricSearchTracker(), CfgNavigationSchool::layer(), and MuonRoadTrajectoryBuilder::makeTrajectories_0().
{return theNegTecLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::negTidLayers | ( | ) | const [inline] |
Definition at line 41 of file GeometricSearchTracker.h.
References theNegTidLayers.
Referenced by GeometricSearchTracker(), CfgNavigationSchool::layer(), and MuonRoadTrajectoryBuilder::makeTrajectories_0().
{return theNegTidLayers;}
std::vector<BarrelDetLayer*> const& GeometricSearchTracker::pixelBarrelLayers | ( | ) | const [inline] |
Definition at line 36 of file GeometricSearchTracker.h.
References thePixelBarrelLayers.
Referenced by CosmicNavigationSchool::build(), StartingLayerFinder::checkPixelLayers(), GeometricSearchTracker(), CfgNavigationSchool::layer(), and PixelMatchStartLayers::setup().
{return thePixelBarrelLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::posForwardLayers | ( | ) | const [inline] |
Definition at line 34 of file GeometricSearchTracker.h.
References thePosForwardLayers.
Referenced by GeometricSearchTracker(), HICMeasurementEstimator::HICMeasurementEstimator(), cms::HICTkOuterStartingLayerFinder::HICTkOuterStartingLayerFinder(), TrajectoryManager::initializeLayerMap(), ConvBremSeedProducer::initializeLayerMap(), MuonNavigationPrinter::MuonNavigationPrinter(), and TrackerInteractionGeometry::TrackerInteractionGeometry().
{return thePosForwardLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::posPixelForwardLayers | ( | ) | const [inline] |
Definition at line 44 of file GeometricSearchTracker.h.
References thePosPixelForwardLayers.
Referenced by StartingLayerFinder::checkPixelLayers(), GeometricSearchTracker(), CfgNavigationSchool::layer(), and PixelMatchStartLayers::setup().
{return thePosPixelForwardLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::posTecLayers | ( | ) | const [inline] |
Definition at line 46 of file GeometricSearchTracker.h.
References thePosTecLayers.
Referenced by GeometricSearchTracker(), CfgNavigationSchool::layer(), and MuonRoadTrajectoryBuilder::makeTrajectories_0().
{return thePosTecLayers;}
std::vector<ForwardDetLayer*> const& GeometricSearchTracker::posTidLayers | ( | ) | const [inline] |
Definition at line 45 of file GeometricSearchTracker.h.
References thePosTidLayers.
Referenced by GeometricSearchTracker(), CfgNavigationSchool::layer(), and MuonRoadTrajectoryBuilder::makeTrajectories_0().
{return thePosTidLayers;}
std::vector<BarrelDetLayer*> const& GeometricSearchTracker::tibLayers | ( | ) | const [inline] |
Definition at line 37 of file GeometricSearchTracker.h.
References theTibLayers.
Referenced by CosmicNavigationSchool::build(), SiStripElectronSeedGenerator::findSeedsFromCluster(), GeometricSearchTracker(), CfgNavigationSchool::layer(), and MuonRoadTrajectoryBuilder::makeTrajectories_0().
{return theTibLayers;}
std::vector<BarrelDetLayer*> const& GeometricSearchTracker::tobLayers | ( | ) | const [inline] |
Definition at line 38 of file GeometricSearchTracker.h.
References theTobLayers.
Referenced by CosmicNavigationSchool::build(), GeometricSearchTracker(), CfgNavigationSchool::layer(), and MuonRoadTrajectoryBuilder::makeTrajectories_0().
{return theTobLayers;}
std::vector<DetLayer*> GeometricSearchTracker::theAllLayers [private] |
Definition at line 53 of file GeometricSearchTracker.h.
Referenced by allLayers(), GeometricSearchTracker(), and ~GeometricSearchTracker().
std::vector<BarrelDetLayer*> GeometricSearchTracker::theBarrelLayers [private] |
Definition at line 57 of file GeometricSearchTracker.h.
Referenced by barrelLayers(), and GeometricSearchTracker().
std::vector<ForwardDetLayer*> GeometricSearchTracker::theForwardLayers [private] |
Definition at line 58 of file GeometricSearchTracker.h.
Referenced by forwardLayers(), and GeometricSearchTracker().
std::vector<ForwardDetLayer*> GeometricSearchTracker::theNegForwardLayers [private] |
Definition at line 59 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), and negForwardLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::theNegPixelForwardLayers [private] |
Definition at line 66 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and negPixelForwardLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::theNegTecLayers [private] |
Definition at line 68 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and negTecLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::theNegTidLayers [private] |
Definition at line 67 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and negTidLayers().
std::vector<BarrelDetLayer*> GeometricSearchTracker::thePixelBarrelLayers [private] |
Definition at line 62 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and pixelBarrelLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::thePosForwardLayers [private] |
Definition at line 60 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), and posForwardLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::thePosPixelForwardLayers [private] |
Definition at line 69 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and posPixelForwardLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::thePosTecLayers [private] |
Definition at line 71 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and posTecLayers().
std::vector<ForwardDetLayer*> GeometricSearchTracker::thePosTidLayers [private] |
Definition at line 70 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and posTidLayers().
std::vector<BarrelDetLayer*> GeometricSearchTracker::theTibLayers [private] |
Definition at line 63 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and tibLayers().
std::vector<BarrelDetLayer*> GeometricSearchTracker::theTobLayers [private] |
Definition at line 64 of file GeometricSearchTracker.h.
Referenced by GeometricSearchTracker(), idToLayer(), and tobLayers().