diff --git a/util/combinedhisto.py b/util/combinedhisto.py index d577ab2..bc236e3 100644 --- a/util/combinedhisto.py +++ b/util/combinedhisto.py @@ -16,6 +16,7 @@ def OverlapHisto(pl, energy, material): celoss = TCanvas("e_loss", "e_loss", 500, 500) legende_loss = TLegend(0.1, 0.7, 0.48, 0.9) + h1eloss1103.SetAxisRange(0., 3800., "Y") h1eloss1103.Draw("histo") legende_loss.AddEntry(h1eloss1103, "G411.0.p03-"+pl, "lep") h1eloss1071.SetMarkerColor(kRed) @@ -44,24 +45,25 @@ def OverlapHisto(pl, energy, material): cmom = TCanvas("mom", "mom", 500, 500) legende_mom = TLegend(0.1, 0.7, 0.48, 0.9) - h1mom1103.Draw("histo") - legende_mom.AddEntry(h1mom1103, "G411.0.p03-"+pl, "lep") - h1mom1071.SetMarkerColor(kRed) - h1mom1071.SetLineColor(kRed) - h1mom1071.Draw("same histo") - legende_mom.AddEntry(h1mom1071, "G410.7.p01-"+pl, "lep") - h1mom1063.SetMarkerColor(kBlue) - h1mom1063.SetLineColor(kBlue) - h1mom1063.Draw("same histo") - legende_mom.AddEntry(h1mom1063, "G410.6.p03-"+pl, "lep") + h1mom1043.SetMarkerColor(6) + h1mom1043.SetLineColor(6) + h1mom1043.SetAxisRange(0., 18000., "Y") + h1mom1043.Draw("histo") + legende_mom.AddEntry(h1mom1043, "G410.4.p03-"+pl, "lep") h1mom1051.SetMarkerColor(kGreen) h1mom1051.SetLineColor(kGreen) h1mom1051.Draw("same histo") legende_mom.AddEntry(h1mom1051, "G410.5.p01-"+pl, "lep") - h1mom1043.SetMarkerColor(6) - h1mom1043.SetLineColor(6) - h1mom1043.Draw("same histo") - legende_mom.AddEntry(h1mom1043, "G410.4.p03-"+pl, "lep") + h1mom1063.SetMarkerColor(kBlue) + h1mom1063.SetLineColor(kBlue) + h1mom1063.Draw("same histo") + legende_mom.AddEntry(h1mom1063, "G410.6.p03-"+pl, "lep") + h1mom1071.SetMarkerColor(kRed) + h1mom1071.SetLineColor(kRed) + h1mom1071.Draw("same histo") + legende_mom.AddEntry(h1mom1071, "G410.7.p01-"+pl, "lep") + h1mom1103.Draw("same histo") + legende_mom.AddEntry(h1mom1103, "G411.0.p03-"+pl, "lep") legende_mom.Draw() h1pi01043 = file1043.Get("Pi0_energy") @@ -128,5 +130,7 @@ def OverlapHisto(pl, energy, material): outputfile.Close() -OverlapHisto("QGSP", "100.", "G4_N") -#OverlapHisto("BERT", "2.00", "G4_N") +#OverlapHisto("QGSP", "100.", "G4_N") +#OverlapHisto("FTFP", "100.", "G4_N") +#OverlapHisto("FTFP", "10.0", "G4_Cu") +OverlapHisto("BERT", "2.00", "G4_Cu")