1 #ifndef SiTrackerMRHTools_SimpleDAFHitCollector_h 2 #define SiTrackerMRHTools_SimpleDAFHitCollector_h 49 void Debug(
const std::vector<TrajectoryMeasurement> TM)
const;
56 if (!
hit.isValid() || (
hit.dimension() != 2)) {
57 return std::unique_ptr<TrackingRecHit>{
hit.clone()};
60 auto const& clus = thit.firstClusterRef();
62 return std::unique_ptr<TrackingRecHit>{
hit.clone()};
63 else if (clus.isPhase2())
64 return std::unique_ptr<TrackingRecHit>{
hit.clone()};
65 else if (thit.isMatched()) {
66 LogDebug(
"MultiRecHitCollector") <<
" SiStripMatchedRecHit2D to check!!!";
67 return std::unique_ptr<TrackingRecHit>{
hit.clone()};
68 }
else if (thit.isProjected()) {
69 edm::LogError(
"MultiRecHitCollector") <<
" ProjectedSiStripRecHit2D should not be present at this stage!!!";
70 return std::unique_ptr<TrackingRecHit>{
hit.clone()};
76 auto const& detU = *hit2D.
detUnit();
78 bool endcap = detU.type().isEndcap();
80 return std::unique_ptr<TrackingRecHit>{hit2D.
clone()};
81 return std::unique_ptr<TrackingRecHit>{
const Propagator * getPropagator() const
void Debug(const std::vector< TrajectoryMeasurement > TM) const
const MeasurementEstimator * getEstimator() const
const MeasurementEstimator * theEstimator
Log< level::Error, false > LogError
const SiTrackerMultiRecHitUpdator * getUpdator() const
const GeomDet * det() const
std::unique_ptr< TrackingRecHit > rightdimension(TrackingRecHit const &hit) const
const TrackerTopology * theTopology
std::vector< TrajectoryMeasurement > recHits(const Trajectory &, const MeasurementTrackerEvent *theMTE) const override
const Propagator * thePropagator
const TransientTrackingRecHitBuilder * getBuilder() const
SimpleDAFHitCollector(const TrackerTopology *trackerTopology, const MeasurementTracker *measurementTracker, const SiTrackerMultiRecHitUpdator *updator, const MeasurementEstimator *est, const Propagator *propagator, bool debug)
virtual const GeomDetUnit * detUnit() const
virtual TrackingRecHit * clone() const =0
LocalError localPositionError() const override
virtual OmniClusterRef const & firstClusterRef() const =0
TkClonerImpl theHitCloner
LocalPoint localPosition() const override
~SimpleDAFHitCollector() override
std::unique_ptr< TrackingRecHit > clone(BaseTrackerRecHit const &hit2D) const
const SiTrackerMultiRecHitUpdator * theUpdator