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()};
54 auto const & clus = thit.firstClusterRef();
55 if (clus.isPixel())
return std::unique_ptr<TrackingRecHit>{hit.
clone()};
56 else if (thit.isMatched()) {
57 LogDebug(
"MultiRecHitCollector") <<
" SiStripMatchedRecHit2D to check!!!";
58 return std::unique_ptr<TrackingRecHit>{hit.
clone()};
59 }
else if (thit.isProjected()) {
60 edm::LogError(
"MultiRecHitCollector") <<
" ProjectedSiStripRecHit2D should not be present at this stage!!!";
61 return std::unique_ptr<TrackingRecHit>{hit.
clone()};
62 }
else return clone(thit);
66 auto const & detU = *hit2D.
detUnit();
68 bool endcap = detU.type().isEndcap();
69 if (endcap)
return std::unique_ptr<TrackingRecHit>{hit2D.
clone()};
70 return std::unique_ptr<TrackingRecHit>{
virtual ~SimpleDAFHitCollector()
virtual int dimension() const =0
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
virtual std::vector< TrajectoryMeasurement > recHits(const Trajectory &, const MeasurementTrackerEvent *theMTE) const override
const GeomDet * det() const
std::unique_ptr< TrackingRecHit > clone(BaseTrackerRecHit const &hit2D) const
const Propagator * thePropagator
const Propagator * getPropagator() const
virtual TrackingRecHit * clone() const =0
virtual OmniClusterRef const & firstClusterRef() const =0
TkClonerImpl theHitCloner
virtual const GeomDetUnit * detUnit() const
const TransientTrackingRecHitBuilder * getBuilder() const
virtual LocalError localPositionError() const final
virtual LocalPoint localPosition() const final
const SiTrackerMultiRecHitUpdator * theUpdator