CMS 3D CMS Logo

BPHMuonChargeSelect.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHMuonChargeSelect_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHMuonChargeSelect_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 // ---------------------
27 // -- Class Interface --
28 // ---------------------
29 
31 public:
35 
36  // deleted copy constructor and assignment operator
37  BPHMuonChargeSelect(const BPHMuonChargeSelect& x) = delete;
39 
42  ~BPHMuonChargeSelect() override {}
43 
46  bool accept(const reco::Candidate& cand) const override {
48  if (dynamic_cast<const pat::Muon*>(&cand) == nullptr)
49  return false;
51  };
52 };
53 
54 #endif
BPHParticleChargeSelect.h
Muon.h
BPHMuonChargeSelect::accept
bool accept(const reco::Candidate &cand) const override
select muon
Definition: BPHMuonChargeSelect.h:47
DDAxes::x
BPHParticleChargeSelect::accept
bool accept(const reco::Candidate &cand) const override
select particle
Definition: BPHParticleChargeSelect.h:47
BPHMuonChargeSelect::~BPHMuonChargeSelect
~BPHMuonChargeSelect() override
Definition: BPHMuonChargeSelect.h:42
BPHMuonChargeSelect::operator=
BPHMuonChargeSelect & operator=(const BPHMuonChargeSelect &x)=delete
cand
Definition: decayParser.h:32
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
BPHMuonChargeSelect
Definition: BPHMuonChargeSelect.h:30
reco::Candidate
Definition: Candidate.h:27
BPHMuonChargeSelect::BPHMuonChargeSelect
BPHMuonChargeSelect(int c)
Definition: BPHMuonChargeSelect.h:34
BPHParticleChargeSelect
Definition: BPHParticleChargeSelect.h:30