CMS 3D CMS Logo

PFPileUpAlgo.h
Go to the documentation of this file.
1 #ifndef CommonTools_PFCandProducer_PFPileUpAlgo_
2 #define CommonTools_PFCandProducer_PFPileUpAlgo_
3 
6 
8 
11 
12 class PFPileUpAlgo {
13 public:
14  typedef std::vector<edm::FwdPtr<reco::PFCandidate> > PFCollection;
15 
17 
20  ;
21  }
22 
23  ~PFPileUpAlgo() { ; }
24 
25  // the last parameter is needed if you want to use the sourceCandidatePtr
27 
28  inline void setVerbose(bool verbose) { verbose_ = verbose; }
29 
31 
33 
35 
37 
38 private:
41 
43  bool verbose_;
44 
47 };
48 
49 #endif
zmumugammaAnalyzer_cfi.pfCandidates
pfCandidates
Definition: zmumugammaAnalyzer_cfi.py:11
PFPileUpAlgo
Definition: PFPileUpAlgo.h:12
funct::false
false
Definition: Factorize.h:29
EDProducer.h
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
PFPileUpAlgo::getPFCandidatesFromVtx
const PFCollection & getPFCandidatesFromVtx() const
Definition: PFPileUpAlgo.h:34
PFPileUpAlgo::PFPileUpAlgo
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
Definition: PFPileUpAlgo.h:18
PFPileUpAlgo::getPFCandidatesFromPU
const PFCollection & getPFCandidatesFromPU() const
Definition: PFPileUpAlgo.h:32
PFPileUpAlgo::process
void process(const PFCollection &pfCandidates, const reco::VertexCollection &vertices)
Definition: PFPileUpAlgo.cc:5
PFPileUpAlgo::PFPileUpAlgo
PFPileUpAlgo()
Definition: PFPileUpAlgo.h:16
pfDeepBoostedJetPreprocessParams_cfi.pfcand
pfcand
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:8
verbose
static constexpr int verbose
Definition: HLTExoticaSubAnalysis.cc:25
PFPileUpAlgo::setVerbose
void setVerbose(bool verbose)
Definition: PFPileUpAlgo.h:28
PFPileUpAlgo::~PFPileUpAlgo
~PFPileUpAlgo()
Definition: PFPileUpAlgo.h:23
funct::true
true
Definition: Factorize.h:173
Event.h
VertexFwd.h
heppy_batch.val
val
Definition: heppy_batch.py:351
Frameworkfwd.h
PFPileUpAlgo::pfCandidatesFromPU_
PFCollection pfCandidatesFromPU_
Definition: PFPileUpAlgo.h:46
pfIsolationCalculator_cfi.checkClosestZVertex
checkClosestZVertex
Definition: pfIsolationCalculator_cfi.py:20
PFPileUpAlgo::pfCandidatesFromVtx_
PFCollection pfCandidatesFromVtx_
Definition: PFPileUpAlgo.h:45
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
PFPileUpAlgo::chargedHadronVertex
int chargedHadronVertex(const reco::VertexCollection &vertices, const reco::PFCandidate &pfcand) const
Definition: PFPileUpAlgo.cc:37
PFPileUpAlgo::verbose_
bool verbose_
verbose ?
Definition: PFPileUpAlgo.h:43
PFPileUpAlgo::checkClosestZVertex_
bool checkClosestZVertex_
use the closest z vertex if a track is not in a vertex
Definition: PFPileUpAlgo.h:40
PFCandidateFwd.h
PFPileUpAlgo::PFCollection
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCollection
Definition: PFPileUpAlgo.h:14
PFPileUpAlgo::setCheckClosestZVertex
void setCheckClosestZVertex(bool val)
Definition: PFPileUpAlgo.h:30
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7