CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KinematicParticleFactoryFromTransientTrack.cc
Go to the documentation of this file.
2 
5 
6 
8 {
9  if(pr != 0)
10  {
11  propagator = pr->clone();
12  }else{
14  }
15 }
16 
18  const ParticleMass& massGuess,
19  float chiSquared,
20  float degreesOfFr,
21  float& m_sigma) const
22 {
23 // cout<<"calling the state builder"<<endl;
24  KinematicState initState = builder(initialTrack,massGuess, m_sigma);
25  const reco::TransientTrack * track = &initialTrack;
26  KinematicConstraint * lastConstraint = 0;
29  chiSquared,degreesOfFr, lastConstraint, previousParticle, propagator, track));
30 }
31 
33  const ParticleMass& massGuess,
34  float chiSquared,
35  float degreesOfFr,
36  float& m_sigma,
37  const FreeTrajectoryState &freestate) const
38 {
39 // cout<<"calling the state builder"<<endl;
40  KinematicState initState = builder(freestate,massGuess, m_sigma);
41  const reco::TransientTrack * track = &initialTrack;
42  KinematicConstraint * lastConstraint = 0;
45  chiSquared,degreesOfFr, lastConstraint, previousParticle, propagator, track));
46 }
47 
49  const ParticleMass& massGuess,
50  float chiSquared,
51  float degreesOfFr,
52  const GlobalPoint& expPoint,
53  float m_sigma) const
54 {
55 // FreeTrajectoryState st(initialTrack.impactPointTSCP().theState());
56  KinematicState initState = builder(initialTrack.impactPointTSCP().theState(), massGuess, m_sigma, expPoint);
57  const reco::TransientTrack * track = &initialTrack;
58  KinematicConstraint * lastConstraint = 0;
61  chiSquared,degreesOfFr, lastConstraint, previousParticle, propagator, track));
62 }
63 
64 
66  float& chiSquared,
67  float& degreesOfFr,
69  KinematicConstraint * lastConstraint) const
70 {
71  const reco::TransientTrack * track;
72  KinematicParticle * prp = &(*previousParticle);
73 // FIXME
74 // if(previousParticle.isValid()){
76  if(pr == 0){
77  throw VertexException("KinematicParticleFactoryFromTransientTrack::Previous particle passed is not TransientTrack based!");
78  }else{track = pr->initialTransientTrack();}
79 // }else{track = 0;}
81  chiSquared, degreesOfFr, lastConstraint, previousParticle, propagator, track));
82 }
const reco::TransientTrack * initialTransientTrack() const
TrajectoryStateClosestToPoint impactPointTSCP() const
Common base class.
const FreeTrajectoryState & theState() const
double ParticleMass
Definition: ParticleMass.h:5
virtual KinematicStatePropagator * clone() const =0
RefCountedKinematicParticle particle(const reco::TransientTrack &initialTrack, const ParticleMass &massGuess, float chiSquared, float degreesOfFr, float &m_sigma) const