#include <PFPileUpAlgo.h>
Public Types | |
typedef std::vector< edm::FwdPtr< reco::PFCandidate > > | PFCollection |
Public Member Functions | |
int | chargedHadronVertex (const reco::VertexCollection &vertices, const reco::PFCandidate &pfcand) const |
const PFCollection & | getPFCandidatesFromPU () const |
const PFCollection & | getPFCandidatesFromVtx () const |
PFPileUpAlgo () | |
PFPileUpAlgo (bool checkClosestZVertex, bool verbose=false) | |
void | process (const PFCollection &pfCandidates, const reco::VertexCollection &vertices) |
void | setCheckClosestZVertex (bool val) |
void | setDzCutForChargedFromPUVtxs (double val) |
void | setNumOfPUVtxsForCharged (unsigned int val) |
void | setVerbose (bool verbose) |
~PFPileUpAlgo () | |
Private Attributes | |
bool | checkClosestZVertex_ |
use the closest z vertex if a track is not in a vertex More... | |
double | fDzCutForChargedFromPUVtxs_ |
unsigned int | fNumOfPUVtxsForCharged_ |
PFCollection | pfCandidatesFromPU_ |
PFCollection | pfCandidatesFromVtx_ |
bool | verbose_ |
verbose ? More... | |
Definition at line 12 of file PFPileUpAlgo.h.
typedef std::vector<edm::FwdPtr<reco::PFCandidate> > PFPileUpAlgo::PFCollection |
Definition at line 14 of file PFPileUpAlgo.h.
|
inline |
Definition at line 16 of file PFPileUpAlgo.h.
|
inline |
Definition at line 18 of file PFPileUpAlgo.h.
|
inline |
Definition at line 23 of file PFPileUpAlgo.h.
int PFPileUpAlgo::chargedHadronVertex | ( | const reco::VertexCollection & | vertices, |
const reco::PFCandidate & | pfcand | ||
) | const |
Definition at line 40 of file PFPileUpAlgo.cc.
References checkClosestZVertex_, PVValHelper::dz, gpuVertexFinder::iv, pfDeepBoostedJetPreprocessParams_cfi::pfcand, HLT_2022v14_cff::track, AlignmentTracksFromVertexSelector_cfi::vertices, extraflags_cff::vtx, and w().
Referenced by process().
|
inline |
|
inline |
void PFPileUpAlgo::process | ( | const PFCollection & | pfCandidates, |
const reco::VertexCollection & | vertices | ||
) |
Definition at line 6 of file PFPileUpAlgo.cc.
References funct::abs(), chargedHadronVertex(), gather_cfg::cout, fDzCutForChargedFromPUVtxs_, fNumOfPUVtxsForCharged_, reco::PFCandidate::h, mps_fire::i, createfilelist::int, zmumugammaAnalyzer_cfi::pfCandidates, pfCandidatesFromPU_, pfCandidatesFromVtx_, verbose_, and AlignmentTracksFromVertexSelector_cfi::vertices.
|
inline |
Definition at line 30 of file PFPileUpAlgo.h.
References checkClosestZVertex_, and heppy_batch::val.
|
inline |
Definition at line 32 of file PFPileUpAlgo.h.
References fDzCutForChargedFromPUVtxs_, and heppy_batch::val.
|
inline |
Definition at line 31 of file PFPileUpAlgo.h.
References fNumOfPUVtxsForCharged_, and heppy_batch::val.
|
inline |
|
private |
use the closest z vertex if a track is not in a vertex
Definition at line 42 of file PFPileUpAlgo.h.
Referenced by chargedHadronVertex(), and setCheckClosestZVertex().
|
private |
Definition at line 44 of file PFPileUpAlgo.h.
Referenced by process(), and setDzCutForChargedFromPUVtxs().
|
private |
Definition at line 43 of file PFPileUpAlgo.h.
Referenced by process(), and setNumOfPUVtxsForCharged().
|
private |
Definition at line 50 of file PFPileUpAlgo.h.
Referenced by getPFCandidatesFromPU(), and process().
|
private |
Definition at line 49 of file PFPileUpAlgo.h.
Referenced by getPFCandidatesFromVtx(), and process().
|
private |