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"
7 
8 
10  public:
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 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 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
#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:39
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
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 MeasurementTracker *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
Definition: CkfDebugger.cc:197
void setDebugger(CkfDebugger *dbg) const override
const Chi2MeasurementEstimatorBase * theEstimator