CMS 3D CMS Logo

MuIsoByTrackPt.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_MuIsoByTrackPt_H
2 #define MuonIsolation_MuIsoByTrackPt_H
3 
6 
7 namespace reco {
8  namespace isodeposit {
9  class IsoDepositExtractor;
10  }
11 } // namespace reco
12 namespace muonisolation {
13  class IsolatorByDeposit;
14 }
15 namespace reco {
16  class Track;
17 }
18 namespace edm {
19  class Event;
20 }
21 namespace edm {
22  class EventSetup;
23 }
24 namespace edm {
25  class ConsumesCollector;
26 }
27 namespace edm {
28  class ParameterSet;
29 }
30 
32 public:
34  ~MuIsoByTrackPt() override;
35 
36  float isolation(const edm::Event&, const edm::EventSetup&, const reco::Track& muon) override;
37  float isolation(const edm::Event& ev, const edm::EventSetup& es, const reco::TrackRef& muon) override {
38  return isolation(ev, es, *muon);
39  }
40  bool isIsolated(const edm::Event&, const edm::EventSetup&, const reco::Track& muon) override;
41  bool isIsolated(const edm::Event& ev, const edm::EventSetup& es, const reco::TrackRef& muon) override {
42  return isIsolated(ev, es, *muon);
43  }
44 
45  void setConeSize(float dr);
46  void setCut(float cut) { theCut = cut; }
47 
50 
51 private:
52  float theCut;
53  std::unique_ptr<reco::isodeposit::IsoDepositExtractor> theExtractor;
54  std::unique_ptr<muonisolation::IsolatorByDeposit> theIsolator;
55 };
56 
57 #endif
MuIsoBaseAlgorithm
Definition: MuIsoBaseAlgorithm.h:14
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
muon
Definition: MuonCocktails.h:17
edm
HLT enums.
Definition: AlignableModifier.h:19
MuIsoByTrackPt::isolator
virtual muonisolation::IsolatorByDeposit * isolator()
Definition: MuIsoByTrackPt.h:49
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
MuIsoByTrackPt::extractor
virtual reco::isodeposit::IsoDepositExtractor * extractor()
Definition: MuIsoByTrackPt.h:48
edm::Ref< TrackCollection >
MuIsoByTrackPt::isIsolated
bool isIsolated(const edm::Event &, const edm::EventSetup &, const reco::Track &muon) override
Definition: MuIsoByTrackPt.cc:47
MuIsoByTrackPt::theCut
float theCut
Definition: MuIsoByTrackPt.h:52
MuIsoByTrackPt::~MuIsoByTrackPt
~MuIsoByTrackPt() override
muonisolation::IsolatorByDeposit
Definition: IsolatorByDeposit.h:16
MuIsoByTrackPt::theIsolator
std::unique_ptr< muonisolation::IsolatorByDeposit > theIsolator
Definition: MuIsoByTrackPt.h:54
reco::Track
Definition: Track.h:27
MuIsoByTrackPt::MuIsoByTrackPt
MuIsoByTrackPt(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
Definition: MuIsoByTrackPt.cc:21
Event
MuIsoByTrackPt::setConeSize
void setConeSize(float dr)
Definition: MuIsoByTrackPt.cc:34
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
MuIsoByTrackPt::isolation
float isolation(const edm::Event &, const edm::EventSetup &, const reco::Track &muon) override
The isolation result for one muon.
Definition: MuIsoByTrackPt.cc:36
MuIsoByTrackPt::isIsolated
bool isIsolated(const edm::Event &ev, const edm::EventSetup &es, const reco::TrackRef &muon) override
Definition: MuIsoByTrackPt.h:41
MuIsoByTrackPt
Definition: MuIsoByTrackPt.h:31
edm::EventSetup
Definition: EventSetup.h:57
IsolatorByDeposit
muonisolation
Definition: CandViewExtractor.h:16
MuIsoByTrackPt::setCut
void setCut(float cut)
Definition: MuIsoByTrackPt.h:46
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
MuIsoByTrackPt::theExtractor
std::unique_ptr< reco::isodeposit::IsoDepositExtractor > theExtractor
Definition: MuIsoByTrackPt.h:53
EventSetup
reco::isodeposit::IsoDepositExtractor
Definition: IsoDepositExtractor.h:24
edm::Event
Definition: Event.h:73
CutsConeSizeFunction.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
MuIsoByTrackPt::isolation
float isolation(const edm::Event &ev, const edm::EventSetup &es, const reco::TrackRef &muon) override
Definition: MuIsoByTrackPt.h:37
MuIsoBaseAlgorithm.h