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  inline void setNumOfPUVtxsForCharged(unsigned int val) { fNumOfPUVtxsForCharged_ = val; }
33 
35 
37 
39 
40 private:
45 
47  bool verbose_;
48 
51 };
52 
53 #endif
double fDzCutForChargedFromPUVtxs_
Definition: PFPileUpAlgo.h:44
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCollection
Definition: PFPileUpAlgo.h:14
bool verbose
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
int chargedHadronVertex(const reco::VertexCollection &vertices, const reco::PFCandidate &pfcand) const
Definition: PFPileUpAlgo.cc:40
unsigned int fNumOfPUVtxsForCharged_
Definition: PFPileUpAlgo.h:43
PFCollection pfCandidatesFromVtx_
Definition: PFPileUpAlgo.h:49
void setCheckClosestZVertex(bool val)
Definition: PFPileUpAlgo.h:30
void setDzCutForChargedFromPUVtxs(double val)
Definition: PFPileUpAlgo.h:32
bool verbose_
verbose ?
Definition: PFPileUpAlgo.h:47
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
Definition: PFPileUpAlgo.h:18
void setNumOfPUVtxsForCharged(unsigned int val)
Definition: PFPileUpAlgo.h:31
PFCollection pfCandidatesFromPU_
Definition: PFPileUpAlgo.h:50
const PFCollection & getPFCandidatesFromPU() const
Definition: PFPileUpAlgo.h:34
const PFCollection & getPFCandidatesFromVtx() const
Definition: PFPileUpAlgo.h:36
bool checkClosestZVertex_
use the closest z vertex if a track is not in a vertex
Definition: PFPileUpAlgo.h:42
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
void process(const PFCollection &pfCandidates, const reco::VertexCollection &vertices)
Definition: PFPileUpAlgo.cc:6
void setVerbose(bool verbose)
Definition: PFPileUpAlgo.h:28