File indexing completed on 2024-04-06 12:24:08
0001 #ifndef PhysicsTools_SelectorUtils_CandidateCut_h
0002 #define PhysicsTools_SelectorUtils_CandidateCut_h
0003
0004 #include "DataFormats/Candidate/interface/Candidate.h"
0005 #include "DataFormats/Candidate/interface/CandidateFwd.h"
0006
0007 namespace candidate_functions {
0008 class CandidateCut {
0009 public:
0010 using argument_type = reco::CandidatePtr;
0011 using result_type = bool;
0012
0013 CandidateCut() {}
0014 virtual result_type operator()(const argument_type&) const = 0;
0015 virtual ~CandidateCut() {}
0016
0017 virtual double value(const reco::CandidatePtr&) const = 0;
0018
0019 virtual const std::string& name() const = 0;
0020 };
0021 }
0022
0023 #endif