CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CkfDebugTrajectoryBuilder.h
Go to the documentation of this file.
1 #ifndef CkfDebugTrajectoryBuilder_H
2 #define CkfDebugTrajectoryBuilder_H
3 
7 
8 
10  public:
11 
13  const TrajectoryStateUpdator* updator,
14  const Propagator* propagatorAlong,
15  const Propagator* propagatorOpposite,
16  const Chi2MeasurementEstimatorBase* estimator,
17  const TransientTrackingRecHitBuilder* RecHitBuilder) :
18  CkfTrajectoryBuilder( conf,updator,propagatorAlong,propagatorOpposite,estimator,RecHitBuilder,0)
19  {
20  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::CkfDebugTrajectoryBuilder";
21  }
22 
23  virtual void setDebugger( CkfDebugger * dbg) const { theDbg = dbg;}
24  virtual CkfDebugger * debugger() const{ return theDbg;}
25 
26  private:
27  mutable CkfDebugger * theDbg;
28  bool analyzeMeasurementsDebugger(TempTrajectory& traj, const std::vector<TM>& meas,
33  };
34  bool analyzeMeasurementsDebugger(Trajectory& traj, const std::vector<TM>& meas,
38  return theDbg->analyseCompatibleMeasurements(traj,meas,theMeasurementTracker,theForwardPropagator,theEstimator,theTTRHBuilder);
39  };
40  void fillSeedHistoDebugger(std::vector<TrajectoryMeasurement>::iterator begin,
41  std::vector<TrajectoryMeasurement>::iterator end) const {
42  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::fillSeedHistoDebugger "<<theDbg;
43  if (end-begin>=2)
44  theDbg->fillSeedHist(begin->recHit(),(begin+1)->recHit(),(begin+1)->updatedState());
45  };
46 
47 };
48 #endif
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
CkfDebugTrajectoryBuilder(const edm::ParameterSet &conf, const TrajectoryStateUpdator *updator, const Propagator *propagatorAlong, const Propagator *propagatorOpposite, const Chi2MeasurementEstimatorBase *estimator, const TransientTrackingRecHitBuilder *RecHitBuilder)
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
Definition: CkfDebugger.h:53
tuple conf
Definition: dbtoconf.py:185
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
bool analyseCompatibleMeasurements(const Trajectory &, const std::vector< TrajectoryMeasurement > &, const MeasurementTracker *, const Propagator *, const Chi2MeasurementEstimatorBase *, const TransientTrackingRecHitBuilder *)
Definition: CkfDebugger.cc:192
const Chi2MeasurementEstimatorBase * theEstimator
virtual void setDebugger(CkfDebugger *dbg) const
const Propagator * theForwardPropagator