CMS 3D CMS Logo

CutApplicatorBase.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_SelectorUtils_CutApplicatorBase_h
2 #define PhysicsTools_SelectorUtils_CutApplicatorBase_h
3 
4 //
5 //
6 //
7 
9 
11 
14 
16 
18 
19 namespace candf = candidate_functions;
20 
25 
30 
31 namespace reco {
36 } // namespace reco
37 
38 namespace pat {
43 } // namespace pat
44 
46 public:
48 
50 
51  CutApplicatorBase(const edm::ParameterSet& c) : _name(c.getParameter<std::string>("cutName")) {}
52 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
53  CutApplicatorBase(const CutApplicatorBase&) = delete;
55 #endif
56 
57  result_type operator()(const argument_type&) const final;
58 
59  // electrons
60  virtual result_type operator()(const reco::GsfElectronPtr&) const { return false; }
61  virtual result_type operator()(const pat::ElectronPtr&) const { return false; }
62 
63  // photons
64  virtual result_type operator()(const reco::PhotonPtr&) const { return false; }
65  virtual result_type operator()(const pat::PhotonPtr&) const { return false; }
66 
67  // muons
68  virtual result_type operator()(const reco::MuonPtr&) const { return false; }
69  virtual result_type operator()(const pat::MuonPtr&) const { return false; }
70 
71  // taus
72  virtual result_type operator()(const reco::PFTauPtr&) const { return false; }
73  virtual result_type operator()(const pat::TauPtr&) const { return false; }
74 
75  // candidate operation
76  virtual result_type asCandidate(const argument_type&) const { return false; }
77 
78  virtual CandidateType candidateType() const { return NONE; }
79 
80  const std::string& name() const override { return _name; }
81 
83  ~CutApplicatorBase() override{};
84 
85 private:
86  const std::string _name;
87 };
88 
89 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
92 #endif
93 
94 #endif
CutApplicatorBase::PATTAU
Definition: CutApplicatorBase.h:47
PluginFactory.h
candidate_functions::CandidateCut
Definition: CandidateCut.h:8
Muon.h
CutApplicatorBase::operator()
virtual result_type operator()(const reco::GsfElectronPtr &) const
Definition: CutApplicatorBase.h:60
CutApplicatorBase::PHOTON
Definition: CutApplicatorBase.h:47
pat::ElectronPtr
edm::Ptr< pat::Electron > ElectronPtr
Definition: CutApplicatorBase.h:39
CutApplicatorBase::candidateType
virtual CandidateType candidateType() const
Definition: CutApplicatorBase.h:78
CutApplicatorBase::operator()
result_type operator()(const argument_type &) const final
Definition: CutApplicatorBase.cc:5
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
CutApplicatorBase::PATMUON
Definition: CutApplicatorBase.h:47
Muon.h
Photon.h
CutApplicatorBase::asCandidate
virtual result_type asCandidate(const argument_type &) const
Definition: CutApplicatorBase.h:76
CutApplicatorBase::operator()
virtual result_type operator()(const pat::ElectronPtr &) const
Definition: CutApplicatorBase.h:61
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
EventBase.h
Tau.h
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
CutApplicatorBase::operator()
virtual result_type operator()(const reco::PFTauPtr &) const
Definition: CutApplicatorBase.h:72
candidate_functions
Definition: CandidateCut.h:7
Photon.h
Track.h
TrackFwd.h
CutApplicatorBase::operator()
virtual result_type operator()(const pat::TauPtr &) const
Definition: CutApplicatorBase.h:73
GsfElectron.h
candidate_functions::CandidateCut::CandidateCut
CandidateCut()
Definition: CandidateCut.h:13
CutApplicatorBase::MUON
Definition: CutApplicatorBase.h:47
CutApplicatorBase::PATELECTRON
Definition: CutApplicatorBase.h:47
CutApplicatorBase::operator()
virtual result_type operator()(const pat::MuonPtr &) const
Definition: CutApplicatorBase.h:69
reco::MuonPtr
edm::Ptr< reco::Muon > MuonPtr
Definition: CutApplicatorBase.h:34
IsoDeposit.h
pat::TauPtr
edm::Ptr< pat::Tau > TauPtr
Definition: CutApplicatorBase.h:42
reco::PhotonPtr
edm::Ptr< reco::Photon > PhotonPtr
Definition: CutApplicatorBase.h:33
edm::ParameterSet
Definition: ParameterSet.h:47
reco::GsfElectronPtr
edm::Ptr< reco::GsfElectron > GsfElectronPtr
Definition: CutApplicatorBase.h:32
CutApplicatorBase::~CutApplicatorBase
~CutApplicatorBase() override
Destructor.
Definition: CutApplicatorBase.h:83
CandidateCut.h
CutApplicatorBase::CandidateType
CandidateType
Definition: CutApplicatorBase.h:47
edmplugin::PluginFactory
Definition: PluginFactory.h:34
CutApplicatorBase::NONE
Definition: CutApplicatorBase.h:47
CutApplicatorBase::PATPHOTON
Definition: CutApplicatorBase.h:47
pat::PhotonPtr
edm::Ptr< pat::Photon > PhotonPtr
Definition: CutApplicatorBase.h:40
CutApplicatorBase::operator()
virtual result_type operator()(const pat::PhotonPtr &) const
Definition: CutApplicatorBase.h:65
pat
Definition: HeavyIon.h:7
CutApplicatorBase::name
const std::string & name() const override
Definition: CutApplicatorBase.h:80
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CutApplicatorBase::_name
const std::string _name
Definition: CutApplicatorBase.h:83
edm::Ptr< reco::GsfElectron >
pat::MuonPtr
edm::Ptr< pat::Muon > MuonPtr
Definition: CutApplicatorBase.h:41
CutApplicatorBase
Definition: CutApplicatorBase.h:45
std
Definition: JetResolutionObject.h:76
CutApplicatorBase::operator()
virtual result_type operator()(const reco::PhotonPtr &) const
Definition: CutApplicatorBase.h:64
PFTau.h
candidate_functions::CandidateCut::argument_type
reco::CandidatePtr argument_type
Definition: CandidateCut.h:10
Electron.h
reco::PFTauPtr
edm::Ptr< reco::PFTau > PFTauPtr
Definition: CutApplicatorBase.h:35
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
CutApplicatorBase::operator()
virtual result_type operator()(const reco::MuonPtr &) const
Definition: CutApplicatorBase.h:68
CutApplicatorBase::TAU
Definition: CutApplicatorBase.h:47
CutApplicatorBase::operator=
CutApplicatorBase & operator=(const CutApplicatorBase &)=delete
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase(const edm::ParameterSet &c)
Definition: CutApplicatorBase.h:51