CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
37 
38  virtual void analyze(const edm::Event&, const edm::EventSetup&);
39 
40  virtual void beginRun(const edm::Run & r, const edm::EventSetup & c);
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 
86 #endif
static bool greaterPt(const reco::PFCandidate &a, const reco::PFCandidate &b)
unsigned entry_
Counter.
double deltaEMax_
Cuts for comparison.
Checks what a re-reco changes in PFCandidates.
virtual void beginRun(const edm::Run &r, const edm::EventSetup &c)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool verbose_
verbose ?
edm::InputTag inputTagPFJetsReReco_
tuple out
Definition: dbtoconf.py:99
bool rankByPt_
rank the candidates by Pt
edm::InputTag inputTagPFJetsReco_
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
virtual double pt() const
transverse momentum
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:33
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 ?
tuple cout
Definition: gather_cfg.py:121
PFCandidateChecker(const edm::ParameterSet &)
edm::InputTag inputTagPFCandidatesReReco_
Definition: Run.h:33
void printMet(const reco::PFCandidateCollection &pfReco, const reco::PFCandidateCollection &pfReReco) const
void printJets(const reco::PFJetCollection &pfJetsReco, const reco::PFJetCollection &pfJetsReReco) const