#include <GroupedCkfTrajectoryBuilder.h>
Public Member Functions | |
TempTrajectory | buildTrajectories (const TrajectorySeed &seed, TrajectoryContainer &ret, const TrajectoryFilter *) const |
common part of both public trajectory building methods More... | |
double | chiSquareCut () |
virtual GroupedCkfTrajectoryBuilder * | clone (const MeasurementTrackerEvent *data) const |
const Chi2MeasurementEstimatorBase & | estimator () const |
GroupedCkfTrajectoryBuilder (const edm::ParameterSet &conf, const TrajectoryStateUpdator *updator, const Propagator *propagatorAlong, const Propagator *propagatorOpposite, const Chi2MeasurementEstimatorBase *estimator, const TransientTrackingRecHitBuilder *RecHitBuilder, const TrajectoryFilter *filter, const TrajectoryFilter *inOutFilter) | |
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 |
void | rebuildTrajectories (TempTrajectory const &startingTraj, const TrajectorySeed &, TrajectoryContainer &result) const |
TrajectoryContainer | trajectories (const TrajectorySeed &) const |
set Event for the internal MeasurementTracker data member More... | |
void | trajectories (const TrajectorySeed &, TrajectoryContainer &ret) const |
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 |
virtual | ~GroupedCkfTrajectoryBuilder () |
destructor More... | |
Public Member Functions inherited from BaseCkfTrajectoryBuilder | |
BaseCkfTrajectoryBuilder (const edm::ParameterSet &conf, const TrajectoryStateUpdator *updator, const Propagator *propagatorAlong, const Propagator *propagatorOpposite, const Chi2MeasurementEstimatorBase *estimator, const TransientTrackingRecHitBuilder *RecHitBuilder, const TrajectoryFilter *filter, const TrajectoryFilter *inOutFilter=0) | |
BaseCkfTrajectoryBuilder (const BaseCkfTrajectoryBuilder &other)=default | |
virtual void | setDebugger (CkfDebugger *dbg) const |
virtual void | setEvent (const edm::Event &event) const |
virtual void | unset () const |
virtual | ~BaseCkfTrajectoryBuilder () |
Public Member Functions inherited from TrajectoryBuilder | |
virtual | ~TrajectoryBuilder () |
Private Types | |
enum | work_MaxSize_Size_ { work_MaxSize_ = 50 } |
Private Member Functions | |
bool | advanceOneLayer (TempTrajectory &traj, const TrajectoryFilter *regionalCondition, const Propagator *propagator, bool inOut, TempTrajectoryContainer &newCand, TempTrajectoryContainer &result) const dso_internal |
TempTrajectory | backwardFit (TempTrajectory &candidate, unsigned int nSeed, const TrajectoryFitter &fitter, std::vector< const TrackingRecHit * > &remainingHits) const dso_internal |
void | groupedIntermediaryClean (TempTrajectoryContainer &theTrajectories) const dso_internal |
intermediate cleaning in the case of grouped measurements More... | |
void | groupedLimitedCandidates (TempTrajectory const &startingTraj, const TrajectoryFilter *regionalCondition, const Propagator *propagator, bool inOut, TempTrajectoryContainer &result) const dso_internal |
void | rebuildSeedingRegion (const TrajectorySeed &seed, TempTrajectory const &startingTraj, TempTrajectoryContainer &result) const dso_internal |
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 dso_internal |
bool | tkxor (bool a, bool b) const dso_internal |
bool | verifyHits (TempTrajectory::DataContainer::const_iterator rbegin, size_t maxDepth, const std::vector< const TrackingRecHit * > &hits) const dso_internal |
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 |
TempTrajectoryContainer | work_ |
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 213 of file GroupedCkfTrajectoryBuilder.h.
GroupedCkfTrajectoryBuilder::GroupedCkfTrajectoryBuilder | ( | const edm::ParameterSet & | conf, |
const TrajectoryStateUpdator * | updator, | ||
const Propagator * | propagatorAlong, | ||
const Propagator * | propagatorOpposite, | ||
const Chi2MeasurementEstimatorBase * | estimator, | ||
const TransientTrackingRecHitBuilder * | RecHitBuilder, | ||
const TrajectoryFilter * | filter, | ||
const TrajectoryFilter * | inOutFilter | ||
) |
constructor from ParameterSet
Definition at line 111 of file GroupedCkfTrajectoryBuilder.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), max(), maxDPhiForLooperReconstruction, maxPt2ForLooperReconstruction, theAlwaysUseInvalid, theBestHitOnly, theFoundHitBonus, theIntermediateCleaning, theKeepOriginalIfRebuildFails, theLockHits, theLostHitPenalty, theMaxCand, theMinNrOf2dHitsForRebuild, theMinNrOfHitsForRebuild, and theRequireSeedHitsInRebuild.
Referenced by clone().
|
inlinevirtual |
|
private |
Definition at line 427 of file GroupedCkfTrajectoryBuilder.cc.
References funct::abs(), BaseCkfTrajectoryBuilder::addToResult(), PV3DBase< T, PVType, FrameType >::basicVector(), TransverseImpactPointExtrapolator::extrapolate(), f, BaseCkfTrajectoryBuilder::findStateAndLayers(), TempTrajectory::foundHits(), cmsutils::bqueue< T >::front(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), TempTrajectory::incrementLoops(), TrajectoryStateOnSurface::isValid(), TempTrajectory::join(), TempTrajectory::lastLayer(), Bounds::length(), DetLayer::location(), LogDebug, maxDPhiForLooperReconstruction, maxPt2ForLooperReconstruction, TempTrajectory::measurements(), MeasurementTrackerEvent::measurementTracker(), TrackingRecHit::missing, BaseCkfTrajectoryBuilder::moveToResult(), PV3DBase< T, PVType, FrameType >::phi(), Propagator::propagationDirection(), cmsutils::bqueue< T >::rbegin(), TrajectoryMeasurement::recHit(), rejected(), cmsutils::bqueue< T >::rend(), TempTrajectory::setDPhiCacheForLoopersReconstruction(), cmsutils::bqueue< T >::size(), BarrelDetLayer::specificSurface(), filterCSVwithJSON::target, theAlwaysUseInvalid, theBestHitOnly, BaseCkfTrajectoryBuilder::theEstimator, BaseCkfTrajectoryBuilder::theForwardPropagator, theLockHits, BaseCkfTrajectoryBuilder::theMeasurementTracker, BaseCkfTrajectoryBuilder::theUpdator, BaseCkfTrajectoryBuilder::toBeContinued(), TrajectoryStateOnSurface::transverseCurvature(), unlikely, and PV3DBase< T, PVType, FrameType >::z().
Referenced by groupedLimitedCandidates().
|
inlineprotectedvirtual |
Definition at line 108 of file GroupedCkfTrajectoryBuilder.h.
|
inlineprotectedvirtual |
Definition at line 110 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories().
|
inlineprotectedvirtual |
Definition at line 106 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories().
|
private |
Definition at line 981 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, max(), Trajectory::measurements(), TempTrajectory::measurements(), 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().
|
virtual |
common part of both public trajectory building methods
Reimplemented from BaseCkfTrajectoryBuilder.
Definition at line 251 of file GroupedCkfTrajectoryBuilder.cc.
References analyseResult(), analyseSeed(), BaseCkfTrajectoryBuilder::createStartingTrajectory(), edm::hlt::Exception, groupedLimitedCandidates(), LogDebug, BaseCkfTrajectoryBuilder::theForwardPropagator, BaseCkfTrajectoryBuilder::theMeasurementTracker, work_, and work_MaxSize_.
Referenced by trajectories().
|
inline |
Chi**2 Cut on the new Trajectory Measurements to consider
Definition at line 86 of file GroupedCkfTrajectoryBuilder.h.
References theChiSquareCut.
|
virtual |
Implements BaseCkfTrajectoryBuilder.
Definition at line 167 of file GroupedCkfTrajectoryBuilder.cc.
References GroupedCkfTrajectoryBuilder(), run_regression::ret, and BaseCkfTrajectoryBuilder::setData().
|
inline |
Definition at line 81 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 672 of file GroupedCkfTrajectoryBuilder.cc.
References lumiContext::fill, ecalTPGAnalyzer_cfg::firstValid, TempTrajectory::isValid(), TempTrajectory::lastMeasurement(), LayerTriplets::layers(), cmsutils::bqueue< T >::rbegin(), TrajectoryMeasurement::recHitR(), cmsutils::bqueue< T >::rend(), TrackingRecHit::some, and tkxor().
Referenced by groupedLimitedCandidates().
|
private |
Definition at line 308 of file GroupedCkfTrajectoryBuilder.cc.
References advanceOneLayer(), IntermediateTrajectoryCleaner::clean(), PrintoutHelper::dumpCandidates(), groupedIntermediaryClean(), LogDebug, python.multivaluedict::sort(), theFoundHitBonus, theIntermediateCleaning, theLostHitPenalty, and theMaxCand.
Referenced by buildTrajectories(), and rebuildSeedingRegion().
|
inline |
Chi**2 Penalty for each lost hit.
Definition at line 93 of file GroupedCkfTrajectoryBuilder.h.
References theLostHitPenalty.
|
inline |
Mass hypothesis used for propagation.
Definition at line 102 of file GroupedCkfTrajectoryBuilder.h.
References theMass.
|
inline |
Maximum number of trajectory candidates to propagate to the next layer.
Definition at line 89 of file GroupedCkfTrajectoryBuilder.h.
References theMaxCand.
|
inlinestaticprivate |
change of propagation direction
Definition at line 164 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 99 of file GroupedCkfTrajectoryBuilder.h.
References theptCut.
|
virtual |
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 209 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 793 of file GroupedCkfTrajectoryBuilder.cc.
References backwardFit(), estimator(), TempTrajectory::isValid(), LogDebug, TempTrajectory::measurements(), rebuildSeedingRegion(), TrajectorySeed::recHits(), cmsutils::bqueue< T >::size(), BaseCkfTrajectoryBuilder::theBackwardPropagator, theKeepOriginalIfRebuildFails, unlikely, and updator().
|
private |
Definition at line 868 of file GroupedCkfTrajectoryBuilder.cc.
References gather_cfg::cout, TrajectorySeed::direction(), TempTrajectory::direction(), PrintoutHelper::dumpCandidates(), PrintoutHelper::dumpMeasurements(), groupedLimitedCandidates(), LogDebug, TempTrajectory::measurements(), TempTrajectory::push(), TempTrajectory::setNLoops(), cmsutils::bqueue< T >::size(), BaseCkfTrajectoryBuilder::theBackwardPropagator, theRequireSeedHitsInRebuild, and verifyHits().
|
virtual |
Reimplemented from BaseCkfTrajectoryBuilder.
Definition at line 217 of file GroupedCkfTrajectoryBuilder.cc.
References rebuildSeedingRegion().
Referenced by rebuildSeedingRegion().
|
inlineprivate |
Definition at line 120 of file GroupedCkfTrajectoryBuilder.h.
Referenced by groupedIntermediaryClean().
|
virtual |
set Event for the internal MeasurementTracker data member
trajectories building starting from a seed
Implements TrajectoryBuilder.
Definition at line 174 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories(), and run_regression::ret.
|
virtual |
trajectories building starting from a seed, return in an already allocated vector
Reimplemented from TrajectoryBuilder.
Definition at line 194 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories().
GroupedCkfTrajectoryBuilder::TrajectoryContainer GroupedCkfTrajectoryBuilder::trajectories | ( | const TrajectorySeed & | seed, |
const TrackingRegion & | region | ||
) | const |
trajectories building starting from a seed with a region
Definition at line 183 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories(), and run_regression::ret.
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 200 of file GroupedCkfTrajectoryBuilder.cc.
References buildTrajectories().
|
inline |
Definition at line 80 of file GroupedCkfTrajectoryBuilder.h.
References BaseCkfTrajectoryBuilder::theUpdator.
Referenced by rebuildSeedingRegion().
|
private |
Verifies presence of a RecHits in a range of TrajectoryMeasurements.
Definition at line 1108 of file GroupedCkfTrajectoryBuilder.cc.
References LogDebug, and TrackingRecHit::some.
Referenced by rebuildSeedingRegion().
|
private |
Definition at line 210 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 208 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Definition at line 191 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Use only best hit / group when building segments
Definition at line 194 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Chi**2 Cut on the new Trajectory Measurements to consider
Definition at line 177 of file GroupedCkfTrajectoryBuilder.h.
Referenced by chiSquareCut().
|
private |
Definition at line 172 of file GroupedCkfTrajectoryBuilder.h.
|
private |
Chi**2 bonus for each found hit (favours candidates with
more measurements)
Definition at line 186 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and groupedLimitedCandidates().
|
private |
Tells whether an intermediary cleaning stage should take place during TB.
Definition at line 188 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and groupedLimitedCandidates().
|
private |
Keep original trajectory if rebuilding fails.
Definition at line 203 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and rebuildSeedingRegion().
|
private |
Lock hits when building segments in a layer
Definition at line 193 of file GroupedCkfTrajectoryBuilder.h.
Referenced by advanceOneLayer(), and GroupedCkfTrajectoryBuilder().
|
private |
Chi**2 Penalty for each lost hit.
Definition at line 185 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), groupedLimitedCandidates(), and lostHitPenalty().
|
private |
Mass hypothesis used for propagation
Definition at line 181 of file GroupedCkfTrajectoryBuilder.h.
Referenced by mass().
|
private |
Maximum number of trajectory candidates
to propagate to the next layer.
Definition at line 183 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), groupedLimitedCandidates(), and maxCand().
|
private |
Minimum nr. of non-seed 2D hits required for rebuild.
Definition at line 201 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 198 of file GroupedCkfTrajectoryBuilder.h.
Referenced by backwardFit(), and GroupedCkfTrajectoryBuilder().
|
private |
|
private |
Only accept rebuilt trajectories if they contain the seed hits.
Definition at line 196 of file GroupedCkfTrajectoryBuilder.h.
Referenced by GroupedCkfTrajectoryBuilder(), and rebuildSeedingRegion().
|
mutableprivate |
Definition at line 212 of file GroupedCkfTrajectoryBuilder.h.
Referenced by buildTrajectories().