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::recHits
const TransientTrackingRecHit::ConstRecHitContainer & recHits() const
Definition: ReferenceTrajectoryBase.h:215
ReferenceTrajectoryBase::useRecHit
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
Definition: ReferenceTrajectoryBase.cc:38
ReferenceTrajectoryBase::ReferenceTrajectoryBase
ReferenceTrajectoryBase(unsigned int nPar, unsigned int nHits, unsigned int nVirtualPar, unsigned int nVirtualMeas)
Definition: ReferenceTrajectoryBase.cc:3
funct::false
false
Definition: Factorize.h:34
ReferenceTrajectoryBase.h
HcalResponse_cfi.nPar
nPar
Definition: HcalResponse_cfi.py:33
ReferenceTrajectoryBase::numberOfUsedRecHits
unsigned int numberOfUsedRecHits(const TransientTrackingRecHit::ConstRecHitContainer &recHits) const
Definition: ReferenceTrajectoryBase.cc:28
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
ReferenceTrajectoryBase::theRecHits
TransientTrackingRecHit::ConstRecHitContainer theRecHits
Definition: ReferenceTrajectoryBase.h:244
TrackingRecHit::ConstRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
Definition: TrackingRecHit.h:32
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition: TrackingRecHit.h:25
ReferenceTrajectoryBase::theTsosVec
std::vector< TrajectoryStateOnSurface > theTsosVec
Definition: ReferenceTrajectoryBase.h:243