CMS 3D CMS Logo

MiniIsolation.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatUtils_PFIsolation_h
2 #define PhysicsTools_PatUtils_PFIsolation_h
3 
4 /*
5  Defines a function to compute MiniIsolation given a 4-vector and a collection
6  of packed PF candidates.
7 
8  Mini-Isolation reference: https://hypernews.cern.ch/HyperNews/CMS/get/susy/1991.html
9 */
10 
15 
16 namespace pat {
17 
18  float miniIsoDr(const reco::Candidate::PolarLorentzVector& p4, float mindr, float maxdr, float kt_scale);
19 
20  // see src file for definitions of parameters
23  float mindr = 0.05,
24  float maxdr = 0.2,
25  float kt_scale = 10.0,
26  float ptthresh = 0.5,
27  float deadcone_ch = 0.0001,
28  float deadcone_pu = 0.01,
29  float deadcone_ph = 0.01,
30  float deadcone_nh = 0.01,
31  float dZ_cut = 0.0);
32 
33  double muonRelMiniIsoPUCorrected(const PFIsolation& iso,
35  double dr,
36  double rho,
37  const std::vector<double>& area);
38 } // namespace pat
39 
40 #endif
std::vector< pat::PackedCandidate > PackedCandidateCollection
Definition: HeavyIon.h:7
double muonRelMiniIsoPUCorrected(const PFIsolation &iso, const reco::Candidate::PolarLorentzVector &p4, double dr, double rho, const std::vector< double > &area)
float miniIsoDr(const reco::Candidate::PolarLorentzVector &p4, float mindr, float maxdr, float kt_scale)
PFIsolation getMiniPFIsolation(const pat::PackedCandidateCollection *pfcands, const reco::Candidate::PolarLorentzVector &p4, float mindr=0.05, float maxdr=0.2, float kt_scale=10.0, float ptthresh=0.5, float deadcone_ch=0.0001, float deadcone_pu=0.01, float deadcone_ph=0.01, float deadcone_nh=0.01, float dZ_cut=0.0)
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38