Skip to content
Snippets Groups Projects

Resolve "Add separate plots for sampling fraction from ScFi Cal"

@@ -97,7 +97,10 @@ void emcal_barrel_particles_analysis(std::string particle_name = "electron", boo
.Define("EsimImg", Esim, {"EcalBarrelHits"})
.Define("EsimScFi", Esim, {"EcalBarrelScFiHits"})
.Define("Esim", "EsimImg+EsimScFi")
.Define("fsam", fsam, {"Esim", "Ethr"});
.Define("fsam", fsam, {"Esim", "Ethr"})
.Define("fsamImg", fsam, {"EsimImg", "Ethr"})
.Define("fsamScFi", fsam, {"EsimScFi", "Ethr"});
// Define Histograms
auto hEthr = d1.Histo1D(
@@ -121,7 +124,7 @@ void emcal_barrel_particles_analysis(std::string particle_name = "electron", boo
auto hfsamImg = d1.Histo1D(
{"hfsamImg", "Sampling Fraction; Sampling Fraction; Events", 400, 0.0, 0.2},
"fsamImg");
auto hfsam = d1.Histo1D(
auto hfsamScFi = d1.Histo1D(
{"hfsamScFi", "Sampling Fraction; Sampling Fraction; Events", 400, 0.0, 0.2},
"fsamScFi");
@@ -193,7 +196,7 @@ void emcal_barrel_particles_analysis(std::string particle_name = "electron", boo
TF1 *gaus = h->GetFunction("gaus");
gaus->SetLineWidth(2);
gaus->SetLineColor(kRed);
save_canvas(c4,"fsamImg",particle_name);
save_canvas(c5,"fsamImg",particle_name);
}
{
@@ -208,7 +211,7 @@ void emcal_barrel_particles_analysis(std::string particle_name = "electron", boo
TF1 *gaus = h->GetFunction("gaus");
gaus->SetLineWidth(2);
gaus->SetLineColor(kRed);
save_canvas(c4,"fsamScFi",particle_name);
save_canvas(c6,"fsamScFi",particle_name);
}
j[particle_name] = {
Loading