#include <QuadrupletSeedMerger.h>
Public Member Functions | |
std::pair< double, double > | calculatePhiEta (SeedingHitSet const &) const |
const OrderedSeedingHits & | mergeTriplets (const OrderedSeedingHits &, const edm::EventSetup &) |
const TrajectorySeedCollection | mergeTriplets (const TrajectorySeedCollection &, const TrackingRegion &, const edm::EventSetup &) |
void | printHit (const TrackingRecHit *) const |
void | printNtuplet (const SeedingHitSet &) const |
QuadrupletSeedMerger (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC) | |
QuadrupletSeedMerger (const edm::ParameterSet &iConfig, const edm::ParameterSet &seedCreatorConfig, edm::ConsumesCollector &iC) | |
void | setAddRemainingTriplets (bool) |
void | setMergeTriplets (bool) |
void | setTTRHBuilderLabel (std::string) |
void | update (const edm::EventSetup &) |
~QuadrupletSeedMerger () | |
Private Types | |
typedef std::array < SeedingHitSet::ConstRecHitPointer, 4 > | QuadrupletHits |
Private Member Functions | |
bool | isValidQuadruplet (const QuadrupletHits &quadruplet, const std::vector< SeedMergerPixelLayer > &layers, const TrackerTopology *tTopo) const |
void | mySort (QuadrupletHits &unsortedHits) |
QuadrupletSeedMerger (const edm::ParameterSet &iConfig, SeedCreator *seedCreator, edm::ConsumesCollector &iC) | |
Private Attributes | |
bool | isAddRemainingTriplets_ |
bool | isMergeTriplets_ |
OrderedHitSeeds | quads_ |
SeedingLayerSetsBuilder | theLayerBuilder_ |
ctfseeding::SeedingLayerSets | theLayerSets_ |
std::unique_ptr< SeedCreator > | theSeedCreator_ |
edm::ESHandle< TrackerGeometry > | theTrackerGeometry_ |
edm::ESHandle < TransientTrackingRecHitBuilder > | theTTRHBuilder_ |
std::string | theTTRHBuilderLabel_ |
merge triplets into quadruplets
Definition at line 76 of file QuadrupletSeedMerger.h.
|
private |
Definition at line 96 of file QuadrupletSeedMerger.h.
|
explicit |
Definition at line 68 of file QuadrupletSeedMerger.cc.
QuadrupletSeedMerger::QuadrupletSeedMerger | ( | const edm::ParameterSet & | iConfig, |
const edm::ParameterSet & | seedCreatorConfig, | ||
edm::ConsumesCollector & | iC | ||
) |
Definition at line 70 of file QuadrupletSeedMerger.cc.
QuadrupletSeedMerger::~QuadrupletSeedMerger | ( | ) |
Definition at line 94 of file QuadrupletSeedMerger.cc.
|
private |
Definition at line 74 of file QuadrupletSeedMerger.cc.
References isAddRemainingTriplets_, and isMergeTriplets_.
std::pair< double, double > QuadrupletSeedMerger::calculatePhiEta | ( | SeedingHitSet const & | nTuplet | ) | const |
Definition at line 483 of file QuadrupletSeedMerger.cc.
References eta, p1, p2, phi, funct::sqr(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by mergeTriplets().
|
private |
check for validity of a (radius-) sorted quadruplet:
Definition at line 604 of file QuadrupletSeedMerger.cc.
References gather_cfg::cout, and cmsHarvester::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 110 of file QuadrupletSeedMerger.cc.
References a, assert(), b, KDTreeLinkerAlgo< DATA >::build(), calculatePhiEta(), SeedingLayerSetsBuilder::check(), constexpr, gather_cfg::cout, eta, edm::EventSetup::get(), i, isAddRemainingTriplets_, isMergeTriplets_, isValidQuadruplet(), j, SeedingLayerSetsBuilder::layers(), bookConverter::max, maxEta, min(), benchmark_cfg::minEta, mySort(), class-composition::nodes, phi, edm::ESHandle< class >::product(), quads_, indexGen::s2, KDTreeLinkerAlgo< DATA >::search(), EgAmbiguityTools::sharedHits(), OrderedSeedingHits::size(), findQualityFiles::size, python.multivaluedict::sort(), theLayerBuilder_, theLayerSets_, and Geom::twoPi().
Referenced by mergeTriplets().
const TrajectorySeedCollection QuadrupletSeedMerger::mergeTriplets | ( | const TrajectorySeedCollection & | seedCollection, |
const TrackingRegion & | region, | ||
const edm::EventSetup & | es | ||
) |
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 402 of file QuadrupletSeedMerger.cc.
References gather_cfg::cout, edm::EventSetup::get(), i, isMergeTriplets_, mergeTriplets(), OrderedSeedingHits::size(), theSeedCreator_, theTTRHBuilder_, and theTTRHBuilderLabel_.
|
private |
Definition at line 724 of file QuadrupletSeedMerger.cc.
References p1, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by mergeTriplets().
void QuadrupletSeedMerger::printHit | ( | const TrackingRecHit * | aHit | ) | const |
Definition at line 516 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, y, and z.
void QuadrupletSeedMerger::printNtuplet | ( | const SeedingHitSet & | aNtuplet | ) | const |
Definition at line 530 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, y, and z.
void QuadrupletSeedMerger::setAddRemainingTriplets | ( | bool | isAddTriplets | ) |
Definition at line 593 of file QuadrupletSeedMerger.cc.
References isAddRemainingTriplets_.
void QuadrupletSeedMerger::setMergeTriplets | ( | bool | isMergeTriplets | ) |
void QuadrupletSeedMerger::setTTRHBuilderLabel | ( | std::string | label | ) |
Definition at line 573 of file QuadrupletSeedMerger.cc.
References diffTwoXMLs::label, and theTTRHBuilderLabel_.
void QuadrupletSeedMerger::update | ( | const edm::EventSetup & | es | ) |
Definition at line 86 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(), 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(), 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 112 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), QuadrupletSeedMerger(), and setAddRemainingTriplets().
|
private |
Definition at line 111 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), QuadrupletSeedMerger(), and setMergeTriplets().
|
private |
Definition at line 114 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 106 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 107 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 110 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 108 of file QuadrupletSeedMerger.h.
Referenced by printHit(), printNtuplet(), and update().
|
private |
Definition at line 109 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets().
|
private |
Definition at line 113 of file QuadrupletSeedMerger.h.
Referenced by mergeTriplets(), and setTTRHBuilderLabel().