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 
11 namespace pat {
12 
13  class PFIsolation{
14  public:
16  chiso_(9999.), nhiso_(9999.),
17  phiso_(9999.), puiso_(9999.) {}
18 
19  PFIsolation(float ch, float nh, float ph, float pu) :
20  chiso_(ch), nhiso_(nh),
21  phiso_(ph), puiso_(pu) {}
22 
24 
26  chiso_ = iso.chiso_;
27  nhiso_ = iso.nhiso_;
28  phiso_ = iso.phiso_;
29  puiso_ = iso.puiso_;
30  return *this;
31  }
32 
33  float chargedHadronIso() const { return chiso_; }
34  float neutralHadronIso() const { return nhiso_; }
35  float photonIso() const { return phiso_; }
36  float puChargedHadronIso() const { return puiso_; }
37 
38  private:
39  float chiso_; // charged hadrons from PV
40  float nhiso_; // neutral hadrons
41  float phiso_; // photons
42  float puiso_; // pileup contribution (charged hadrons not from PV)
43 
44  };
45 
46 }
47 
48 #endif
PFIsolation & operator=(const PFIsolation &iso)
Definition: PFIsolation.h:25
PFIsolation(float ch, float nh, float ph, float pu)
Definition: PFIsolation.h:19
Definition: HeavyIon.h:7
float puChargedHadronIso() const
Definition: PFIsolation.h:36
float chargedHadronIso() const
Definition: PFIsolation.h:33
float photonIso() const
Definition: PFIsolation.h:35
float neutralHadronIso() const
Definition: PFIsolation.h:34