CMS 3D CMS Logo

VirtualKinematicParticleFactory.cc
Go to the documentation of this file.
2 
4 
6  if (pr != nullptr) {
7  propagator = pr->clone();
8  } else {
10  }
11 }
12 
14  const KinematicState& kineState,
15  float& chiSquared,
16  float& degreesOfFr,
18  KinematicConstraint* lastConstraint) const {
19  if (previousParticle.get() != nullptr) {
20  KinematicParticle* prp = &(*previousParticle);
21  VirtualKinematicParticle* pr = dynamic_cast<VirtualKinematicParticle*>(prp);
22  if (pr == nullptr) {
23  throw VertexException(
24  "KinematicParticleFactoryFromTransientTrack::Previous particle passed is not TransientTrack based!");
25  }
26  }
28  new VirtualKinematicParticle(kineState, chiSquared, degreesOfFr, lastConstraint, previousParticle, propagator));
29 }
VertexException
Common base class.
Definition: VertexException.h:12
KinematicState
Definition: KinematicState.h:17
ReferenceCountingPointer< KinematicParticle >
VirtualKinematicParticleFactory::particle
RefCountedKinematicParticle particle(const KinematicState &kineState, float &chiSquared, float &degreesOfFr, ReferenceCountingPointer< KinematicParticle > previousParticle, KinematicConstraint *lastConstraint=nullptr) const
Definition: VirtualKinematicParticleFactory.cc:13
TrackKinematicStatePropagator
Definition: TrackKinematicStatePropagator.h:17
KinematicConstraint
Definition: KinematicConstraint.h:21
sipixeldigitoraw
Definition: SiPixelDigiToRaw.cc:38
VirtualKinematicParticle
Definition: VirtualKinematicParticle.h:14
VirtualKinematicParticleFactory.h
KinematicStatePropagator
Definition: KinematicStatePropagator.h:15
KinematicParticle
Definition: KinematicParticle.h:21
VirtualKinematicParticleFactory::VirtualKinematicParticleFactory
VirtualKinematicParticleFactory()
Definition: VirtualKinematicParticleFactory.cc:3
VirtualKinematicParticleFactory::propagator
KinematicStatePropagator * propagator
Definition: VirtualKinematicParticleFactory.h:37