CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
VirtualKinematicParticleFactory Class Reference

#include <VirtualKinematicParticleFactory.h>

Public Member Functions

RefCountedKinematicParticle particle (const KinematicState &kineState, float &chiSquared, float &degreesOfFr, ReferenceCountingPointer< KinematicParticle > previousParticle, KinematicConstraint *lastConstraint=nullptr) const
 
 VirtualKinematicParticleFactory ()
 
 VirtualKinematicParticleFactory (KinematicStatePropagator *pr)
 
 ~VirtualKinematicParticleFactory ()
 

Private Attributes

const TransientTrackKinematicStateBuilder builder
 
KinematicStatePropagatorpropagator
 

Detailed Description

Definition at line 9 of file VirtualKinematicParticleFactory.h.

Constructor & Destructor Documentation

◆ VirtualKinematicParticleFactory() [1/2]

VirtualKinematicParticleFactory::VirtualKinematicParticleFactory ( )

Factory constructor taking a KinematicStatePropagator

Definition at line 3 of file VirtualKinematicParticleFactory.cc.

References propagator.

◆ VirtualKinematicParticleFactory() [2/2]

VirtualKinematicParticleFactory::VirtualKinematicParticleFactory ( KinematicStatePropagator pr)

Factory constructor taking a KinematicStatePropagator

Definition at line 5 of file VirtualKinematicParticleFactory.cc.

5  {
6  if (pr != nullptr) {
7  propagator = pr->clone();
8  } else {
10  }
11 }

References propagator.

◆ ~VirtualKinematicParticleFactory()

VirtualKinematicParticleFactory::~VirtualKinematicParticleFactory ( )
inline

Default destructor

Definition at line 24 of file VirtualKinematicParticleFactory.h.

24 { delete propagator; }

References propagator.

Member Function Documentation

◆ particle()

RefCountedKinematicParticle VirtualKinematicParticleFactory::particle ( const KinematicState kineState,
float &  chiSquared,
float &  degreesOfFr,
ReferenceCountingPointer< KinematicParticle previousParticle,
KinematicConstraint lastConstraint = nullptr 
) const

Method building a particle out of new created kinematic state, chi2, number of degrees of freedom and history information

Definition at line 13 of file VirtualKinematicParticleFactory.cc.

18  {
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 }

References propagator.

Referenced by FinalTreeBuilder::buildTree(), ConstrainedTreeBuilder::buildTree(), and ConstrainedTreeBuilderT::buildTree().

Member Data Documentation

◆ builder

const TransientTrackKinematicStateBuilder VirtualKinematicParticleFactory::builder
private

Definition at line 38 of file VirtualKinematicParticleFactory.h.

◆ propagator

KinematicStatePropagator* VirtualKinematicParticleFactory::propagator
private
VertexException
Common base class.
Definition: VertexException.h:12
ReferenceCountingPointer< KinematicParticle >
TrackKinematicStatePropagator
Definition: TrackKinematicStatePropagator.h:17
sipixeldigitoraw
Definition: SiPixelDigiToRaw.cc:39
VirtualKinematicParticle
Definition: VirtualKinematicParticle.h:14
KinematicParticle
Definition: KinematicParticle.h:21
VirtualKinematicParticleFactory::propagator
KinematicStatePropagator * propagator
Definition: VirtualKinematicParticleFactory.h:37