#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 | setVerbose (bool verbose) |
~PFPileUpAlgo () | |
Private Attributes | |
bool | checkClosestZVertex_ |
use the closest z vertex if a track is not in a vertex More... | |
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 16 of file PFPileUpAlgo.h.
|
inline |
Definition at line 18 of file PFPileUpAlgo.h.
|
inline |
Definition at line 20 of file PFPileUpAlgo.h.
|
inline |
Definition at line 23 of file PFPileUpAlgo.h.
References slimmedMuons_cfi::pfCandidates, process(), and electrons_cff::vertices.
int PFPileUpAlgo::chargedHadronVertex | ( | const reco::VertexCollection & | vertices, |
const reco::PFCandidate & | pfcand | ||
) | const |
Definition at line 43 of file PFPileUpAlgo.cc.
References checkClosestZVertex_, PVValHelper::dz, HiIsolationCommonParameters_cff::track, reco::PFCandidate::trackRef(), reco::PFCandidate::vertex(), badGlobalMuonTaggersAOD_cff::vtx, and w.
Referenced by getPFCandidatesFromVtx(), and process().
|
inline |
|
inline |
Definition at line 35 of file PFPileUpAlgo.h.
References chargedHadronVertex(), and pfCandidatesFromVtx_.
void PFPileUpAlgo::process | ( | const PFCollection & | pfCandidates, |
const reco::VertexCollection & | vertices | ||
) |
Definition at line 5 of file PFPileUpAlgo.cc.
References chargedHadronVertex(), gather_cfg::cout, reco::PFCandidate::h, mps_fire::i, reco::PFCandidate::particleId(), pfCandidatesFromPU_, pfCandidatesFromVtx_, and verbose_.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty(), and ~PFPileUpAlgo().
|
inline |
Definition at line 31 of file PFPileUpAlgo.h.
References checkClosestZVertex_, and heppy_batch::val.
|
inline |
|
private |
use the closest z vertex if a track is not in a vertex
Definition at line 44 of file PFPileUpAlgo.h.
Referenced by chargedHadronVertex(), and setCheckClosestZVertex().
|
private |
Definition at line 51 of file PFPileUpAlgo.h.
Referenced by getPFCandidatesFromPU(), and process().
|
private |
Definition at line 50 of file PFPileUpAlgo.h.
Referenced by getPFCandidatesFromVtx(), and process().
|
private |