Import Geant4 10.2.0 source tree
This commit is contained in:
@@ -11,10 +11,9 @@
|
||||
gROOT->Reset();
|
||||
gStyle->SetPalette(1);
|
||||
gROOT->SetStyle("Plain");
|
||||
Double_t scale;
|
||||
|
||||
c1 = new TCanvas ("c1","",20,20,1000,500);
|
||||
c1.Divide(2,1);
|
||||
c1->Divide(2,1);
|
||||
|
||||
system ("rm -rf dna.root");
|
||||
system ("hadd dna.root dna_*.root");
|
||||
@@ -22,70 +21,51 @@ system ("hadd dna.root dna_*.root");
|
||||
TFile f("dna.root");
|
||||
|
||||
TNtuple* ntuple;
|
||||
ntuple = (TNtuple*)f->Get("dna");
|
||||
ntuple = (TNtuple*)f.Get("dna");
|
||||
|
||||
c1.cd(1);
|
||||
c1->cd(1);
|
||||
gStyle->SetOptStat(000000);
|
||||
|
||||
// All
|
||||
ntuple->Draw("flagProcess","","B");
|
||||
ntuple->SetFillStyle(1001);
|
||||
ntuple->SetFillColor(2);
|
||||
|
||||
// Excitation
|
||||
ntuple->Draw("flagProcess","flagProcess==12||flagProcess==15||flagProcess==16||flagProcess==19||flagProcess==22||flagProcess==25||flagProcess==29","Bsame");
|
||||
ntuple->SetFillStyle(1001);
|
||||
ntuple->SetFillColor(3);
|
||||
|
||||
|
||||
// Elastic
|
||||
ntuple->Draw("flagProcess","flagProcess==11","Bsame");
|
||||
ntuple->SetFillStyle(1001);
|
||||
ntuple->SetFillColor(4);
|
||||
|
||||
// Ionisation
|
||||
ntuple->Draw("flagProcess","flagProcess==13||flagProcess==17||flagProcess==20||flagProcess==23||flagProcess==26||flagProcess==30","Bsame");
|
||||
ntuple->SetFillStyle(1001);
|
||||
ntuple->SetFillColor(5);
|
||||
|
||||
// Charge decrease
|
||||
ntuple->Draw("flagProcess","flagProcess==18||flagProcess==24||flagProcess==27","Bsame");
|
||||
ntuple->SetFillColor(6);
|
||||
|
||||
//ntuple->Draw("flagProcess","flagProcess==18||flagProcess==24||flagProcess==27","Bsame");
|
||||
//ntuple->SetFillStyle(1001);
|
||||
//ntuple->SetFillColor(6);
|
||||
|
||||
// Charge increase
|
||||
ntuple->Draw("flagProcess","flagProcess==21||flagProcess==28||flagProcess==31","Bsame");
|
||||
//ntuple->Draw("flagProcess","flagProcess==21||flagProcess==28||flagProcess==31","Bsame");
|
||||
//ntuple->SetFillStyle(1001);
|
||||
//ntuple->SetFillColor(7);
|
||||
|
||||
gPad->SetLogy();
|
||||
|
||||
/*
|
||||
htemp->GetXaxis()->SetLabelSize(0.025);
|
||||
htemp->GetYaxis()->SetLabelSize(0.025);
|
||||
htemp->GetZaxis()->SetLabelSize(0.025);
|
||||
htemp->GetXaxis()->SetTitleSize(0.035);
|
||||
htemp->GetYaxis()->SetTitleSize(0.035);
|
||||
htemp->GetXaxis()->SetTitleOffset(1.4);
|
||||
htemp->GetYaxis()->SetTitleOffset(1.4);
|
||||
htemp->GetXaxis()->SetTitle("flagProcess");
|
||||
htemp->GetYaxis()->SetTitle("");
|
||||
htemp->SetTitle("flagProcesses");
|
||||
*/
|
||||
c1->cd(2);
|
||||
|
||||
c1.cd(2);
|
||||
ntuple->SetMarkerColor(2);
|
||||
ntuple->Draw("x:y:z/1000","flagParticle==1");
|
||||
|
||||
ntuple->SetMarkerColor(4);
|
||||
ntuple->SetMarkerSize(4);
|
||||
ntuple->Draw("x:y:z/1000","flagParticle==4 || flagParticle==5 || flagParticle==6","same");
|
||||
//ntuple->SetMarkerColor(4);
|
||||
//ntuple->SetMarkerSize(4);
|
||||
//ntuple->Draw("x:y:z/1000","flagParticle==4 || flagParticle==5 || flagParticle==6","same");
|
||||
|
||||
/*
|
||||
htemp->GetXaxis()->SetLabelSize(0.025);
|
||||
htemp->GetYaxis()->SetLabelSize(0.025);
|
||||
htemp->GetZaxis()->SetLabelSize(0.025);
|
||||
htemp->GetXaxis()->SetTitleSize(0.035);
|
||||
htemp->GetYaxis()->SetTitleSize(0.035);
|
||||
htemp->GetZaxis()->SetTitleSize(0.035);
|
||||
htemp->GetXaxis()->SetTitleOffset(1.6);
|
||||
htemp->GetYaxis()->SetTitleOffset(1.6);
|
||||
htemp->GetZaxis()->SetTitleOffset(1.6);
|
||||
htemp->GetXaxis()->SetTitle("z (micrometer)");
|
||||
htemp->GetYaxis()->SetTitle("x (nanometer)");
|
||||
htemp->GetZaxis()->SetTitle("y (nanometer)");
|
||||
htemp->SetTitle("Track Structure in liquid water");
|
||||
*/
|
||||
end:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user