Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:16

0001 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicParticle.h"
0002 #include "TrackingTools/TransientTrack/interface/TransientTrackFromFTSFactory.h"
0003 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicConstraint.h"
0004 
0005 KinematicParticle::~KinematicParticle() { delete lConstraint; }
0006 
0007 bool KinematicParticle::operator<(const KinematicParticle& other) const {
0008   bool res = false;
0009   if (this < &other)
0010     res = true;
0011   return res;
0012 }
0013 
0014 KinematicState KinematicParticle::initialState() const { return initState; }
0015 
0016 KinematicState KinematicParticle::currentState() const { return cState; }
0017 
0018 KinematicConstraint* KinematicParticle::lastConstraint() const { return lConstraint; }
0019 
0020 ReferenceCountingPointer<KinematicParticle> KinematicParticle::previousParticle() const { return pState; }
0021 
0022 KinematicTree* KinematicParticle::correspondingTree() const { return tree; }
0023 
0024 float KinematicParticle::chiSquared() const { return chi2; }
0025 
0026 float KinematicParticle::degreesOfFreedom() const { return ndf; }
0027 
0028 void KinematicParticle::setTreePointer(KinematicTree* tr) const { tree = tr; }
0029 
0030 reco::TransientTrack KinematicParticle::refittedTransientTrack() const {
0031   TransientTrackFromFTSFactory factory;
0032   return factory.build(currentState().freeTrajectoryState());
0033 }