Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:38:06

0001 #ifndef TrimmedTrackFilter_H
0002 #define TrimmedTrackFilter_H
0003 
0004 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
0005 
0006 /** Select TransientTracks for a vertex search 
0007  *  with the ConfigurableTrimmedVertexFinder algorithm 
0008  *  by applying a pT cut. The pT cut value can be set 
0009  *  at runtime via the corresponding set() method. 
0010  *  The default value is pT > 0. GeV
0011  */
0012 
0013 class TrimmedTrackFilter {
0014 public:
0015   /** Constructor with cuts defined at runtime by configurables
0016    */
0017   TrimmedTrackFilter();
0018 
0019   ~TrimmedTrackFilter() {}
0020 
0021   /** Access to pT cut
0022    */
0023   double ptCut() const { return thePtCut; }
0024 
0025   /** Set pT cut
0026    */
0027   void setPtCut(double ptCut) { thePtCut = ptCut; }
0028 
0029   bool operator()(const reco::TransientTrack &) const;
0030 
0031 private:
0032   double thePtCut;
0033 };
0034 
0035 #endif