CMS 3D CMS Logo

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 
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() override;
44 
45  void produce(edm::Event&, const edm::EventSetup&) override;
46 
47  private:
48 
50 
55 
58 
60  bool enable_;
61 
63  bool verbose_;
64 
67 
68 };
69 
70 #endif
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
edm::EDGetTokenT< PFView > tokenPFCandidatesView_
fall-back token
Definition: PFPileUp.h:54
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PFPileUp.cc:55
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
edm::EDGetTokenT< PFCollection > tokenPFCandidates_
PFCandidates to be analyzed.
Definition: PFPileUp.h:52
bool enable_
enable PFPileUp selection
Definition: PFPileUp.h:60
~PFPileUp() override
Definition: PFPileUp.cc:51
PFPileUpAlgo pileUpAlgo_
Definition: PFPileUp.h:49
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