CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PFPileUpAlgo.h
Go to the documentation of this file.
1 #ifndef CommonTools_PFCandProducer_PFPileUpAlgo_
2 #define CommonTools_PFCandProducer_PFPileUpAlgo_
3 
5 
7 
10 
11 class PFPileUpAlgo {
12 public:
13  typedef std::vector<edm::FwdPtr<reco::PFCandidate> > PFCollection;
14 
16 
19  ;
20  }
21 
22  ~PFPileUpAlgo() { ; }
23 
24  // the last parameter is needed if you want to use the sourceCandidatePtr
26 
27  inline void setVerbose(bool verbose) { verbose_ = verbose; }
28 
30  inline void setNumOfPUVtxsForCharged(unsigned int val) { fNumOfPUVtxsForCharged_ = val; }
32 
34 
36 
38 
39 private:
44 
46  bool verbose_;
47 
50 };
51 
52 #endif
double fDzCutForChargedFromPUVtxs_
Definition: PFPileUpAlgo.h:43
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCollection
Definition: PFPileUpAlgo.h:13
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:42
PFCollection pfCandidatesFromVtx_
Definition: PFPileUpAlgo.h:48
void setCheckClosestZVertex(bool val)
Definition: PFPileUpAlgo.h:29
void setDzCutForChargedFromPUVtxs(double val)
Definition: PFPileUpAlgo.h:31
bool verbose_
verbose ?
Definition: PFPileUpAlgo.h:46
PFPileUpAlgo(bool checkClosestZVertex, bool verbose=false)
Definition: PFPileUpAlgo.h:17
void setNumOfPUVtxsForCharged(unsigned int val)
Definition: PFPileUpAlgo.h:30
PFCollection pfCandidatesFromPU_
Definition: PFPileUpAlgo.h:49
const PFCollection & getPFCandidatesFromPU() const
Definition: PFPileUpAlgo.h:33
const PFCollection & getPFCandidatesFromVtx() const
Definition: PFPileUpAlgo.h:35
bool checkClosestZVertex_
use the closest z vertex if a track is not in a vertex
Definition: PFPileUpAlgo.h:41
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:27