CMS 3D CMS Logo

CkfDebugTrajectoryBuilder.h
Go to the documentation of this file.
1 #ifndef CkfDebugTrajectoryBuilder_H
2 #define CkfDebugTrajectoryBuilder_H
3 
5 #include "CkfDebugger.h"
8 
10 public:
13  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::CkfDebugTrajectoryBuilder";
14  }
15 
16  void setDebugger(CkfDebugger* dbg) const override { theDbg = dbg; }
17  virtual CkfDebugger* debugger() const { return theDbg; }
18 
19 private:
20  mutable CkfDebugger* theDbg;
22  const std::vector<TM>& meas,
24  const Propagator* theForwardPropagator,
26  const TransientTrackingRecHitBuilder* theTTRHBuilder) const override {
28  traj.toTrajectory(), meas, theMeasurementTracker, theForwardPropagator, theEstimator, theTTRHBuilder);
29  };
31  const std::vector<TM>& meas,
33  const Propagator* theForwardPropagator,
35  const TransientTrackingRecHitBuilder* theTTRHBuilder) const override {
37  traj, meas, theMeasurementTracker, theForwardPropagator, theEstimator, theTTRHBuilder);
38  };
39  void fillSeedHistoDebugger(std::vector<TrajectoryMeasurement>::iterator begin,
40  std::vector<TrajectoryMeasurement>::iterator end) const override {
41  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::fillSeedHistoDebugger "<<theDbg;
42  if (end - begin >= 2)
43  theDbg->fillSeedHist(begin->recHit(), (begin + 1)->recHit(), (begin + 1)->updatedState());
44  };
45 };
46 #endif
bool analyzeMeasurementsDebugger(Trajectory &traj, const std::vector< TM > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const override
virtual CkfDebugger * debugger() const
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
const TransientTrackingRecHitBuilder * theTTRHBuilder
void fillSeedHistoDebugger(std::vector< TrajectoryMeasurement >::iterator begin, std::vector< TrajectoryMeasurement >::iterator end) const override
void setDebugger(CkfDebugger *dbg) const override
bool analyzeMeasurementsDebugger(TempTrajectory &traj, const std::vector< TM > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const override
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
Definition: CkfDebugger.h:60
const MeasurementTrackerEvent * theMeasurementTracker
Trajectory toTrajectory() const
Convert to a standard Trajectory.
CkfDebugTrajectoryBuilder(const edm::ParameterSet &conf, edm::ConsumesCollector iC)
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTrackerEvent *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
Definition: CkfDebugger.cc:196
const Chi2MeasurementEstimatorBase * theEstimator