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