CMS 3D CMS Logo

BPHMuonEtaSelect.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHMuonEtaSelect_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHMuonEtaSelect_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  BPHMuonEtaSelect(const BPHMuonEtaSelect& x) = delete;
38  BPHMuonEtaSelect& operator=(const BPHMuonEtaSelect& x) = delete;
39 
42  ~BPHMuonEtaSelect() 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
BPHMuonEtaSelect::accept
bool accept(const reco::Candidate &cand) const override
select muon
Definition: BPHMuonEtaSelect.h:47
Muon.h
DDAxes::x
BPHParticleEtaSelect
Definition: BPHParticleEtaSelect.h:30
BPHMuonEtaSelect
Definition: BPHMuonEtaSelect.h:30
PVValHelper::eta
Definition: PVValidationHelpers.h:69
BPHParticleEtaSelect::accept
bool accept(const reco::Candidate &cand) const override
select particle
Definition: BPHParticleEtaSelect.h:47
cand
Definition: decayParser.h:34
BPHParticleEtaSelect.h
BPHMuonEtaSelect::BPHMuonEtaSelect
BPHMuonEtaSelect(double eta)
Definition: BPHMuonEtaSelect.h:34
reco::Candidate
Definition: Candidate.h:27
BPHMuonEtaSelect::operator=
BPHMuonEtaSelect & operator=(const BPHMuonEtaSelect &x)=delete
BPHMuonEtaSelect::~BPHMuonEtaSelect
~BPHMuonEtaSelect() override
Definition: BPHMuonEtaSelect.h:42