CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFPileUp.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PFCandProducer_PFPileUp_
2 #define PhysicsTools_PFCandProducer_PFPileUp_
3 
4 // system include files
5 #include <memory>
6 #include <string>
7 
8 // user include files
12 
15 
18 
20 
34 class PFPileUp : public edm::EDProducer {
35  public:
36 
37  typedef std::vector< edm::FwdPtr<reco::PFCandidate> > PFCollection;
39  typedef std::vector<reco::PFCandidate> PFCollectionByValue;
40 
41  explicit PFPileUp(const edm::ParameterSet&);
42 
43  ~PFPileUp();
44 
45  virtual void produce(edm::Event&, const edm::EventSetup&);
46 
47  virtual void beginJob();
48 
49  private:
50 
52 
55 
58 
60  bool enable_;
61 
63  bool verbose_;
64 
67 
68 };
69 
70 #endif
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: PFPileUp.cc:56
Identifies pile-up candidates from a collection of PFCandidates, and produces the corresponding colle...
Definition: PFPileUp.h:34
edm::EDGetTokenT< reco::VertexCollection > tokenVertices_
vertices
Definition: PFPileUp.h:57
bool verbose_
verbose ?
Definition: PFPileUp.h:63
std::vector< reco::PFCandidate > PFCollectionByValue
Definition: PFPileUp.h:39
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCollection
Definition: PFPileUp.h:37
~PFPileUp()
Definition: PFPileUp.cc:49
edm::EDGetTokenT< PFCollection > tokenPFCandidates_
PFCandidates to be analyzed.
Definition: PFPileUp.h:54
bool enable_
enable PFPileUp selection
Definition: PFPileUp.h:60
virtual void beginJob()
Definition: PFPileUp.cc:53
PFPileUpAlgo pileUpAlgo_
Definition: PFPileUp.h:51
bool checkClosestZVertex_
use the closest z vertex if a track is not in a vertex
Definition: PFPileUp.h:66
PFPileUp(const edm::ParameterSet &)
Definition: PFPileUp.cc:18
edm::View< reco::PFCandidate > PFView
Definition: PFPileUp.h:38