1 #ifndef Traj2TrackHits_H
2 #define Traj2TrackHits_H
33 hits.
reserve(splitting ? 2*meas.size() : meas.size());
36 else copy(meas.rbegin(),meas.rend(),hits);
40 else split(meas.rbegin(),meas.rend(),hits,along);
47 for(;itm!=
e;++itm)
if( (!
removeNoDet) | ((*itm).recHitR().det()!=
nullptr)) hits.
push_back((*itm).recHitR().clone());
53 auto const &
hit = *(*itm).recHit()->hit();
54 if( (
removeNoDet) & ((*itm).recHitR().det()==
nullptr))
continue;
60 auto const & clus = thit.firstClusterRef();
62 else if (thit.isMatched()) {
63 auto zdir = itm->updatedState().localDirection().z();
65 split(*itm,static_cast<SiStripMatchedRecHit2D const&>(thit),hits,zdir);
66 }
else if (thit.isProjected()) {
74 auto const & detU = *hit2D.
detUnit();
76 bool endcap = detU.type().isEndcap();
77 if (endcap)
return hit2D.
clone();
108 LocalVector Delta = secondLocalPos - firstLocalPos;
109 float scalar = Delta.
z() * zdir;
virtual LocalValues localParameters(const SiStripCluster &, const GeomDetUnit &) const
const GeomDetUnit * monoDet() const
virtual const GeomDetType & type() const
OmniClusterRef const & stereoClusterRef() const
Traj2TrackHits(const TransientTrackingRecHitBuilder *builder, bool ikeepOrder, bool noNoDet=true)
void copy(HI itm, HI e, TrackingRecHitCollection &hits) const
void split(HI itm, HI e, TrackingRecHitCollection &hits, bool along) const
PropagationDirection const & direction() const
DataContainer const & measurements() const
SiStripCluster const & stripCluster() const
TrackingRecHit * clone(BaseTrackerRecHit const &hit2D) const
const SurfaceType & surface() const
const Surface::PositionType & position() const
The position (origin of the R.F.)
const GeomDet * det() const
LocalPoint toLocal(const GlobalPoint &gp) const
OmniClusterRef const & monoClusterRef() const
virtual TrackingRecHit * clone() const =0
void operator()(Trajectory const &traj, TrackingRecHitCollection &hits, bool splitting) const
const StripClusterParameterEstimator * theCPE
virtual OmniClusterRef const & firstClusterRef() const =0
virtual const GeomDetUnit * detUnit() const
bool isUndef(TrackingRecHit const &hit)
TrajectoryStateOnSurface const & updatedState() const
BaseTrackerRecHit * build(GeomDetUnit const &idet, OmniClusterRef const &clus) const
virtual LocalError localPositionError() const final
virtual LocalPoint localPosition() const final
const GeomDetUnit * stereoDet() const
void split(TrajectoryMeasurement const &itm, SiStripMatchedRecHit2D const &mhit, TrackingRecHitCollection &hits, float zdir) const
double scalar(const CLHEP::HepGenMatrix &m)
Return the matrix as a scalar. Raise an assertion if the matris is not .