Geant4_10
plot.C
Go to the documentation of this file.
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 TFile f("dnageometry.root");
16 
17 TNtuple* ntuple;
18 ntuple = (TNtuple*)f->Get("ntuple");
19 
20 c1.cd(1);
21 gStyle->SetOptStat(000000);
22 
23 ntuple->SetMarkerColor(2);
24 ntuple->SetMarkerStyle(20);
25 ntuple->SetMarkerSize(1);
26 ntuple->Draw("x/1000:y/1000:z/1000","flagVolume==1","");
27 
28 ntuple->SetMarkerColor(4);
29 ntuple->SetMarkerStyle(24);
30 ntuple->Draw("x/1000:y/1000:z/1000","flagVolume==2","same");
31 
32 }
TCanvas * c1
Definition: plotHisto.C:7
TTree * ntuple
Definition: macro.C:6
TFile f
Definition: plotHisto.C:6
Double_t scale
Definition: plot.C:11
G4double Double_t