#include <QuadrupletSeedMerger.h>
Public Member Functions | |
std::pair< double, double > | calculatePhiEta (SeedingHitSet const &) const |
bool | isEqual (const TrackingRecHit *, const TrackingRecHit *) const |
const OrderedSeedingHits & | mergeTriplets (const OrderedSeedingHits &, const edm::EventSetup &) |
const TrajectorySeedCollection | mergeTriplets (const TrajectorySeedCollection &, const TrackingRegion &, const edm::EventSetup &, const edm::ParameterSet &) |
void | printHit (const TrackingRecHit *) const |
void | printHit (const TransientTrackingRecHit::ConstRecHitPointer &) const |
void | printNtuplet (const SeedingHitSet &) const |
QuadrupletSeedMerger () | |
void | setAddRemainingTriplets (bool) |
void | setLayerListName (std::string) |
void | setMergeTriplets (bool) |
void | setTTRHBuilderLabel (std::string) |
void | update (const edm::EventSetup &) |
~QuadrupletSeedMerger () | |
Private Attributes | |
bool | isAddRemainingTriplets_ |
bool | isMergeTriplets_ |
std::string | layerListName_ |
OrderedHitSeeds | quads_ |
ctfseeding::SeedingLayerSets | theLayerSets_ |
edm::ESHandle< TrackerGeometry > | theTrackerGeometry_ |
edm::ESHandle < TransientTrackingRecHitBuilder > | theTTRHBuilder_ |
std::string | theTTRHBuilderLabel_ |
merge triplets into quadruplets
Definition at line 76 of file QuadrupletSeedMerger.h.
QuadrupletSeedMerger::QuadrupletSeedMerger | ( | ) |
Definition at line 32 of file QuadrupletSeedMerger.cc.
References isAddRemainingTriplets_, isMergeTriplets_, layerListName_, and AlCaHLTBitMon_QueryRunRegistry::string.
QuadrupletSeedMerger::~QuadrupletSeedMerger | ( | ) |
Definition at line 53 of file QuadrupletSeedMerger.cc.
std::pair< double, double > QuadrupletSeedMerger::calculatePhiEta | ( | SeedingHitSet const & | nTuplet | ) | const |
Definition at line 379 of file QuadrupletSeedMerger.cc.
References eta(), TrackingRecHit::geographicalId(), TrackingRecHit::localPosition(), p1, p2, phi, funct::pow(), mathSSE::sqrt(), theTrackerGeometry_, GeomDet::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by mergeTriplets().
bool QuadrupletSeedMerger::isEqual | ( | const TrackingRecHit * | hit1, |
const TrackingRecHit * | hit2 | ||
) | const |
Definition at line 357 of file QuadrupletSeedMerger.cc.
References epsilon, TrackingRecHit::geographicalId(), TrackingRecHit::localPosition(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by isTripletsShareHitsOnLayers().
|
private |
check if the triplets have hits on the nonSharedLayers triplet1 on layer1 && triplet2 on layer2, or vice versa, and return the hits on those layers (unsorted)
Definition at line 638 of file QuadrupletSeedMerger.cc.
References SeedMergerPixelLayer::isContainsDetector().
Referenced by mergeTriplets().
|
private |
check if both triplets share a hit on either of the sharedLayers and return both hits (unsorted)
Definition at line 555 of file QuadrupletSeedMerger.cc.
References getHLTprescales::index, SeedMergerPixelLayer::isContainsDetector(), and isEqual().
Referenced by mergeTriplets().
|
private |
check for validity of a (radius-) sorted quadruplet:
Definition at line 525 of file QuadrupletSeedMerger.cc.
References gather_cfg::cout, and getHLTprescales::index.
Referenced by mergeTriplets().
const OrderedSeedingHits & QuadrupletSeedMerger::mergeTriplets | ( | const OrderedSeedingHits & | inputTriplets, |
const edm::EventSetup & | es | ||
) |
merge triplets into quadruplets INPUT: OrderedSeedingHits OUTPUT: SeedingHitSets
this method is used in RecoPixelVertexing/PixelTrackFitting/src/PixelTrackReconstruction.cc and contains the basic merger functionality
Definition at line 69 of file QuadrupletSeedMerger.cc.
References calculatePhiEta(), gather_cfg::cout, first, edm::EventSetup::get(), isAddRemainingTriplets_, isMergeableHitsInTriplets(), isMergeTriplets_, isTripletsShareHitsOnLayers(), isValidQuadruplet(), layerListName_, mySort(), edm::ESHandle< class >::product(), quads_, indexGen::s2, edm::second(), EgAmbiguityTools::sharedHits(), OrderedSeedingHits::size(), findQualityFiles::size, reco::t2, groupFilesInBlocks::temp, and theLayerSets_.
Referenced by mergeTriplets(), SeedGeneratorFromRegionHitsEDProducer::produce(), and PixelTrackReconstruction::run().
const TrajectorySeedCollection QuadrupletSeedMerger::mergeTriplets | ( | const TrajectorySeedCollection & | seedCollection, |
const TrackingRegion & | region, | ||
const edm::EventSetup & | es, | ||
const edm::ParameterSet & | cfg | ||
) |
merge triplets into quadruplets INPUT: TrajectorySeedCollection OUTPUT: TrajectorySeedCollection
this is a wrapper for: vector<SeedingHitSet> mergeTriplets( const OrderedSeedingHits& ) for use in RecoTracker/TkSeedGenerator/plugins/SeedGeneratorFromRegionHitsEDProducer.cc (iterative tracking)
Definition at line 270 of file QuadrupletSeedMerger.cc.
References gather_cfg::cout, edm::EventSetup::get(), reco::get(), edm::ParameterSet::getParameter(), i, isMergeTriplets_, mergeTriplets(), OrderedSeedingHits::size(), AlCaHLTBitMon_QueryRunRegistry::string, theTTRHBuilder_, and theTTRHBuilderLabel_.
|
private |
Definition at line 793 of file QuadrupletSeedMerger.cc.
References geometryDiff::geom1, p1, theTrackerGeometry_, GeomDet::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by mergeTriplets().
void QuadrupletSeedMerger::printHit | ( | const TrackingRecHit * | aHit | ) | const |
Definition at line 428 of file QuadrupletSeedMerger.cc.
References gather_cfg::cout, TrackingRecHit::geographicalId(), TrackingRecHit::localPosition(), PV3DBase< T, PVType, FrameType >::perp(), GloballyPositioned< T >::position(), alignCSCRings::r, GeomDet::surface(), theTrackerGeometry_, GeomDet::toGlobal(), x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by printHit().
void QuadrupletSeedMerger::printHit | ( | const TransientTrackingRecHit::ConstRecHitPointer & | aRecHitPointer | ) | const |
Definition at line 417 of file QuadrupletSeedMerger.cc.
References printHit().
void QuadrupletSeedMerger::printNtuplet | ( | const SeedingHitSet & | aNtuplet | ) | const |
Definition at line 442 of file QuadrupletSeedMerger.cc.
References gather_cfg::cout, PixelEndcapName::diskName(), TrackingRecHit::geographicalId(), PixelBarrelName::layerName(), TrackingRecHit::localPosition(), PixelSubdetector::PixelBarrel, alignCSCRings::r, SeedingHitSet::size(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), theTrackerGeometry_, GeomDet::toGlobal(), x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
void QuadrupletSeedMerger::setAddRemainingTriplets | ( | bool | isAddTriplets | ) |
Definition at line 514 of file QuadrupletSeedMerger.cc.
References isAddRemainingTriplets_.
void QuadrupletSeedMerger::setLayerListName | ( | std::string | layerListName | ) |
Definition at line 496 of file QuadrupletSeedMerger.cc.
References layerListName_.
void QuadrupletSeedMerger::setMergeTriplets | ( | bool | isMergeTriplets | ) |
void QuadrupletSeedMerger::setTTRHBuilderLabel | ( | std::string | label | ) |
Definition at line 485 of file QuadrupletSeedMerger.cc.
References diffTwoXMLs::label, and theTTRHBuilderLabel_.
void QuadrupletSeedMerger::update | ( | const edm::EventSetup & | es | ) |
Definition at line 45 of file QuadrupletSeedMerger.cc.
References edm::EventSetup::get(), and theTrackerGeometry_.
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), PixelTrackReconstruction::init(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), SeedGeneratorFromRegionHitsEDProducer::produce(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
private |
Definition at line 135 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), QuadrupletSeedMerger(), and setAddRemainingTriplets().
|
private |
Definition at line 134 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), QuadrupletSeedMerger(), and setMergeTriplets().
|
private |
Definition at line 133 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), QuadrupletSeedMerger(), and setLayerListName().
|
private |
Definition at line 137 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 130 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 131 of file QuadrupletSeedMerger.h.
Referenced by calculatePhiEta(), mySort(), printHit(), printNtuplet(), and update().
|
private |
Definition at line 132 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 136 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), and setTTRHBuilderLabel().