CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
12  : CkfTrajectoryBuilder(conf, iC, std::unique_ptr<TrajectoryFilter>{}) {
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 {
27  return theDbg->analyseCompatibleMeasurements(
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 {
36  return theDbg->analyseCompatibleMeasurements(
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
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Trajectory toTrajectory() const
Convert to a standard Trajectory.
const TransientTrackingRecHitBuilder * theTTRHBuilder
void fillSeedHistoDebugger(std::vector< TrajectoryMeasurement >::iterator begin, std::vector< TrajectoryMeasurement >::iterator end) 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
const MeasurementTrackerEvent * theMeasurementTracker
CkfDebugTrajectoryBuilder(const edm::ParameterSet &conf, edm::ConsumesCollector iC)
string end
Definition: dataset.py:937
virtual void setDebugger(CkfDebugger *dbg) const
const Chi2MeasurementEstimatorBase * theEstimator