00001 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicParticle.h" 00002 #include "TrackingTools/TransientTrack/interface/TransientTrackFromFTSFactory.h" 00003 00004 00005 bool KinematicParticle::operator<(const KinematicParticle& other)const 00006 { 00007 bool res = false; 00008 if(this < &other) res=true; 00009 return res; 00010 } 00011 00012 KinematicState KinematicParticle::initialState()const 00013 {return initState;} 00014 00015 KinematicState KinematicParticle::currentState()const 00016 {return cState;} 00017 00018 KinematicConstraint * KinematicParticle::lastConstraint()const 00019 {return lConstraint;} 00020 00021 ReferenceCountingPointer<KinematicParticle> KinematicParticle::previousParticle()const 00022 {return pState;} 00023 00024 KinematicTree * KinematicParticle::correspondingTree()const 00025 {return tree;} 00026 00027 float KinematicParticle::chiSquared()const 00028 {return chi2;} 00029 00030 float KinematicParticle::degreesOfFreedom()const 00031 {return ndf;} 00032 00033 void KinematicParticle::setTreePointer(KinematicTree * tr)const 00034 {tree = tr;} 00035 00036 reco::TransientTrack KinematicParticle::refittedTransientTrack() const 00037 { 00038 TransientTrackFromFTSFactory factory; 00039 return factory.build(currentState().freeTrajectoryState()); 00040 }