9 gROOT->SetStyle(
"Plain");
12 c1 =
new TCanvas (
"c1",
"",20,20,1000,500);
15 system (
"rm -rf microdosimetry.root");
16 system (
"hadd microdosimetry.root microdosimetry_*.root");
18 TFile
f(
"microdosimetry.root");
21 ntuple = (TNtuple*)
f.Get(
"microdosimetry");
24 gStyle->SetOptStat(000000);
27 ntuple->Draw(
"flagProcess",
"",
"B");
28 ntuple->SetFillColor(2);
32 ntuple->Draw(
"flagProcess",
"flagProcess==12||flagProcess==15||flagProcess==17||flagProcess==20||flagProcess==23||flagProcess==26||flagProcess==30",
"Bsame");
33 ntuple->SetFillColor(3);
36 ntuple->Draw(
"flagProcess",
"flagProcess==11",
"Bsame");
37 ntuple->SetFillColor(4);
40 ntuple->Draw(
"flagProcess",
"flagProcess==13||flagProcess==18||flagProcess==21||flagProcess==24||flagProcess==27||flagProcess==31||flagProcess==33||flagProcess==34",
"Bsame");
41 ntuple->SetFillColor(5);
44 ntuple->Draw(
"flagProcess",
"flagProcess==19||flagProcess==25||flagProcess==28",
"Bsame");
45 ntuple->SetFillColor(6);
48 ntuple->Draw(
"flagProcess",
"flagProcess==22||flagProcess==29||flagProcess==32",
"Bsame");
55 ntuple->SetMarkerColor(2);
56 ntuple->Draw(
"x:y:z/1000",
"flagParticle==1",
"");
59 ntuple->SetMarkerColor(4);
60 ntuple->SetMarkerSize(4);
61 ntuple->Draw(
"x:y:z/1000",
"flagParticle==2",
"same");
64 ntuple->SetMarkerColor(3);
65 ntuple->SetMarkerSize(3);
66 ntuple->Draw(
"x:y:z/1000",
"flagParticle==3",
"same");
system("rm -rf microbeam.root")
TFile f("microbeam.root")