#include <GroupedCkfTrajectoryBuilder.h>
Public Member Functions | |
TempTrajectory | buildTrajectories (const TrajectorySeed &seed, TrajectoryContainer &ret, unsigned int &nCandPerSeed, const TrajectoryFilter *) const override |
common part of both public trajectory building methods More... | |
double | chiSquareCut () |
const Chi2MeasurementEstimatorBase & | estimator () const |
GroupedCkfTrajectoryBuilder (const edm::ParameterSet &conf, edm::ConsumesCollector &iC) | |
constructor from ParameterSet More... | |
float | lostHitPenalty () |
double | mass () |
Mass hypothesis used for propagation. More... | |
int | maxCand () |
double | ptCut () |
Pt cut. More... | |
void | rebuildSeedingRegion (const TrajectorySeed &, TrajectoryContainer &result) const override |
void | rebuildTrajectories (TempTrajectory const &startingTraj, const TrajectorySeed &, TrajectoryContainer &result) const override |
TrajectoryContainer | trajectories (const TrajectorySeed &) const override |
set Event for the internal MeasurementTracker data member More... | |
void | trajectories (const TrajectorySeed &, TrajectoryContainer &ret) const override |
trajectories building starting from a seed, return in an already allocated vector More... | |
TrajectoryContainer | trajectories (const TrajectorySeed &, const TrackingRegion &) const |
trajectories building starting from a seed with a region More... | |
void | trajectories (const TrajectorySeed &, TrajectoryContainer &ret, const TrackingRegion &) const |
trajectories building starting from a seed with a region More... | |
const TrajectoryStateUpdator & | updator () const |
~GroupedCkfTrajectoryBuilder () override | |
destructor More... | |
Public Member Functions inherited from BaseCkfTrajectoryBuilder | |
BaseCkfTrajectoryBuilder (const edm::ParameterSet &conf, TrajectoryFilter *filter, TrajectoryFilter *inOutFilter=0) | |
BaseCkfTrajectoryBuilder (const BaseCkfTrajectoryBuilder &)=delete | |
const TransientTrackingRecHitBuilder * | hitBuilder () const |
BaseCkfTrajectoryBuilder & | operator= (const BaseCkfTrajectoryBuilder &)=delete |
virtual void | setDebugger (CkfDebugger *dbg) const |
void | setEvent (const edm::Event &event) const override |
void | setEvent (const edm::Event &iEvent, const edm::EventSetup &iSetup, const MeasurementTrackerEvent *data) |
void | setNavigationSchool (NavigationSchool const *nv) |
void | unset () const override |
~BaseCkfTrajectoryBuilder () override | |
Public Member Functions inherited from TrajectoryBuilder | |
virtual | ~TrajectoryBuilder () |
Private Types | |
enum | work_MaxSize_Size_ { work_MaxSize_ = 50 } |
Private Member Functions | |
bool | advanceOneLayer (const TrajectorySeed &seed, TempTrajectory &traj, const TrajectoryFilter *regionalCondition, const Propagator *propagator, bool inOut, TempTrajectoryContainer &newCand, TempTrajectoryContainer &result) const |
TempTrajectory | backwardFit (TempTrajectory &candidate, unsigned int nSeed, const TrajectoryFitter &fitter, std::vector< const TrackingRecHit * > &remainingHits) const |
void | groupedIntermediaryClean (TempTrajectoryContainer &theTrajectories) const |
intermediate cleaning in the case of grouped measurements More... | |
unsigned int | groupedLimitedCandidates (const TrajectorySeed &seed, TempTrajectory const &startingTraj, const TrajectoryFilter *regionalCondition, const Propagator *propagator, bool inOut, TempTrajectoryContainer &result) const |
void | rebuildSeedingRegion (const TrajectorySeed &seed, TempTrajectory const &startingTraj, TempTrajectoryContainer &result) const |
try to find additional hits in seeding region More... | |
int | rebuildSeedingRegion (const TrajectorySeed &seed, const std::vector< const TrackingRecHit * > &seedHits, TempTrajectory &candidate, TempTrajectoryContainer &result) const |
bool | tkxor (bool a, bool b) const |
bool | verifyHits (TempTrajectory::DataContainer::const_iterator rbegin, size_t maxDepth, const std::vector< const TrackingRecHit * > &hits) const |
Verifies presence of a RecHits in a range of TrajectoryMeasurements. More... | |
Static Private Member Functions | |
static PropagationDirection | oppositeDirection (PropagationDirection dir) |
change of propagation direction More... | |
Private Attributes | |
float | maxDPhiForLooperReconstruction |
float | maxPt2ForLooperReconstruction |
bool | theAlwaysUseInvalid |
bool | theBestHitOnly |
double | theChiSquareCut |
TrajectoryFilter * | theConfigurableCondition |
float | theFoundHitBonus |
bool | theIntermediateCleaning |
bool | theKeepOriginalIfRebuildFails |
bool | theLockHits |
float | theLostHitPenalty |
double | theMass |
int | theMaxCand |
unsigned int | theMinNrOf2dHitsForRebuild |
unsigned int | theMinNrOfHitsForRebuild |
double | theptCut |
bool | theRequireSeedHitsInRebuild |
A highly configurable trajectory builder that allows full exploration of the combinatorial tree of possible continuations, and provides efficient ways of trimming the combinatorial tree.
Definition at line 24 of file GroupedCkfTrajectoryBuilder.h.
|
private |
Enumerator | |
---|---|
work_MaxSize_ |
Definition at line 208 of file GroupedCkfTrajectoryBuilder.h.
GroupedCkfTrajectoryBuilder::GroupedCkfTrajectoryBuilder | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | iC | ||
) |
constructor from ParameterSet
Definition at line 124 of file GroupedCkfTrajectoryBuilder.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), SiStripPI::max, maxDPhiForLooperReconstruction, maxPt2ForLooperReconstruction, theAlwaysUseInvalid, theBestHitOnly, theFoundHitBonus, theIntermediateCleaning, theKeepOriginalIfRebuildFails, theLockHits, theLostHitPenalty, theMaxCand, theMinNrOf2dHitsForRebuild, theMinNrOfHitsForRebuild, and theRequireSeedHitsInRebuild.
|
inlineoverride |
destructor
Definition at line 31 of file GroupedCkfTrajectoryBuilder.h.
References BaseCkfTrajectoryBuilder::buildTrajectories(), TrajectoryBuilder::rebuildSeedingRegion(), BaseCkfTrajectoryBuilder::rebuildTrajectories(), mps_fire::result, SurveyInfoScenario_cff::seed, and TrajectoryBuilder::trajectories().
|
private |
Definition at line 461 of file GroupedCkfTrajectoryBuilder.cc.
References funct::abs(), BaseCkfTrajectoryBuilder::addToResult(), cmsutils::bqueue< T >::back(), PV3DBase< T, PVType, FrameType >::basicVector(), constexpr, gather_cfg::cout, TempTrajectory::empty(), PV3DBase< T, PVType, FrameType >::eta(), TransverseImpactPointExtrapolator::extrapolate(), f, lumiContext::fill, BaseCkfTrajectoryBuilder::findStateAndLayers(), BaseCkfTrajectoryBuilder::forwardPropagator(), TempTrajectory::foundHits(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), TempTrajectory::incrementLoops(), TrajectoryStateOnSurface::isValid(), TempTrajectory::join(), TempTrajectory::lastLayer(), TempTrajectory::lastMeasurement(), TrajectoryMeasurement::layer(), LayerTriplets::layers(), Bounds::length(), DetLayer::location(), LogDebug, TempTrajectory::lostHits(), maxDPhiForLooperReconstruction, maxPt2ForLooperReconstruction, TempTrajectory::measurements(), TrackingRecHit::missing, eostools::move(), BaseCkfTrajectoryBuilder::moveToResult(), N, NO_SEGMENTS_FOR_VALID_LAYERS, NOT_STOPPED, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), Propagator::propagationDirection(), hiDetachedQuadStep_cff::pt2, cmsutils::bqueue< T >::rbegin(), rejected(), cmsutils::bqueue< T >::rend(), TempTrajectory::setDPhiCacheForLoopersReconstruction(), TempTrajectory::setStopReason(), BarrelDetLayer::specificSurface(), lumiQTWidget::t, edmPickEvents::target, theAlwaysUseInvalid, theBestHitOnly, BaseCkfTrajectoryBuilder::theEstimator, theLockHits, theMaxCand, BaseCkfTrajectoryBuilder::theMeasurementTracker, BaseCkfTrajectoryBuilder::theUpdator, BaseCkfTrajectoryBuilder::toBeContinued(), TrajectoryStateOnSurface::transverseCurvature(), UNLIKELY, TrajectoryMeasurement::updatedState(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by groupedLimitedCandidates().
|
inlineprotectedvirtual |
Definition at line 101 of file GroupedCkfTrajectoryBuilder.h.
|
inlineprotectedvirtual |
Definition at line 103 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories().
|
inlineprotectedvirtual |
Definition at line 99 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories().
|
private |
Definition at line 1011 of file GroupedCkfTrajectoryBuilder.cc.
References TempTrajectory::direction(), Trajectory::direction(), PrintoutHelper::dumpMeasurement(), PrintoutHelper::dumpMeasurements(), Trajectory::firstMeasurement(), TrajectoryFitter::fitOne(), TempTrajectory::foundHits(), TrackingRecHit::isValid(), Trajectory::isValid(), LIKELY, LogDebug, SiStripPI::max, Trajectory::measurements(), TempTrajectory::measurements(), ALCARECOTkAlBeamHalo_cff::nHitMin, TempTrajectory::nLoops(), Trajectory::nLoops(), oppositeDirection(), Trajectory::push(), Trajectory::recHits(), TrajectoryStateOnSurface::rescaleError(), Trajectory::setNLoops(), cmsutils::bqueue< T >::size(), theMinNrOfHitsForRebuild, UNLIKELY, and TrajectoryMeasurement::updatedState().
Referenced by rebuildSeedingRegion().
|
overridevirtual |
common part of both public trajectory building methods
Reimplemented from BaseCkfTrajectoryBuilder.
Definition at line 258 of file GroupedCkfTrajectoryBuilder.cc.
References analyseResult(), analyseSeed(), EnergyCorrector::c, FastTrajectoryCleaner::clean(), gather_cfg::cout, BaseCkfTrajectoryBuilder::createStartingTrajectory(), Exception, BaseTrackerRecHit::firstClusterRef(), BaseCkfTrajectoryBuilder::forwardPropagator(), groupedLimitedCandidates(), trackerHitRTTI::isFromDet(), trackerHitRTTI::isUndef(), LogDebug, theFoundHitBonus, theLostHitPenalty, BaseCkfTrajectoryBuilder::theMeasurementTracker, and work_MaxSize_.
Referenced by trajectories().
|
inline |
Chi**2 Cut on the new Trajectory Measurements to consider
Definition at line 78 of file GroupedCkfTrajectoryBuilder.h.
|
inline |
Definition at line 73 of file GroupedCkfTrajectoryBuilder.h.
References BaseCkfTrajectoryBuilder::theEstimator.
Referenced by rebuildSeedingRegion().
|
private |
intermediate cleaning in the case of grouped measurements
im1->recHit()->hit()->sharesInput(im2->recHit()->hit(), TrackingRecHit::all) ) {
im1->recHit()->hit()->sharesInput(im2->recHit()->hit(), TrackingRecHit::all) ) {
Definition at line 706 of file GroupedCkfTrajectoryBuilder.cc.
References lumiContext::fill, align_cfg::firstValid, TempTrajectory::isValid(), LayerTriplets::layers(), cmsutils::bqueue< T >::rbegin(), cmsutils::bqueue< T >::rend(), TrackingRecHit::some, lumiQTWidget::t, and tkxor().
Referenced by groupedLimitedCandidates().
|
private |
Definition at line 332 of file GroupedCkfTrajectoryBuilder.cc.
References advanceOneLayer(), edmScanValgrind::buffer, objects.IsoTrackAnalyzer::candidates, TrajectoryStateOnSurface::charge(), IntermediateTrajectoryCleaner::clean(), TrajectoryStateOnSurface::curvilinearError(), PrintoutHelper::dumpCandidates(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), groupedIntermediaryClean(), mps_fire::i, checklumidiff::l, TempTrajectory::lastLayer(), LogDebug, CurvilinearTrajectoryError::matrix(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), ForwardDetLayer::specificSurface(), BarrelDetLayer::specificSurface(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, theFoundHitBonus, theIntermediateCleaning, theLostHitPenalty, theMaxCand, and PV3DBase< T, PVType, FrameType >::z().
Referenced by buildTrajectories(), and rebuildSeedingRegion().
|
inline |
Chi**2 Penalty for each lost hit.
Definition at line 85 of file GroupedCkfTrajectoryBuilder.h.
|
inline |
Mass hypothesis used for propagation.
Definition at line 94 of file GroupedCkfTrajectoryBuilder.h.
References iEvent, and BaseCkfTrajectoryBuilder::setEvent_().
Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().
|
inline |
Maximum number of trajectory candidates to propagate to the next layer.
Definition at line 81 of file GroupedCkfTrajectoryBuilder.h.
|
inlinestaticprivate |
change of propagation direction
Definition at line 159 of file GroupedCkfTrajectoryBuilder.h.
References alongMomentum, dir, and oppositeToMomentum.
Referenced by backwardFit().
|
inline |
Pt cut.
Tells whether an intermediary cleaning stage should take place during TB.
Definition at line 91 of file GroupedCkfTrajectoryBuilder.h.
|
overridevirtual |
trajectories re-building in the seeding region. It looks for additional measurements in the seeding region of the intial trajectories. Only valid trajectories are returned. Invalid ones are dropped from the input collection.
Reimplemented from TrajectoryBuilder.
Definition at line 215 of file GroupedCkfTrajectoryBuilder.cc.
References BaseCkfTrajectoryBuilder::createStartingTrajectory(), and rebuildTrajectories().
Referenced by rebuildSeedingRegion(), and rebuildTrajectories().
|
private |
try to find additional hits in seeding region
Definition at line 827 of file GroupedCkfTrajectoryBuilder.cc.
References backwardFit(), BaseCkfTrajectoryBuilder::backwardPropagator(), estimator(), BaseCkfTrajectoryBuilder::hitBuilder(), mps_fire::i, TempTrajectory::isValid(), LogDebug, eostools::move(), rebuildSeedingRegion(), TrajectorySeed::recHits(), theKeepOriginalIfRebuildFails, UNLIKELY, and updator().
|
private |
Definition at line 898 of file GroupedCkfTrajectoryBuilder.cc.
References BaseCkfTrajectoryBuilder::backwardPropagator(), gather_cfg::cout, TrajectorySeed::direction(), TempTrajectory::direction(), PrintoutHelper::dumpCandidates(), PrintoutHelper::dumpMeasurements(), groupedLimitedCandidates(), LogDebug, TempTrajectory::measurements(), TrajectorySeed::nHits(), TempTrajectory::push(), TempTrajectory::setNLoops(), cmsutils::bqueue< T >::size(), theRequireSeedHitsInRebuild, and verifyHits().
|
overridevirtual |
Reimplemented from BaseCkfTrajectoryBuilder.
Definition at line 223 of file GroupedCkfTrajectoryBuilder.cc.
References FastTrajectoryCleaner::clean(), eostools::move(), rebuildSeedingRegion(), theFoundHitBonus, theLostHitPenalty, and edmIntegrityCheck::work.
Referenced by rebuildSeedingRegion().
|
overrideprotectedvirtual |
Implements BaseCkfTrajectoryBuilder.
Definition at line 172 of file GroupedCkfTrajectoryBuilder.cc.
|
inlineprivate |
Definition at line 113 of file GroupedCkfTrajectoryBuilder.h.
References a, b, dso_internal, hfClusterShapes_cfi::hits, CMSBoostedTauSeedingParameters_cfi::maxDepth, PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator, and TrajectoryBuilder::rebuildSeedingRegion().
Referenced by groupedIntermediaryClean().
|
overridevirtual |
set Event for the internal MeasurementTracker data member
trajectories building starting from a seed
Implements TrajectoryBuilder.
Definition at line 176 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories(), and tmp.
|
overridevirtual |
trajectories building starting from a seed, return in an already allocated vector
Reimplemented from TrajectoryBuilder.
Definition at line 198 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories(), and tmp.
GroupedCkfTrajectoryBuilder::TrajectoryContainer GroupedCkfTrajectoryBuilder::trajectories | ( | const TrajectorySeed & | seed, |
const TrackingRegion & | region | ||
) | const |
trajectories building starting from a seed with a region
Definition at line 186 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories(), and tmp.
void GroupedCkfTrajectoryBuilder::trajectories | ( | const TrajectorySeed & | seed, |
GroupedCkfTrajectoryBuilder::TrajectoryContainer & | ret, | ||
const TrackingRegion & | region | ||
) | const |
trajectories building starting from a seed with a region
Definition at line 205 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories(), and tmp.
|
inline |
Definition at line 72 of file GroupedCkfTrajectoryBuilder.h.
References BaseCkfTrajectoryBuilder::theUpdator.
Referenced by rebuildSeedingRegion().
|
private |
Verifies presence of a RecHits in a range of TrajectoryMeasurements.
Definition at line 1133 of file GroupedCkfTrajectoryBuilder.cc.
References LogDebug, CMSBoostedTauSeedingParameters_cfi::maxDepth, and TrackingRecHit::some.
Referenced by rebuildSeedingRegion().
|
private |
Definition at line 205 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
If the value is greater than zero, the reconstructions for looper is turned on for candidates with pt greater than maxPtForLooperReconstruction
Definition at line 203 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Definition at line 186 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Use only best hit / group when building segments
Definition at line 189 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Chi**2 Cut on the new Trajectory Measurements to consider
Definition at line 172 of file GroupedCkfTrajectoryBuilder.h.
|
private |
Definition at line 167 of file GroupedCkfTrajectoryBuilder.h.
|
private |
Chi**2 bonus for each found hit (favours candidates with more measurements)
Definition at line 181 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories(), GroupedCkfTrajectoryBuilder(), groupedLimitedCandidates(), and rebuildTrajectories().
|
private |
Tells whether an intermediary cleaning stage should take place during TB.
Definition at line 183 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and groupedLimitedCandidates().
|
private |
Keep original trajectory if rebuilding fails.
Definition at line 198 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and rebuildSeedingRegion().
|
private |
Lock hits when building segments in a layer
Definition at line 188 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Chi**2 Penalty for each lost hit.
Definition at line 180 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories(), GroupedCkfTrajectoryBuilder(), groupedLimitedCandidates(), and rebuildTrajectories().
|
private |
Mass hypothesis used for propagation
Definition at line 176 of file GroupedCkfTrajectoryBuilder.h.
|
private |
Maximum number of trajectory candidates to propagate to the next layer.
Definition at line 178 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), GroupedCkfTrajectoryBuilder(), and groupedLimitedCandidates().
|
private |
Minimum nr. of non-seed 2D hits required for rebuild.
Definition at line 196 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder().
|
private |
Minimum nr. of non-seed hits required for rebuild. If ==0 the seeding part will remain untouched.
Definition at line 193 of file GroupedCkfTrajectoryBuilder.h.
Referenced by backwardFit(), and GroupedCkfTrajectoryBuilder().
|
private |
ptCut
Definition at line 174 of file GroupedCkfTrajectoryBuilder.h.
|
private |
Only accept rebuilt trajectories if they contain the seed hits.
Definition at line 191 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and rebuildSeedingRegion().