|
|
Go to the documentation of this file.
19 : thePropagator(aPropagator.
clone()),
20 theUpdator(aUpdator.
clone()),
21 theEstimator(aEstimator.
clone()),
22 theMerger(aMerger.
clone()),
23 theGeometry(detLayerGeometry) {
46 edm::LogError(
"GsfTrajectoryFitter") <<
"GsfTrajectoryFitter::fit(TrajectorySeed, vector<RecHit>) not implemented";
60 TSOS predTsos(firstPredTsos);
62 edm::LogInfo(
"GsfTrackFitters") <<
"GsfTrajectoryFitter: predicted tsos of first measurement not valid!";
67 if (
hits.front()->isValid()) {
68 auto const& ihit =
hits.front();
71 assert((!(ihit)->canImproveWithTrack()) | (
nullptr != dynamic_cast<BaseTrackerRecHit const*>(ihit.get())));
73 dump(*preciseHit, 1,
"GsfTrackFitters");
91 for (RecHitContainer::const_iterator ihit =
hits.begin() + 1; ihit !=
hits.end(); ihit++) {
97 if ((**ihit).isValid() ==
false && (**ihit).det() ==
nullptr) {
98 LogDebug(
"GsfTrackFitters") <<
" Error: invalid hit with no GeomDet attached .... skipping";
108 edm::LogInfo(
"GsfTrackFitters") <<
"GsfTrajectoryFitter: predicted tsos not valid! \n"
109 <<
"Returning trajectory with " << myTraj.
foundHits() <<
" found hits.";
112 edm::LogInfo(
"GsfTrackFitters") <<
"GsfTrajectoryFitter: predicted tsos not valid after " << myTraj.
foundHits()
113 <<
" hits, discarding candidate!";
120 if ((**ihit).isValid()) {
123 assert((!(*ihit)->canImproveWithTrack()) | (
nullptr != dynamic_cast<BaseTrackerRecHit const*>((*ihit).get())));
125 dump(*preciseHit, hitcounter,
"GsfTrackFitters");
133 LogDebug(
"GsfTrackFitters") <<
"added measurement with chi2 " <<
chi2;
142 dump(predTsos,
"predTsos",
"GsfTrackFitters");
143 dump(currTsos,
"currTsos",
"GsfTrackFitters");
const MeasurementEstimator * estimator() const
const TrajectoryStateUpdator * updator() const
virtual const DetLayer * idToLayer(const DetId &detId) const
TrajectoryStateOnSurface merge(const TrajectoryStateOnSurface &tsos) const
TrajectoryStateOnSurface const & updatedState() const
Log< level::Info, false > LogInfo
~GsfTrajectoryFitter() override
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const =0
const MeasurementEstimator * theEstimator
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
const DetLayerGeometry * theGeometry
Trajectory fitOne(const Trajectory &t, fitType type) const override
virtual TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const =0
TrackingRecHit::ConstRecHitPointer makeShared(TrackingRecHit::ConstRecHitPointer const &hit, TrajectoryStateOnSurface const &tsos) const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Log< level::Error, false > LogError
void push(const TrajectoryMeasurement &tm)
const TrajectoryStateUpdator * theUpdator
ConstRecHitContainer recHits() const
TrajectoryMeasurement const & firstMeasurement() const
GsfTrajectoryFitter(const Propagator &aPropagator, const TrajectoryStateUpdator &aUpdator, const MeasurementEstimator &aEstimator, const MultiTrajectoryStateMerger &aMerger, const DetLayerGeometry *detLayerGeometry=nullptr)
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
const MultiTrajectoryStateMerger * merger() const
const Propagator * propagator() const
const SurfaceType & surface() const
const Propagator * thePropagator
TkCloner const * theHitCloner
const DetLayerGeometry dummyGeometry
Trajectory::RecHitContainer RecHitContainer
const MultiTrajectoryStateMerger * theMerger
bool empty() const
True if trajectory has no measurements.