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  const MeasurementTracker* measurementTracker) :
19  CkfTrajectoryBuilder( conf,updator,propagatorAlong,propagatorOpposite,estimator,RecHitBuilder,measurementTracker,0)
20  {
21  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::CkfDebugTrajectoryBuilder";
22  }
23 
24  virtual void setDebugger( CkfDebugger * dbg) const { theDbg = dbg;}
25  virtual CkfDebugger * debugger() const{ return theDbg;}
26 
27  private:
28  mutable CkfDebugger * theDbg;
29  bool analyzeMeasurementsDebugger(TempTrajectory& traj, std::vector<TM> meas,
34  };
35  bool analyzeMeasurementsDebugger(Trajectory& traj, std::vector<TM> meas,
39  return theDbg->analyseCompatibleMeasurements(traj,meas,theMeasurementTracker,theForwardPropagator,theEstimator,theTTRHBuilder);
40  };
41  void fillSeedHistoDebugger(std::vector<TrajectoryMeasurement>::iterator begin,
42  std::vector<TrajectoryMeasurement>::iterator end) const {
43  //edm::LogVerbatim("CkfDebugger") <<"CkfDebugTrajectoryBuilder::fillSeedHistoDebugger "<<theDbg;
44  if (end-begin>=2)
45  theDbg->fillSeedHist(begin->recHit(),(begin+1)->recHit(),(begin+1)->updatedState());
46  };
47 
48 };
49 #endif
bool analyzeMeasurementsDebugger(Trajectory &traj, 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
CkfDebugTrajectoryBuilder(const edm::ParameterSet &conf, const TrajectoryStateUpdator *updator, const Propagator *propagatorAlong, const Propagator *propagatorOpposite, const Chi2MeasurementEstimatorBase *estimator, const TransientTrackingRecHitBuilder *RecHitBuilder, const MeasurementTracker *measurementTracker)
#define end
Definition: vmac.h:38
virtual CkfDebugger * debugger() const
void fillSeedHist(CTTRHp h1, CTTRHp h2, TrajectoryStateOnSurface t)
Definition: CkfDebugger.h:58
tuple conf
Definition: dbtoconf.py:185
bool analyzeMeasurementsDebugger(TempTrajectory &traj, std::vector< TM > meas, const MeasurementTracker *theMeasurementTracker, const Propagator *theForwardPropagator, const Chi2MeasurementEstimatorBase *theEstimator, const TransientTrackingRecHitBuilder *theTTRHBuilder) const
const MeasurementTracker * theMeasurementTracker
#define begin
Definition: vmac.h:31
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:186
const Chi2MeasurementEstimatorBase * theEstimator
virtual void setDebugger(CkfDebugger *dbg) const
const Propagator * theForwardPropagator