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 (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()
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