#include <Traj2TrackHits.h>
|
static unsigned char | toChi2x5 (float chi2) |
|
|
BaseTrackerRecHit * | build (GeomDetUnit const &idet, OmniClusterRef const &clus) const |
|
TrackingRecHit * | clone (BaseTrackerRecHit const &hit2D) const |
|
template<typename HI > |
void | copy (HI itm, HI e, TrackingRecHitCollection &hits) const |
|
template<typename HI > |
void | copy (HI itm, HI e, TrackingRecHitCollection &hits, TrajParams &trajParams, Chi2sFive &chi2s) const |
|
template<typename HI > |
void | split (HI itm, HI e, TrackingRecHitCollection &hits, bool along) const |
|
void | split (TrajectoryMeasurement const &itm, SiStripMatchedRecHit2D const &mhit, TrackingRecHitCollection &hits, float zdir) const |
|
Definition at line 16 of file Traj2TrackHits.h.
◆ Chi2sFive
◆ TrajParams
◆ Traj2TrackHits() [1/2]
Traj2TrackHits::Traj2TrackHits |
( |
| ) |
|
|
inline |
◆ Traj2TrackHits() [2/2]
Definition at line 33 of file Traj2TrackHits.h.
34 :
theCPE(static_cast<TkTransientTrackingRecHitBuilder const *>(builder)->stripClusterParameterEstimator()),
◆ build()
◆ clone()
◆ copy() [1/2]
◆ copy() [2/2]
◆ operator()() [1/2]
Definition at line 38 of file Traj2TrackHits.h.
41 auto const &meas = traj.measurements();
42 hits.reserve(splitting ? 2 * meas.size() : meas.size());
45 copy(meas.begin(), meas.end(),
hits);
47 copy(meas.rbegin(), meas.rend(),
hits);
51 split(meas.begin(), meas.end(),
hits, along);
53 split(meas.rbegin(), meas.rend(),
hits, along);
References alongMomentum, copy(), Trajectory::direction(), hfClusterShapes_cfi::hits, keepOrder, Trajectory::measurements(), and split().
◆ operator()() [2/2]
Definition at line 57 of file Traj2TrackHits.h.
63 auto const &meas = traj.measurements();
64 trajParams.reserve(meas.size());
65 chi2s.reserve(meas.size());
67 copy(meas.begin(), meas.end(),
hits, trajParams, chi2s);
69 copy(meas.rbegin(), meas.rend(),
hits, trajParams, chi2s);
References alongMomentum, copy(), Trajectory::direction(), hfClusterShapes_cfi::hits, keepOrder, and Trajectory::measurements().
◆ split() [1/2]
Definition at line 91 of file Traj2TrackHits.h.
92 for (; itm !=
e; ++itm) {
93 auto const &
hit = *(*itm).recHit()->hit();
94 if ((
removeNoDet) & ((*itm).recHitR().det() ==
nullptr))
100 auto const &thit = static_cast<BaseTrackerRecHit const &>(
hit);
101 auto const &clus = thit.firstClusterRef();
104 else if (clus.isPhase2())
106 else if (thit.isMatched()) {
107 auto zdir = itm->updatedState().localDirection().z();
110 split(*itm, static_cast<SiStripMatchedRecHit2D const &>(thit),
hits, zdir);
111 }
else if (thit.isProjected()) {
112 auto detU = static_cast<ProjectedSiStripRecHit2D const &>(thit).originalDet();
References build(), clone(), MillePedeFileConverter_cfg::e, hfClusterShapes_cfi::hits, trackerHitRTTI::isNotFromCluster(), trackerHitRTTI::isUndef(), keepOrder, and removeNoDet.
Referenced by operator()().
◆ split() [2/2]
Definition at line 141 of file Traj2TrackHits.h.
145 const GluedGeomDet *gdet = static_cast<const GluedGeomDet *>(mhit.det());
147 auto hitM =
build(*gdet->
monoDet(), mhit.monoClusterRef());
153 LocalVector Delta = secondLocalPos - firstLocalPos;
154 float scalar = Delta.
z() * zdir;
157 hits.push_back(hitS);
158 hits.push_back(hitM);
160 hits.push_back(hitM);
161 hits.push_back(hitS);
References build(), TrackingRecHit::det(), hfClusterShapes_cfi::hits, SiStripMatchedRecHit2D::monoClusterRef(), GluedGeomDet::monoDet(), GeomDet::position(), hitfit::scalar(), SiStripMatchedRecHit2D::stereoClusterRef(), GluedGeomDet::stereoDet(), TrajectoryStateOnSurface::surface(), GloballyPositioned< T >::toLocal(), TrajectoryMeasurement::updatedState(), and PV3DBase< T, PVType, FrameType >::z().
◆ toChi2x5()
static unsigned char Traj2TrackHits::toChi2x5 |
( |
float |
chi2 | ) |
|
|
inlinestatic |
◆ keepOrder
bool Traj2TrackHits::keepOrder = false |
|
private |
◆ removeNoDet
bool Traj2TrackHits::removeNoDet = true |
|
private |
◆ theCPE