#include <PFPileUpAlgo.h>
Public Member Functions | |
int | chargedHadronVertex (const reco::VertexCollection &vertices, const reco::PFCandidate &pfcand) const |
const reco::PFCandidateCollection & | getPFCandidatesFromPU () const |
const reco::PFCandidateCollection & | getPFCandidatesFromVtx () const |
PFPileUpAlgo () | |
PFPileUpAlgo (bool checkClosestZVertex, bool verbose=false) | |
void | process (const reco::PFCandidateCollection &pfCandidates, const reco::VertexCollection &vertices, const edm::Handle< reco::PFCandidateCollection > *handle=0) |
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... | |
reco::PFCandidateCollection | pfCandidatesFromPU_ |
reco::PFCandidateCollection | pfCandidatesFromVtx_ |
bool | verbose_ |
verbose ? More... | |
Definition at line 12 of file PFPileUpAlgo.h.
|
inline |
Definition at line 14 of file PFPileUpAlgo.h.
|
inline |
Definition at line 16 of file PFPileUpAlgo.h.
|
inline |
Definition at line 19 of file PFPileUpAlgo.h.
int PFPileUpAlgo::chargedHadronVertex | ( | const reco::VertexCollection & | vertices, |
const reco::PFCandidate & | pfcand | ||
) | const |
Definition at line 44 of file PFPileUpAlgo.cc.
References checkClosestZVertex_, getHLTprescales::index, reco::PFCandidate::trackRef(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), reco::Vertex::trackWeight(), reco::PFCandidate::vertex(), and w().
Referenced by process().
|
inline |
Definition at line 30 of file PFPileUpAlgo.h.
References pfCandidatesFromPU_.
|
inline |
Definition at line 32 of file PFPileUpAlgo.h.
References pfCandidatesFromVtx_.
void PFPileUpAlgo::process | ( | const reco::PFCandidateCollection & | pfCandidates, |
const reco::VertexCollection & | vertices, | ||
const edm::Handle< reco::PFCandidateCollection > * | handle = 0 |
||
) |
Definition at line 5 of file PFPileUpAlgo.cc.
References chargedHadronVertex(), reco::PFCandidate::h, i, reco::PFCandidate::particleId(), pfCandidatesFromPU_, and pfCandidatesFromVtx_.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().
|
inline |
Definition at line 28 of file PFPileUpAlgo.h.
References checkClosestZVertex_.
|
inline |
Definition at line 26 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 41 of file PFPileUpAlgo.h.
Referenced by chargedHadronVertex(), and setCheckClosestZVertex().
|
private |
Definition at line 48 of file PFPileUpAlgo.h.
Referenced by getPFCandidatesFromPU(), and process().
|
private |
Definition at line 47 of file PFPileUpAlgo.h.
Referenced by getPFCandidatesFromVtx(), and process().
|
private |