CMS 3D CMS Logo

ReferenceTrajectoryBase.cc
Go to the documentation of this file.
2 
4  unsigned int nHits,
5  unsigned int nVirtualPar,
6  unsigned int nVirtualMeas)
7  : theValidityFlag(false),
8  theParamCovFlag(false),
9  theNumberOfHits(nHits),
10  theNumberOfPars(nPar),
11  theNumberOfVirtualMeas(nVirtualMeas),
12  theNumberOfVirtualPars(nVirtualPar),
13  theTsosVec(),
14  theRecHits(),
15  theMeasurements(nMeasPerHit * nHits + nVirtualMeas),
16  theMeasurementsCov(nMeasPerHit * nHits + nVirtualMeas, 0),
17  theTrajectoryPositions(nMeasPerHit * nHits),
18  theTrajectoryPositionCov(nMeasPerHit * nHits, 0),
19  theParameters(nPar),
20  theParameterCov(nPar, 0),
21  theDerivatives(nMeasPerHit * nHits + nVirtualMeas, nPar + nVirtualPar, 0),
22  theInnerTrajectoryToCurvilinear(5, 5, 0),
23  theInnerLocalToTrajectory(5, 5, 0) {
24  theTsosVec.reserve(nHits);
25  theRecHits.reserve(nHits);
26 }
27 
30  unsigned int nUsedHits = 0;
31  TransientTrackingRecHit::ConstRecHitContainer::const_iterator itHit;
32  for (itHit = recHits.begin(); itHit != recHits.end(); ++itHit)
33  if (useRecHit(*itHit))
34  ++nUsedHits;
35  return nUsedHits;
36 }
37 
39  return hitPtr->isValid();
40 }
ReferenceTrajectoryBase(unsigned int nPar, unsigned int nHits, unsigned int nVirtualPar, unsigned int nVirtualMeas)
unsigned int numberOfUsedRecHits(const TransientTrackingRecHit::ConstRecHitContainer &recHits) const
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitContainer theRecHits
std::vector< ConstRecHitPointer > ConstRecHitContainer
std::vector< TrajectoryStateOnSurface > theTsosVec
const TransientTrackingRecHit::ConstRecHitContainer & recHits() const
TupleMultiplicity< TrackerTraits > const *__restrict__ uint32_t nHits
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const