|
|
Go to the documentation of this file. 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()};
59 auto const& thit = static_cast<BaseTrackerRecHit const&>(
hit);
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 TrackerTopology * theTopology
void Debug(const std::vector< TrajectoryMeasurement > TM) const
const GeomDet * det() const
const MeasurementEstimator * theEstimator
const TransientTrackingRecHitBuilder * getBuilder() const
LocalError localPositionError() const final
const Propagator * getPropagator() const
std::unique_ptr< TrackingRecHit > clone(BaseTrackerRecHit const &hit2D) const
TkClonerImpl theHitCloner
LocalPoint localPosition() const final
~SimpleDAFHitCollector() override
const SiTrackerMultiRecHitUpdator * theUpdator
virtual OmniClusterRef const & firstClusterRef() const =0
virtual TrackingRecHit * clone() const =0
std::unique_ptr< TrackingRecHit > rightdimension(TrackingRecHit const &hit) const
std::vector< TrajectoryMeasurement > recHits(const Trajectory &, const MeasurementTrackerEvent *theMTE) const override
const Propagator * thePropagator
SimpleDAFHitCollector(const TrackerTopology *trackerTopology, const MeasurementTracker *measurementTracker, const SiTrackerMultiRecHitUpdator *updator, const MeasurementEstimator *est, const Propagator *propagator, bool debug)
virtual const GeomDetUnit * detUnit() const
const SiTrackerMultiRecHitUpdator * getUpdator() const
const MeasurementEstimator * getEstimator() const