13 gStyle->SetPalette(1);
14 gROOT->SetStyle(
"Plain");
17 c1 =
new TCanvas (
"c1",
"",20,20,1000,500);
20 TFile
f(
"microdosimetry.root");
23 ntuple = (TNtuple*)
f->Get(
"ntuple");
26 gStyle->SetOptStat(000000);
29 ntuple->Draw(
"flagProcess",
"",
"B");
30 ntuple->SetFillColor(2);
34 ntuple->Draw(
"flagProcess",
"flagProcess==12||flagProcess==15||flagProcess==17||flagProcess==20||flagProcess==23||flagProcess==26||flagProcess==30",
"Bsame");
35 ntuple->SetFillColor(3);
38 ntuple->Draw(
"flagProcess",
"flagProcess==11",
"Bsame");
39 ntuple->SetFillColor(4);
42 ntuple->Draw(
"flagProcess",
"flagProcess==13||flagProcess==18||flagProcess==21||flagProcess==24||flagProcess==27||flagProcess==31||flagProcess==33||flagProcess==34",
"Bsame");
43 ntuple->SetFillColor(5);
46 ntuple->Draw(
"flagProcess",
"flagProcess==19||flagProcess==25||flagProcess==28",
"Bsame");
47 ntuple->SetFillColor(6);
50 ntuple->Draw(
"flagProcess",
"flagProcess==22||flagProcess==29||flagProcess==32",
"Bsame");
57 ntuple->SetMarkerColor(2);
58 ntuple->Draw(
"x:y:z/1000",
"flagParticle==1",
"");
61 ntuple->SetMarkerColor(4);
62 ntuple->SetMarkerSize(4);
63 ntuple->Draw(
"x:y:z/1000",
"flagParticle==2",
"same");
66 ntuple->SetMarkerColor(3);
67 ntuple->SetMarkerSize(3);
68 ntuple->Draw(
"x:y:z/1000",
"flagParticle==3",
"same");