4 from array
import array
8 input_file_1=TFile(
'test35a.root',
'READ')
9 input_file_2=TFile(
'test35b.root',
'READ')
14 c1 = TCanvas(
'c1',
'test35', 200, 10, 700, 500)
25 bin.append(pow(10,(-2+0.1*i)))
27 h_1 = TH1F(
'unbiased',
'Source Spectrum',40,bin)
28 h_2 = TH1F(
'biased',
'Source Spectrum',40,bin)
33 t1 = gROOT.FindObject(
'MyTuple')
34 for i
in range(t1.GetEntries()):
36 h_1.Fill(t1.Energy,t1.Weight)
40 t1 = gROOT.FindObject(
"MyTuple")
41 for i
in range(t1.GetEntries()):
43 h_2.Fill(t1.Energy,t1.Weight)
45 h_2.SetLineStyle(kDashed);
46 h_2.SetLineColor(kBlue);
50 c1.Print(
"./test35.png")
const G4ParticleDefinition const G4Material *G4double range