12 template<
typename DataContainer>
13 unsigned short countTrailingValidHits(DataContainer
const & meas) {
15 for(
auto it=meas.rbegin(); it!=meas.rend(); --it) {
17 if((*it).recHit()->isValid()) ++n;
25 theNumberOfFoundHits(0),
26 theNumberOfFoundPixelHits(0),
27 theNumberOfLostHits(0),
28 theNumberOfCCCBadHits_(0),
29 theDirection(traj.direction()),
30 theValid(traj.isValid()),
31 theNHseed(traj.seedNHits()),
32 theNLoops(traj.nLoops()),
33 theDPhiCache(traj.dPhiCacheForLoopersReconstruction()),
34 theCCCThreshold_(traj.cccThreshold()),
35 stopReason_(traj.stopReason()) {
37 for(
auto & it : traj.measurements()){
61 if ( tm.
recHit()->isValid()) {
119 throw cms::Exception(
"TrackingTools/PatternTools",
"Trajectory::check() - information requested from empty Trajectory");
140 if (thit->isPixel() || thit->isPhase2())
145 thit->firstClusterRef().stripCluster(),
181 while(i!=0) traj.
push(*tmp[--i]);
signed short theNumberOfFoundHits
const_iterator rend() const
ConstRecHitPointer const & recHit() const
void join(TempTrajectory &segment)
bool empty() const
True if trajectory has no measurements.
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
const LocalTrajectoryParameters & localParameters() const
void setStopReason(StopReason s)
signed short theNumberOfCCCBadHits_
const DataContainer & measurements() const
void setNLoops(signed char value)
static bool lost(const TrackingRecHit &hit)
void reserve(unsigned int n)
uint32_t rawId() const
get the raw id
PropagationDirection direction() const
Trajectory toTrajectory() const
Convert to a standard Trajectory.
signed short theNumberOfLostHits
void updateBadForCCC(float ccc_threshold)
static bool pixel(const TrackingRecHit &hit)
const_iterator rbegin() const
int numberOfCCCBadHits(float ccc_threshold)
signed short theNumberOfFoundPixelHits
bool badForCCC(const TrajectoryMeasurement &tm)
std::vector< std::vector< double > > tmp
int numberOfCCCBadHits(float ccc_threshold)
signed short theNumberOfTrailingFoundHits
void join(bqueue< T > &other)
bool isUndef(TrackingRecHit const &hit)
TrajectoryStateOnSurface const & updatedState() const
DetId geographicalId() const
void push(const TrajectoryMeasurement &tm)
void push_back(const T &val)
void pushAux(double chi2Increment)
void push(const TrajectoryMeasurement &tm)