PhysicsTools
PatUtils
interface
LeptonJetIsolationAngle.h
Go to the documentation of this file.
1
//
2
//
3
4
#ifndef PhysicsTools_PatUtils_LeptonJetIsolationAngle_h
5
#define PhysicsTools_PatUtils_LeptonJetIsolationAngle_h
6
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
20
#include "
DataFormats/Common/interface/Handle.h
"
21
#include "CLHEP/Vector/LorentzVector.h"
22
23
#include "
DataFormats/PatCandidates/interface/Electron.h
"
24
#include "
DataFormats/PatCandidates/interface/Muon.h
"
25
#include "
DataFormats/PatCandidates/interface/Jet.h
"
26
#include "
PhysicsTools/PatUtils/interface/TrackerIsolationPt.h
"
27
28
namespace
pat
{
29
30
class
LeptonJetIsolationAngle
{
31
public
:
32
LeptonJetIsolationAngle
(
edm::ConsumesCollector
&& iC);
33
~LeptonJetIsolationAngle
();
34
35
float
calculate
(
const
Electron
& anElectron,
36
const
edm::Handle
<
edm::View<reco::Track>
>& trackHandle,
37
const
edm::Event
&
iEvent
);
38
float
calculate
(
const
Muon
& aMuon,
39
const
edm::Handle
<
edm::View<reco::Track>
>& trackHandle,
40
const
edm::Event
&
iEvent
);
41
42
private
:
43
float
calculate
(
const
CLHEP::HepLorentzVector& aLepton,
44
const
edm::Handle
<
edm::View<reco::Track>
>& trackHandle,
45
const
edm::Event
&
iEvent
);
46
float
spaceAngle
(
const
CLHEP::HepLorentzVector& aLepton,
const
reco::CaloJet
& aJet);
47
48
private
:
49
TrackerIsolationPt
trkIsolator_
;
50
edm::EDGetTokenT<reco::CaloJetCollection>
jetToken_
;
51
edm::EDGetTokenT<std::vector<reco::GsfElectron>
>
electronsToken_
;
52
};
53
54
}
// namespace pat
55
56
#endif
pat::LeptonJetIsolationAngle::trkIsolator_
TrackerIsolationPt trkIsolator_
Definition:
LeptonJetIsolationAngle.h:49
reco::CaloJet
Jets made from CaloTowers.
Definition:
CaloJet.h:27
Handle.h
pat::LeptonJetIsolationAngle::electronsToken_
edm::EDGetTokenT< std::vector< reco::GsfElectron > > electronsToken_
Definition:
LeptonJetIsolationAngle.h:51
edm::EDGetTokenT< reco::CaloJetCollection >
Electron
Definition:
Electron.py:1
Muon.h
TrackerIsolationPt.h
pat::LeptonJetIsolationAngle
Calculates a lepton's jet isolation angle.
Definition:
LeptonJetIsolationAngle.h:30
pat::LeptonJetIsolationAngle::calculate
float calculate(const Electron &anElectron, const edm::Handle< edm::View< reco::Track > > &trackHandle, const edm::Event &iEvent)
Definition:
LeptonJetIsolationAngle.cc:20
pat::TrackerIsolationPt
Calculates a lepton's tracker isolation pt.
Definition:
TrackerIsolationPt.h:31
edm::Handle
Definition:
AssociativeIterator.h:50
Muon
Definition:
Muon.py:1
pat::LeptonJetIsolationAngle::spaceAngle
float spaceAngle(const CLHEP::HepLorentzVector &aLepton, const reco::CaloJet &aJet)
Definition:
LeptonJetIsolationAngle.cc:79
pat::LeptonJetIsolationAngle::jetToken_
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
Definition:
LeptonJetIsolationAngle.h:50
edm::View
Definition:
CaloClusterFwd.h:14
Event.h
pat::LeptonJetIsolationAngle::LeptonJetIsolationAngle
LeptonJetIsolationAngle(edm::ConsumesCollector &&iC)
Definition:
LeptonJetIsolationAngle.cc:12
iEvent
int iEvent
Definition:
GenABIO.cc:224
pat
Definition:
HeavyIon.h:7
Jet.h
pat::LeptonJetIsolationAngle::~LeptonJetIsolationAngle
~LeptonJetIsolationAngle()
Definition:
LeptonJetIsolationAngle.cc:17
Electron.h
ConsumesCollector.h
edm::Event
Definition:
Event.h:73
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.16