CMS 3D CMS Logo

MatchCandidateBenchmark.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_Benchmark_MatchCandidateBenchmark_h
2 #define RecoParticleFlow_Benchmark_MatchCandidateBenchmark_h
3 
5 
9 
10 #include <vector>
11 
14 public:
16 
17  ~MatchCandidateBenchmark() override;
18 
20  void setup(DQMStore::IBooker &b);
22 
24  void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate);
25 
26  void fillOne(const reco::Candidate &candidate,
27  const reco::Candidate &matchedCandidate,
29 
30 protected:
35 
38  std::vector<TH1F *> pTRes_;
39  std::vector<TH1F *> BRpTRes_;
40  std::vector<TH1F *> ERpTRes_;
41  std::vector<float> ptBins_;
42 
48 
49 private:
50  void computePtBins(const edm::ParameterSet &, const edm::ParameterSet &);
51  bool inEtaRange(double, bool);
52  inline bool inBarrelRange(double value) { return inEtaRange(value, true); }
53  inline bool inEndcapRange(double value) { return inEtaRange(value, false); }
54 };
55 
56 #endif
To plot Candidate quantities.
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
std::vector< TH1F * > pTRes_
bool inEndcapRange(double value)
void computePtBins(const edm::ParameterSet &, const edm::ParameterSet &)
abstract base class
Definition: Benchmark.h:19
std::vector< TH1F * > BRpTRes_
void setup(DQMStore::IBooker &b)
book histograms
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
bool inBarrelRange(double value)
Definition: value.py:1
std::vector< float > ptBins_
double b
Definition: hdecay.h:120
std::vector< TH1F * > ERpTRes_