CMS 3D CMS Logo

CkfDebugTrajectoryBuilder.h
Go to the documentation of this file.
1 #ifndef CkfDebugTrajectoryBuilder_H
2 #define CkfDebugTrajectoryBuilder_H
3 
7 
8 
10  public:
13  {
14  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::CkfDebugTrajectoryBuilder";
15  }
16 
17 
18  virtual void setDebugger( CkfDebugger * dbg) const { 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 MeasurementTracker* theMeasurementTracker, const Propagator* theForwardPropagator,
27  return theDbg->analyseCompatibleMeasurements(traj.toTrajectory(),meas,theMeasurementTracker,theForwardPropagator,theEstimator,theTTRHBuilder);
28  };
29  bool analyzeMeasurementsDebugger(Trajectory& traj, const std::vector<TM>& meas,
30  const MeasurementTracker* theMeasurementTracker, const Propagator* theForwardPropagator,
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 {
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
#define nullptr
bool analyzeMeasurementsDebugger(TempTrajectory &traj, const std::vector< TM > &meas, const MeasurementTracker *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const
Trajectory toTrajectory() const
Convert to a standard Trajectory.
const TransientTrackingRecHitBuilder * theTTRHBuilder
#define end
Definition: vmac.h:37
virtual CkfDebugger * debugger() const
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
Definition: CkfDebugger.h:53
const MeasurementTrackerEvent * theMeasurementTracker
bool analyzeMeasurementsDebugger(Trajectory &traj, const std::vector< TM > &meas, const MeasurementTracker *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const
#define begin
Definition: vmac.h:30
void fillSeedHistoDebugger(std::vector< TrajectoryMeasurement >::iterator begin, std::vector< TrajectoryMeasurement >::iterator end) const
CkfDebugTrajectoryBuilder(const edm::ParameterSet &conf)
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTracker *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
Definition: CkfDebugger.cc:197
const Chi2MeasurementEstimatorBase * theEstimator
virtual void setDebugger(CkfDebugger *dbg) const