2 from ROOT
import TCanvas, TFile, TH1F,TH2F,TH3F, TF1, TGraph, gROOT
9 bXs = [1508071, 3016509, 4524020, 6032112, 7540028, 9048092, 10556072, 12064371, 13572143, 15080178, 16588072, 18096105]
19 name =
'hist_G4Hits_sHijing_0-12fm_bX{}'.
format(bX)
20 outputName =
'./Files/Summary_ADC_NoW_hist_AA_event_0_bX{}.root'.
format(bX)
21 files = [f
for f
in os.listdir(dirName)
if re.match(name, f)]
26 f = TFile.Open(dirName+file)
27 for h_name
in h_names:
31 hist = f.Get(h_name).Clone()
40 outfile = TFile(outputName,
"RECREATE")