#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.
int PFPileUpAlgo::chargedHadronVertex | ( | const reco::VertexCollection & | vertices, |
const reco::PFCandidate & | pfcand | ||
) | const |
Definition at line 43 of file PFPileUpAlgo.cc.
References checkClosestZVertex_, cmsHarvester::index, reco::PFCandidate::trackRef(), reco::PFCandidate::vertex(), and w().
Referenced by ElectronMaker::PFIsolation2012(), process(), and PFCandidateMaker::SetVars().
|
inline |
|
inline |
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, 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_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().
|
inline |
Definition at line 31 of file PFPileUpAlgo.h.
References checkClosestZVertex_.
|
inline |
Definition at line 29 of file PFPileUpAlgo.h.
References validate_alignment_devdb10_cfg::verbose, and verbose_.
|
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 |