CMS 3D CMS Logo

MuPFIsoHelper.h
Go to the documentation of this file.
1 #ifndef RecoMuon_MuonIsolation_MuPFIsoHelper_H
2 #define RecoMuon_MuonIsolation_MuPFIsoHelper_H
3 
4 //MuPFIsoHelper
5 //Class to embed PF2PAT style Isodeposits
6 //To reco::Muon
7 //
8 //Author: Michalis Bachtis(U.Wisconsin)
9 //bachtis@cern.ch
10 
11 // system include files
12 #include <memory>
13 
14 // user include files
20 
24 
26 public:
28 
29  MuPFIsoHelper(const std::map<std::string, edm::ParameterSet>&, edm::ConsumesCollector&&);
30 
31  void beginEvent(const edm::Event& iEvent);
32 
42 
44 
45 private:
46  std::map<std::string, edm::ParameterSet> labelMap_;
47 
48  std::vector<edm::Handle<CandDoubleMap> > chargedParticle_;
49  std::vector<edm::Handle<CandDoubleMap> > chargedHadron_;
50  std::vector<edm::Handle<CandDoubleMap> > neutralHadron_;
51  std::vector<edm::Handle<CandDoubleMap> > neutralHadronHighThreshold_;
52  std::vector<edm::Handle<CandDoubleMap> > photon_;
53  std::vector<edm::Handle<CandDoubleMap> > photonHighThreshold_;
54  std::vector<edm::Handle<CandDoubleMap> > pu_;
55 
56  std::vector<edm::EDGetTokenT<CandDoubleMap> > chargedParticleToken_;
57  std::vector<edm::EDGetTokenT<CandDoubleMap> > chargedHadronToken_;
58  std::vector<edm::EDGetTokenT<CandDoubleMap> > neutralHadronToken_;
59  std::vector<edm::EDGetTokenT<CandDoubleMap> > neutralHadronHighThresholdToken_;
60  std::vector<edm::EDGetTokenT<CandDoubleMap> > photonToken_;
61  std::vector<edm::EDGetTokenT<CandDoubleMap> > photonHighThresholdToken_;
62  std::vector<edm::EDGetTokenT<CandDoubleMap> > puToken_;
63 };
64 #endif
MuPFIsoHelper
Definition: MuPFIsoHelper.h:25
MuPFIsoHelper::puToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > puToken_
Definition: MuPFIsoHelper.h:62
Handle.h
Muon.h
MuPFIsoHelper::neutralHadronToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > neutralHadronToken_
Definition: MuPFIsoHelper.h:58
MuPFIsoHelper::neutralHadronHighThreshold_
std::vector< edm::Handle< CandDoubleMap > > neutralHadronHighThreshold_
Definition: MuPFIsoHelper.h:51
MuPFIsoHelper::neutralHadronHighThresholdToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > neutralHadronHighThresholdToken_
Definition: MuPFIsoHelper.h:59
edm::Handle
Definition: AssociativeIterator.h:50
MuPFIsoHelper::chargedParticleToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > chargedParticleToken_
Definition: MuPFIsoHelper.h:56
reco::Muon
Definition: Muon.h:27
edm::Ref< MuonCollection >
MuPFIsoHelper::photonHighThresholdToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > photonHighThresholdToken_
Definition: MuPFIsoHelper.h:61
MuPFIsoHelper::chargedParticle_
std::vector< edm::Handle< CandDoubleMap > > chargedParticle_
Definition: MuPFIsoHelper.h:48
MuonFwd.h
MuPFIsoHelper::beginEvent
void beginEvent(const edm::Event &iEvent)
Definition: MuPFIsoHelper.cc:82
MuPFIsoHelper::chargedHadronToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > chargedHadronToken_
Definition: MuPFIsoHelper.h:57
MuPFIsoHelper::makeIsoDeposit
reco::MuonPFIsolation makeIsoDeposit(reco::MuonRef &, const edm::Handle< CandDoubleMap > &, const edm::Handle< CandDoubleMap > &, const edm::Handle< CandDoubleMap > &, const edm::Handle< CandDoubleMap > &, const edm::Handle< CandDoubleMap > &, const edm::Handle< CandDoubleMap > &, const edm::Handle< CandDoubleMap > &)
Definition: MuPFIsoHelper.cc:30
MuPFIsoHelper::CandDoubleMap
edm::ValueMap< double > CandDoubleMap
Definition: MuPFIsoHelper.h:27
Event.h
MuPFIsoHelper::~MuPFIsoHelper
~MuPFIsoHelper()
Definition: MuPFIsoHelper.cc:28
MuPFIsoHelper::photonHighThreshold_
std::vector< edm::Handle< CandDoubleMap > > photonHighThreshold_
Definition: MuPFIsoHelper.h:53
iEvent
int iEvent
Definition: GenABIO.cc:224
MuPFIsoHelper::embedPFIsolation
int embedPFIsolation(reco::Muon &, reco::MuonRef &)
Definition: MuPFIsoHelper.cc:63
MuPFIsoHelper::chargedHadron_
std::vector< edm::Handle< CandDoubleMap > > chargedHadron_
Definition: MuPFIsoHelper.h:49
MuPFIsoHelper::pu_
std::vector< edm::Handle< CandDoubleMap > > pu_
Definition: MuPFIsoHelper.h:54
ValueMap.h
reco::MuonPFIsolation
Definition: MuonPFIsolation.h:5
MuPFIsoHelper::photonToken_
std::vector< edm::EDGetTokenT< CandDoubleMap > > photonToken_
Definition: MuPFIsoHelper.h:60
Frameworkfwd.h
edm::ValueMap
Definition: ValueMap.h:107
MuPFIsoHelper::photon_
std::vector< edm::Handle< CandDoubleMap > > photon_
Definition: MuPFIsoHelper.h:52
ConsumesCollector.h
ParameterSet.h
edm::Event
Definition: Event.h:73
MuPFIsoHelper::neutralHadron_
std::vector< edm::Handle< CandDoubleMap > > neutralHadron_
Definition: MuPFIsoHelper.h:50
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
MuPFIsoHelper::MuPFIsoHelper
MuPFIsoHelper(const std::map< std::string, edm::ParameterSet > &, edm::ConsumesCollector &&)
Definition: MuPFIsoHelper.cc:3
MuPFIsoHelper::labelMap_
std::map< std::string, edm::ParameterSet > labelMap_
Definition: MuPFIsoHelper.h:46