121 TH2 *th =
me->getTH2F();
122 size_t nbinx =
me->getNbinsX();
123 size_t nbiny =
me->getNbinsY();
125 float ymin = th->GetYaxis()->GetXmin();
126 float ymax = th->GetYaxis()->GetXmax();
129 float *
xbins =
new float[nbinx + 1];
130 for (
size_t ix = 1; ix < nbinx + 1; ++ix) {
131 xbins[ix - 1] = th->GetXaxis()->GetBinLowEdge(ix);
133 xbins[ix] = th->GetXaxis()->GetBinUpEdge(ix);
139 tit_new =
";" + xtit +
";Average_" + ytit;
142 tit_new =
";" + xtit +
";RMS_" + ytit;
145 tit_new =
";" + xtit +
";Mean_" + ytit;
148 tit_new =
";" + xtit +
";Sigma_" + ytit;
154 for (
size_t ix = 1; ix < nbinx + 1; ++ix) {
156 for (
size_t iy = 1; iy < nbiny + 1; ++iy) {
184 TH2 *th =
me->getTH2F();
185 size_t nbinx =
me->getNbinsX();
186 size_t nbiny =
me->getNbinsY();
188 float ymin = th->GetYaxis()->GetXmin();
189 float ymax = th->GetYaxis()->GetXmax();
192 float *
xbins =
new float[nbinx + 1];
193 for (
size_t ix = 1; ix < nbinx + 1; ++ix) {
194 xbins[ix - 1] = th->GetXaxis()->GetBinLowEdge(ix);
196 xbins[ix] = th->GetXaxis()->GetBinUpEdge(ix);
202 if (
folder ==
"ParticleFlow/PFElectronValidation/CompWithGenElectron") {
203 if (
name ==
"delta_et_Over_et_VS_et_")
204 projection = ibooker.
book1D(
"delta_et_Over_et",
"E_{T} resolution;#DeltaE_{T}/E_{T}", nbiny,
ymin,
ymax);
205 if (
name ==
"delta_et_VS_et_")
206 projection = ibooker.
book1D(
"delta_et_",
"#DeltaE_{T};#DeltaE_{T}", nbiny,
ymin,
ymax);
207 if (
name ==
"delta_eta_VS_et_")
208 projection = ibooker.
book1D(
"delta_eta_",
"#Delta#eta;#Delta#eta", nbiny,
ymin,
ymax);
209 if (
name ==
"delta_phi_VS_et_")
210 projection = ibooker.
book1D(
"delta_phi_",
"#Delta#phi;#Delta#phi", nbiny,
ymin,
ymax);
214 for (
size_t iy = 1; iy < nbiny + 1; ++iy) {
215 projection->
setBinContent(iy, th->ProjectionY(
"e")->GetBinContent(iy));
237 TH2 *th =
me->getTH2F();
238 size_t nbinx =
me->getNbinsX();
240 float ymin = th->GetYaxis()->GetXmin();
241 float ymax = th->GetYaxis()->GetXmax();
244 double *
xbins =
new double[nbinx + 1];
245 for (
size_t ix = 1; ix < nbinx + 1; ++ix) {
246 xbins[ix - 1] = th->GetXaxis()->GetBinLowEdge(ix);
248 xbins[ix] = th->GetXaxis()->GetBinUpEdge(ix);
257 TProfile *
profileX = th->ProfileX();
261 static const Int_t NUM_STAT = 7;
262 Double_t
stats[NUM_STAT] = {0};
265 for (Int_t
i = 0;
i < 2;
i++) {
267 for (
size_t ix = 0; ix <= nbinx + 1; ++ix) {
300 TH1F *th_slice = me_slice->
getTH1F();
301 if (th_slice && th_slice->GetEntries() > 0) {
303 TF1 gaus(
"mygaus",
"gaus");
304 th_slice->Fit(&gaus,
"Q0 SERIAL");
305 sigma = gaus.GetParameter(2);
306 mean = gaus.GetParameter(1);
323 TH1F *me1_forEff = (TH1F *)
me1->getTH1F()->Rebin(2,
"me1_forEff");
324 TH1F *me2_forEff = (TH1F *)
me2->getTH1F()->Rebin(2,
"me2_forEff");
330 size_t nbinx = me1_forEff->GetNbinsX();
334 float xmin = me1_forEff->GetXaxis()->GetXmin();
335 float xmax = me1_forEff->GetXaxis()->GetXmax();
338 tit_new =
";" + xtit +
";" + xtit +
" efficiency";
357 me_eff->
getTH1F()->Divide(me1_forEff, me2_forEff, 1, 1,
"B");