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 math::XYZTLorentzVector &p4, float mindr, float maxdr,
19  float kt_scale);
20 
21  // see src file for definitions of parameters
23  float mindr=0.05, float maxdr=0.2, float kt_scale=10.0,
24  float ptthresh=0.5, float deadcone_ch=0.0001,
25  float deadcone_pu=0.01, float deadcone_ph=0.01, float deadcone_nh=0.01,
26  float dZ_cut=0.0);
27 
28  double muonRelMiniIsoPUCorrected(const PFIsolation& iso,
30  double dr,
31  double rho,
32  const std::vector<double> &area);
33 }
34 
35 #endif
std::vector< pat::PackedCandidate > PackedCandidateCollection
Definition: HeavyIon.h:7
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
double muonRelMiniIsoPUCorrected(const PFIsolation &iso, const math::XYZTLorentzVector &p4, double dr, double rho, const std::vector< double > &area)
double p4[4]
Definition: TauolaWrapper.h:92
PFIsolation getMiniPFIsolation(const pat::PackedCandidateCollection *pfcands, const math::XYZTLorentzVector &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)
float miniIsoDr(const math::XYZTLorentzVector &p4, float mindr, float maxdr, float kt_scale)