Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef InputSort_H
0002 #define InputSort_H
0003 
0004 #include "RecoVertex/KinematicFitPrimitives/interface/RefCountedKinematicTree.h"
0005 
0006 /**
0007  * Helper class checking the
0008  * input of Kinematic Vertex Fitters
0009  * If some of particles provided have 
0010  * trees after them, makes sure that
0011  * only top tree particles are used in the fit.
0012  */
0013 
0014 class InputSort {
0015 public:
0016   InputSort() {}
0017   ~InputSort() {}
0018 
0019   std::pair<std::vector<RefCountedKinematicParticle>, std::vector<FreeTrajectoryState> > sort(
0020       const std::vector<RefCountedKinematicParticle> &particles) const;
0021 
0022   std::vector<RefCountedKinematicParticle> sort(const std::vector<RefCountedKinematicTree> &trees) const;
0023 
0024 private:
0025 };
0026 #endif