1 #ifndef SiTrackerMRHTools_SimpleDAFHitCollector_h 2 #define SiTrackerMRHTools_SimpleDAFHitCollector_h 43 void Debug(
const std::vector<TrajectoryMeasurement> TM )
const;
51 return std::unique_ptr<TrackingRecHit>{hit.
clone()};
55 if (clus.isPixel())
return std::unique_ptr<TrackingRecHit>{hit.
clone()};
56 else if (clus.isPhase2())
return std::unique_ptr<TrackingRecHit>{hit.
clone()};
57 else if (thit.isMatched()) {
58 LogDebug(
"MultiRecHitCollector") <<
" SiStripMatchedRecHit2D to check!!!";
59 return std::unique_ptr<TrackingRecHit>{hit.
clone()};
60 }
else if (thit.isProjected()) {
61 edm::LogError(
"MultiRecHitCollector") <<
" ProjectedSiStripRecHit2D should not be present at this stage!!!";
62 return std::unique_ptr<TrackingRecHit>{hit.
clone()};
63 }
else return clone(thit);
67 auto const & detU = *hit2D.
detUnit();
69 bool endcap = detU.type().isEndcap();
70 if (endcap)
return std::unique_ptr<TrackingRecHit>{hit2D.
clone()};
71 return std::unique_ptr<TrackingRecHit>{
virtual ~SimpleDAFHitCollector()
SimpleDAFHitCollector(const MeasurementTracker *measurementTracker, const SiTrackerMultiRecHitUpdator *updator, const MeasurementEstimator *est, const Propagator *propagator, bool debug)
void Debug(const std::vector< TrajectoryMeasurement > TM) const
const MeasurementEstimator * getEstimator() const
const SiTrackerMultiRecHitUpdator * getUpdator() const
std::unique_ptr< TrackingRecHit > rightdimension(TrackingRecHit const &hit) const
const MeasurementEstimator * theEstimator
const GeomDet * det() const
virtual int dimension() const =0
std::unique_ptr< TrackingRecHit > clone(BaseTrackerRecHit const &hit2D) const
virtual TrackingRecHit * clone() const =0
const Propagator * thePropagator
const Propagator * getPropagator() const
virtual LocalPoint localPosition() const final
virtual std::vector< TrajectoryMeasurement > recHits(const Trajectory &, const MeasurementTrackerEvent *theMTE) const override
TkClonerImpl theHitCloner
virtual const GeomDetUnit * detUnit() const
virtual OmniClusterRef const & firstClusterRef() const =0
const TransientTrackingRecHitBuilder * getBuilder() const
virtual LocalError localPositionError() const final
const SiTrackerMultiRecHitUpdator * theUpdator