Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:10

0001 #ifndef ChildUpdator_H
0002 #define ChildUpdator_H
0003 
0004 #include "RecoVertex/KinematicFitPrimitives/interface/RefCountedKinematicTree.h"
0005 
0006 /**
0007  * Abstract Base Class to update the 
0008  * daughter particles after the parent
0009  * particle was refitted. Implementation Returns the
0010  * refitted virtual particle with the pointers
0011  * to updated child particles
0012  *
0013  * Kirill Prokofiev, December 2002
0014  */
0015 
0016 class ChildUpdator {
0017 public:
0018   ChildUpdator() {}
0019 
0020   virtual ~ChildUpdator() {}
0021   /**
0022  * Method updating particles
0023  * and vertices inside the tree
0024  * below the constrained particle
0025  * The tree pointer should be set on
0026  * particle just updated by ParentParticleFitter
0027  * Class to be used by KinematicParticleFitter only.
0028  */
0029   virtual RefCountedKinematicTree update(RefCountedKinematicTree tree) const = 0;
0030 
0031   virtual std::vector<RefCountedKinematicTree> update(const std::vector<RefCountedKinematicTree> &trees) const = 0;
0032 
0033   virtual ChildUpdator *clone() const = 0;
0034 
0035 private:
0036 };
0037 #endif