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:
12  CkfTrajectoryBuilder(conf, std::unique_ptr<TrajectoryFilter>{})
13  {
14  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::CkfDebugTrajectoryBuilder";
15  }
16 
17 
18  void setDebugger( CkfDebugger * dbg) const override { theDbg = dbg;}
19  virtual CkfDebugger * debugger() const{ return theDbg;}
20 
21  private:
22  mutable CkfDebugger * theDbg;
23  bool analyzeMeasurementsDebugger(TempTrajectory& traj, const std::vector<TM>& meas,
24  const MeasurementTrackerEvent* theMeasurementTracker, const Propagator* theForwardPropagator,
26  const TransientTrackingRecHitBuilder * theTTRHBuilder) const override {
27  return theDbg->analyseCompatibleMeasurements(traj.toTrajectory(),meas,theMeasurementTracker,theForwardPropagator,theEstimator,theTTRHBuilder);
28  };
29  bool analyzeMeasurementsDebugger(Trajectory& traj, const std::vector<TM>& meas,
30  const MeasurementTrackerEvent* theMeasurementTracker, const Propagator* theForwardPropagator,
32  const TransientTrackingRecHitBuilder * theTTRHBuilder) const override {
33  return theDbg->analyseCompatibleMeasurements(traj,meas,theMeasurementTracker,theForwardPropagator,theEstimator,theTTRHBuilder);
34  };
35  void fillSeedHistoDebugger(std::vector<TrajectoryMeasurement>::iterator begin,
36  std::vector<TrajectoryMeasurement>::iterator end) const override {
37  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::fillSeedHistoDebugger "<<theDbg;
38  if (end-begin>=2)
39  theDbg->fillSeedHist(begin->recHit(),(begin+1)->recHit(),(begin+1)->updatedState());
40  };
41 
42 };
43 #endif
bool analyzeMeasurementsDebugger(TempTrajectory &traj, const std::vector< TM > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const override
Trajectory toTrajectory() const
Convert to a standard Trajectory.
const TransientTrackingRecHitBuilder * theTTRHBuilder
#define end
Definition: vmac.h:39
virtual CkfDebugger * debugger() const
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
Definition: CkfDebugger.h:53
const MeasurementTrackerEvent * theMeasurementTracker
void fillSeedHistoDebugger(std::vector< TrajectoryMeasurement >::iterator begin, std::vector< TrajectoryMeasurement >::iterator end) const override
#define begin
Definition: vmac.h:32
CkfDebugTrajectoryBuilder(const edm::ParameterSet &conf)
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTrackerEvent *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
Definition: CkfDebugger.cc:197
bool analyzeMeasurementsDebugger(Trajectory &traj, const std::vector< TM > &meas, const MeasurementTrackerEvent *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const override
void setDebugger(CkfDebugger *dbg) const override
const Chi2MeasurementEstimatorBase * theEstimator