53 float ptBins[11] = {0, 1, 2, 5, 10, 20, 50, 100, 200, 400, 1000};
56 ";E_{T, true} (GeV);#DeltaE_{T}/E_{T}",
58 dptOvptPS.
n, dptOvptPS.
m, dptOvptPS.
M );
62 ";E_{T, true} (GeV);#DeltaE_{T}",
64 dptPS.
n, dptPS.
m, dptPS.
M );
67 ";#E_{T, true} (GeV);#Delta#eta",
69 detaPS.
n, detaPS.
m, detaPS.
M );
72 ";E_{T, true} (GeV);#Delta#phi",
74 dphiPS.
n, dphiPS.
m, dphiPS.
M );
87 std::vector<double> ptBinsPS = parameterSet.
getParameter< std::vector<double> >(
"VariablePtBins" );
88 float*
ptBins =
new float[ptBinsPS.size()];
89 for (
size_t i = 0;
i < ptBinsPS.size();
i++) {
90 ptBins[
i] = ptBinsPS[
i];
93 if (dptOvptPS.getParameter<
bool>(
"switchOn")) {
95 ";E_{T, true} (GeV);#DeltaE_{T}/E_{T}",
97 dptOvptPS.getParameter<int32_t>(
"nBin"),
98 dptOvptPS.getParameter<
double>(
"xMin"),
99 dptOvptPS.getParameter<
double>(
"xMax"));
104 ";E_{T, true} (GeV);#DeltaE_{T}",
105 ptBinsPS.size()-1,
ptBins,
111 if (detaPS.getParameter<
bool>(
"switchOn")) {
113 ";#E_{T, true} (GeV);#Delta#eta",
114 ptBinsPS.size()-1,
ptBins,
115 detaPS.getParameter<int32_t>(
"nBin"),
116 detaPS.getParameter<
double>(
"xMin"),
117 detaPS.getParameter<
double>(
"xMax"));
120 if (dphiPS.getParameter<
bool>(
"switchOn")) {
122 ";E_{T, true} (GeV);#Delta#phi",
123 ptBinsPS.size()-1,
ptBins,
124 dphiPS.getParameter<int32_t>(
"nBin"),
125 dphiPS.getParameter<
double>(
"xMin"),
126 dphiPS.getParameter<
double>(
"xMax"));
virtual ~MatchCandidateBenchmark()
T getParameter(std::string const &) const
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
virtual float eta() const =0
momentum pseudorapidity
void setup()
book histograms
TH2F * delta_et_Over_et_VS_et_
virtual float phi() const =0
momentum azimuthal angle
virtual float pt() const =0
transverse momentum
MatchCandidateBenchmark(Mode mode)
TH2F * book2D(const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax)
book a 2D histogram, either with DQM or plain root.
bool isInRange(float pt, float eta, float phi) const