Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:58:25

0001 #ifndef PhysicsTools_PatUtils_PFIsolation_h
0002 #define PhysicsTools_PatUtils_PFIsolation_h
0003 
0004 /*
0005   Defines a function to compute MiniIsolation given a 4-vector and a collection
0006   of packed PF candidates.
0007 
0008   Mini-Isolation reference: https://hypernews.cern.ch/HyperNews/CMS/get/susy/1991.html
0009 */
0010 
0011 #include "DataFormats/Candidate/interface/Candidate.h"
0012 #include "DataFormats/PatCandidates/interface/PackedCandidate.h"
0013 #include "DataFormats/PatCandidates/interface/PFIsolation.h"
0014 #include "DataFormats/Math/interface/LorentzVector.h"
0015 
0016 namespace pat {
0017 
0018   float miniIsoDr(const reco::Candidate::PolarLorentzVector& p4, float mindr, float maxdr, float kt_scale);
0019 
0020   // see src file for definitions of parameters
0021   PFIsolation getMiniPFIsolation(const pat::PackedCandidateCollection* pfcands,
0022                                  const reco::Candidate::PolarLorentzVector& p4,
0023                                  float mindr = 0.05,
0024                                  float maxdr = 0.2,
0025                                  float kt_scale = 10.0,
0026                                  float ptthresh = 0.5,
0027                                  float deadcone_ch = 0.0001,
0028                                  float deadcone_pu = 0.01,
0029                                  float deadcone_ph = 0.01,
0030                                  float deadcone_nh = 0.01,
0031                                  float dZ_cut = 0.0);
0032 
0033   double muonRelMiniIsoPUCorrected(const PFIsolation& iso,
0034                                    const reco::Candidate::PolarLorentzVector& p4,
0035                                    double dr,
0036                                    double rho,
0037                                    const std::vector<double>& area);
0038 }  // namespace pat
0039 
0040 #endif