Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
extended/medical/dna/wholeNuclearDNA/plot.C
이 파일의 문서화 페이지로 가기
1 // *********************************************************************
2 // To execute this macro under ROOT,
3 // 1 - launch ROOT (usually type 'root' at your machine's prompt)
4 // 2 - type '.X plot.C' at the ROOT session prompt
5 // This macro needs the output ROOT file
6 // *********************************************************************
7 {
8 gROOT->Reset();
9 gStyle->SetPalette(1);
10 gROOT->SetStyle("Plain");
12 
13 c1 = new TCanvas ("c1","",20,20,1000,500);
14 
15 // The command below stands for:
16 // IF 1 THEN 2
17 system ("ls wholeNuclearDNA_* 2> /dev/null && hadd -f wholeNuclearDNA.root wholeNuclearDNA_*.root");
18 
19 TFile f("wholeNuclearDNA.root");
20 
21 TNtuple* ntuple;
22 ntuple = (TNtuple*)f.Get("ntuple");
23 
24 c1->cd(1);
25 gStyle->SetOptStat(000000);
26 
27 ntuple->SetMarkerColor(2);
28 ntuple->SetMarkerStyle(20);
29 ntuple->SetMarkerSize(1);
30 ntuple->Draw("x/1000:y/1000:z/1000","flagVolume==1","");
31 
32 ntuple->SetMarkerColor(4);
33 ntuple->SetMarkerStyle(24);
34 ntuple->Draw("x/1000:y/1000:z/1000","flagVolume==2","same");
35 
36 }
G4double Double_t
system("rm -rf microbeam.root")
TTree * ntuple
Double_t scale