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
MatchCandidateBenchmark::inEndcapRange
bool inEndcapRange(double value)
Definition: MatchCandidateBenchmark.h:53
Benchmark
abstract base class
Definition: Benchmark.h:19
MatchCandidateBenchmark::ERpTRes_
std::vector< TH1F * > ERpTRes_
Definition: MatchCandidateBenchmark.h:40
MatchCandidateBenchmark::BRpTRes_
std::vector< TH1F * > BRpTRes_
Definition: MatchCandidateBenchmark.h:39
MatchCandidateBenchmark::computePtBins
void computePtBins(const edm::ParameterSet &, const edm::ParameterSet &)
Definition: MatchCandidateBenchmark.cc:102
MatchCandidateBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: MatchCandidateBenchmark.cc:28
MatchCandidateBenchmark::~MatchCandidateBenchmark
~MatchCandidateBenchmark() override
Definition: MatchCandidateBenchmark.cc:26
MatchCandidateBenchmark::BRdelta_et_Over_et_VS_et_
TH2F * BRdelta_et_Over_et_VS_et_
Definition: MatchCandidateBenchmark.h:36
MatchCandidateBenchmark::delta_phi_VS_et_
TH2F * delta_phi_VS_et_
Definition: MatchCandidateBenchmark.h:34
MatchCandidateBenchmark::eta_min_barrel_
double eta_min_barrel_
Definition: MatchCandidateBenchmark.h:44
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
MatchCandidateBenchmark::inBarrelRange
bool inBarrelRange(double value)
Definition: MatchCandidateBenchmark.h:52
MatchCandidateBenchmark::fillOne
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
Definition: MatchCandidateBenchmark.cc:228
MatchCandidateBenchmark::inEtaRange
bool inEtaRange(double, bool)
Definition: MatchCandidateBenchmark.cc:250
MatchCandidateBenchmark::MatchCandidateBenchmark
MatchCandidateBenchmark(Mode mode)
Definition: MatchCandidateBenchmark.cc:13
MatchCandidateBenchmark::delta_eta_VS_et_
TH2F * delta_eta_VS_et_
Definition: MatchCandidateBenchmark.h:33
CandidateFwd.h
MatchCandidateBenchmark::pTRes_
std::vector< TH1F * > pTRes_
Definition: MatchCandidateBenchmark.h:38
MatchCandidateBenchmark::eta_max_barrel_
double eta_max_barrel_
Definition: MatchCandidateBenchmark.h:45
MatchCandidateBenchmark
To plot Candidate quantities.
Definition: MatchCandidateBenchmark.h:13
MatchCandidateBenchmark::eta_min_endcap_
double eta_min_endcap_
Definition: MatchCandidateBenchmark.h:46
b
double b
Definition: hdecay.h:118
Benchmark.h
edm::ParameterSet
Definition: ParameterSet.h:36
Benchmark::Mode
Mode
Definition: Benchmark.h:32
value
Definition: value.py:1
MatchCandidateBenchmark::histogramBooked_
bool histogramBooked_
Definition: MatchCandidateBenchmark.h:43
MatchCandidateBenchmark::ERdelta_et_Over_et_VS_et_
TH2F * ERdelta_et_Over_et_VS_et_
Definition: MatchCandidateBenchmark.h:37
reco::Candidate
Definition: Candidate.h:27
MatchCandidateBenchmark::eta_max_endcap_
double eta_max_endcap_
Definition: MatchCandidateBenchmark.h:47
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
dqm::implementation::IBooker
Definition: DQMStore.h:43
Candidate.h
MatchCandidateBenchmark::ptBins_
std::vector< float > ptBins_
Definition: MatchCandidateBenchmark.h:41
ParameterSet.h
MatchCandidateBenchmark::delta_et_Over_et_VS_et_
TH2F * delta_et_Over_et_VS_et_
Definition: MatchCandidateBenchmark.h:31
MatchCandidateBenchmark::delta_et_VS_et_
TH2F * delta_et_VS_et_
Definition: MatchCandidateBenchmark.h:32