Skip to content

Commit

Permalink
Merge pull request #30 from giovannimarchiori/gmarchio-main-20240704-2
Browse files Browse the repository at this point in the history
fix buggy multipad canvas
  • Loading branch information
BrieucF authored Jul 4, 2024
2 parents 9b5a39d + 65d07f0 commit 08b8ba8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions FCCSW_ecal/FCC_calo_analysis_cpp/plot_samplingFraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@


# gStyle.SetImageScaling(3.)
# gStyle.SetOptFit(1111) # fi you want all fiut info on the preview canvas
# gStyle.SetOptFit(1111) # if you want all fit info on the preview canvas
gROOT.SetBatch(kTRUE)

if not os.path.isdir(calo_init.args.outputfolder):
os.mkdir(calo_init.args.outputfolder)

merge = [sum(calo_init.args.merge[:i])
for i in range(0, len(calo_init.args.merge))]
sliceWidth = calo_init.args.layerWidth # cm
Expand Down Expand Up @@ -130,6 +129,8 @@
fitoptions = "SQRN"
for islice, h in enumerate(hmerged):
h.Print()
tmp_canvas_for_fit = prepare_single_canvas("tmp_canvas_for_fit","tmp_canvas_for_fit")

fitPre = TF1("fitPre", "gaus",
h.GetMean() - 1. * h.GetRMS(),
h.GetMean() + 1. * h.GetRMS())
Expand Down Expand Up @@ -162,7 +163,7 @@
ifile, energy, result.Get().Parameter(1))
dict_layer_sfVSenergyGraph[islice].SetPointError(
ifile, 0, result.Get().Parameter(2))
# draw both singla canvas and one big divided canvas (later is buggy at the moment)
# draw both single canvas and one big divided canvas
if calo_init.args.preview:
if calo_init.args.theta:
tmp_canvas = prepare_single_canvas("theta_%s_" % (energy) + h.GetTitle().replace(
Expand Down

0 comments on commit 08b8ba8

Please sign in to comment.