src
DataFormats
PatCandidates
interface
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
placeholders
pat::PFIsolation::puiso_
float puiso_
Definition:
PFIsolation.h:27
pat::PFIsolation::neutralHadronIso
float neutralHadronIso() const
Definition:
PFIsolation.h:19
pat::PFIsolation::PFIsolation
PFIsolation(float ch, float nh, float ph, float pu)
Definition:
PFIsolation.h:16
pat
Definition:
HeavyIon.h:7
pat::PFIsolation::PFIsolation
PFIsolation()
Definition:
PFIsolation.h:14
pat::PFIsolation::photonIso
float photonIso() const
Definition:
PFIsolation.h:20
pat::PFIsolation::chargedHadronIso
float chargedHadronIso() const
Definition:
PFIsolation.h:18
cms::cuda::nh
uint32_t nh
Definition:
HistoContainer.h:11
pat::PFIsolation::puChargedHadronIso
float puChargedHadronIso() const
Definition:
PFIsolation.h:21
pat::PFIsolation::nhiso_
float nhiso_
Definition:
PFIsolation.h:25
pat::PFIsolation
Definition:
PFIsolation.h:12
displacedMuons_cfi.pu
pu
Definition:
displacedMuons_cfi.py:27
pat::PFIsolation::phiso_
float phiso_
Definition:
PFIsolation.h:26
pat::PFIsolation::chiso_
float chiso_
Definition:
PFIsolation.h:24
Generated for CMSSW Reference Manual by
1.8.14