CMS 3D CMS Logo

PFCandidateChecker.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFCandidateChecker_
2 #define RecoParticleFlow_PFCandidateChecker_
3 
4 // system include files
5 #include <memory>
6 #include <string>
7 #include <iostream>
8 
9 // user include files
13 
16 
20 
32  public:
33 
34  explicit PFCandidateChecker(const edm::ParameterSet&);
35 
36  ~PFCandidateChecker() override;
37 
38  void analyze(const edm::Event&, const edm::EventSetup&) override;
39 
40  void beginRun(const edm::Run & r, const edm::EventSetup & c) override;
41 
42  private:
43 
44  void printJets(const reco::PFJetCollection& pfJetsReco,
45  const reco::PFJetCollection& pfJetsReReco) const;
46 
47  void printMet(const reco::PFCandidateCollection& pfReco,
48  const reco::PFCandidateCollection& pfReReco) const;
49 
51  std::ostream& out=std::cout) const;
52 
53 
54 
60 
62  double deltaEMax_;
63  double deltaEtaMax_;
64  double deltaPhiMax_;
65 
67  bool verbose_;
68 
71 
73  bool rankByPt_;
74 
76  unsigned entry_;
77 
78  static bool greaterPt( const reco::PFCandidate& a, const reco::PFCandidate& b ) {
79  return (a.pt()>b.pt());
80  }
81 
82 
83 
84 };
85 
87 
88 #endif
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
static bool greaterPt(const reco::PFCandidate &a, const reco::PFCandidate &b)
unsigned entry_
Counter.
~PFCandidateChecker() override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
double pt() const final
transverse momentum
double deltaEMax_
Cuts for comparison.
Checks what a re-reco changes in PFCandidates.
bool verbose_
verbose ?
edm::InputTag inputTagPFJetsReReco_
bool rankByPt_
rank the candidates by Pt
edm::InputTag inputTagPFJetsReco_
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
double b
Definition: hdecay.h:120
void printElementsInBlocks(const reco::PFCandidate &cand, std::ostream &out=std::cout) const
std::vector< PFJet > PFJetCollection
collection of PFJet objects
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:40
edm::InputTag inputTagPFCandidatesReco_
PFCandidates in which we&#39;ll look for pile up particles.
double a
Definition: hdecay.h:121
bool printBlocks_
print the blocks associated to a given candidate ?
PFCandidateChecker(const edm::ParameterSet &)
edm::InputTag inputTagPFCandidatesReReco_
Definition: Run.h:43
void printMet(const reco::PFCandidateCollection &pfReco, const reco::PFCandidateCollection &pfReReco) const
void printJets(const reco::PFJetCollection &pfJetsReco, const reco::PFJetCollection &pfJetsReReco) const