CMS 3D CMS Logo

CandidateCut.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_SelectorUtils_CandidateCut_h
2 #define PhysicsTools_SelectorUtils_CandidateCut_h
3 
6 
7 namespace candidate_functions {
8  class CandidateCut {
9  public:
11  using result_type = bool;
12 
14  virtual result_type operator()(const argument_type&) const = 0;
15  virtual ~CandidateCut() {}
16 
17  virtual double value(const reco::CandidatePtr&) const = 0;
18 
19  virtual const std::string& name() const = 0;
20  };
21 } // namespace candidate_functions
22 
23 #endif
candidate_functions::CandidateCut
Definition: CandidateCut.h:8
electrons_cff.bool
bool
Definition: electrons_cff.py:393
candidate_functions::CandidateCut::name
virtual const std::string & name() const =0
CandidateFwd.h
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
candidate_functions
Definition: CandidateCut.h:7
candidate_functions::CandidateCut::~CandidateCut
virtual ~CandidateCut()
Definition: CandidateCut.h:15
candidate_functions::CandidateCut::CandidateCut
CandidateCut()
Definition: CandidateCut.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
candidate_functions::CandidateCut::operator()
virtual result_type operator()(const argument_type &) const =0
edm::Ptr< Candidate >
candidate_functions::CandidateCut::value
virtual double value(const reco::CandidatePtr &) const =0
candidate_functions::CandidateCut::argument_type
reco::CandidatePtr argument_type
Definition: CandidateCut.h:10
Candidate.h
reco::CandidatePtr
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25