CMS 3D CMS Logo

PFIsolation.h
Go to the documentation of this file.
1 #ifndef DataFormats_PatCandidates_interface_PFIsolation_h
2 #define DataFormats_PatCandidates_interface_PFIsolation_h
3 
4 /*
5  \class pat::PFIsolation PFIsolation.h "DataFormats/PatCandidates/interface/PFIsolation.h"
6  \brief Basic class to store components of pf-isolation for pf candidates
7  \author Bennett Marsh
8 */
9 
10 namespace pat {
11 
12  class PFIsolation {
13  public:
14  PFIsolation() : chiso_(9999.), nhiso_(9999.), phiso_(9999.), puiso_(9999.) {}
15 
16  PFIsolation(float ch, float nh, float ph, float pu) : chiso_(ch), nhiso_(nh), phiso_(ph), puiso_(pu) {}
17 
18  float chargedHadronIso() const { return chiso_; }
19  float neutralHadronIso() const { return nhiso_; }
20  float photonIso() const { return phiso_; }
21  float puChargedHadronIso() const { return puiso_; }
22 
23  private:
24  float chiso_; // charged hadrons from PV
25  float nhiso_; // neutral hadrons
26  float phiso_; // photons
27  float puiso_; // pileup contribution (charged hadrons not from PV)
28  };
29 
30 } // namespace pat
31 
32 #endif
float neutralHadronIso() const
Definition: PFIsolation.h:19
PFIsolation(float ch, float nh, float ph, float pu)
Definition: PFIsolation.h:16
Definition: HeavyIon.h:7
float photonIso() const
Definition: PFIsolation.h:20
float chargedHadronIso() const
Definition: PFIsolation.h:18
uint32_t nh
float puChargedHadronIso() const
Definition: PFIsolation.h:21