2 from ROOT
import TCanvas, TFile, TH1F,TH2F,TH3F, TF1, TGraph, gROOT
9 dirName =
'/sphenix/user/shulga/Work/IBF/DistortionMap/Files/'
10 bXs = [1508071, 3016509, 4524020, 6032112, 7540028, 9048092, 10556072, 12064371, 13572143, 15080178, 16588072, 18096105]
12 h_names = [
'_h_hits',
'_h_R',
'_h_DC_E']
14 h_names.append(
'_h_SC_ibf_{}'.
format(i))
15 h_names.append(
'_h_SC_prim_{}'.
format(i))
20 name =
'mdc2_ADCBins_UseFieldMaps_hist_G4Hits_sHijing_0-12fm_bX{}*'.
format(bX)
21 outputName =
'/sphenix/user/shulga/Work/IBF/DistortionMap/Files/Summary_hist_mdc2_UseFieldMaps_AA_event_{}_bX{}.root'.
format(ib,bX)
23 filePattern = dirName+name
24 files = sorted(glob.glob(filePattern))
32 newName=h_name+
'_{}'.
format(n)
35 hist = f.Get(h_name).Clone(h_name)
44 outfile = TFile(outputName,
"RECREATE")