CMS 3D CMS Logo

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 
22 #include "CLHEP/Vector/LorentzVector.h"
23 
28 
29 
30 namespace pat {
31 
32 
34 
35  public:
36 
39 
40  float calculate(const Electron & anElectron, const edm::Handle<edm::View<reco::Track> > & trackHandle, const edm::Event & iEvent);
41  float calculate(const Muon & aMuon, const edm::Handle<edm::View<reco::Track> > & trackHandle, const edm::Event & iEvent);
42 
43  private:
44 
45  float calculate(const CLHEP::HepLorentzVector & aLepton, const edm::Handle<edm::View<reco::Track> > & trackHandle, const edm::Event & iEvent);
46  float spaceAngle(const CLHEP::HepLorentzVector & aLepton, const reco::CaloJet & aJet);
47 
48  private:
49 
53 
54  };
55 
56 
57 }
58 
59 #endif
60 
Jets made from CaloTowers.
Definition: CaloJet.h:29
float spaceAngle(const CLHEP::HepLorentzVector &aLepton, const reco::CaloJet &aJet)
Definition: HeavyIon.h:7
int iEvent
Definition: GenABIO.cc:224
Definition: Muon.py:1
edm::EDGetTokenT< reco::CaloJetCollection > jetToken_
float calculate(const Electron &anElectron, const edm::Handle< edm::View< reco::Track > > &trackHandle, const edm::Event &iEvent)
Calculates a lepton&#39;s jet isolation angle.
edm::EDGetTokenT< std::vector< reco::GsfElectron > > electronsToken_
LeptonJetIsolationAngle(edm::ConsumesCollector &&iC)
Calculates a lepton&#39;s tracker isolation pt.