Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
plot.C
Go to the documentation of this file.
1 {
2 // Use this macro for the visualisation of coefficient computation
3 
4  gROOT->Reset();
5  gROOT->SetStyle("Plain");
6 
7  gStyle->SetOptStat(1111);
8  gStyle->SetPalette(1);
9 
10  c1 = new TCanvas ("c1","",200,10,800,800);
11  c1.Divide(2,2);
12 
13  TFile f("nanobeam.root");
14 
15  TNtuple* ntuple0;
16  ntuple0 = (TNtuple*)f->Get("ntuple0");
17 
18  c1.cd(1);
19  ntuple0->SetMarkerSize(.2);
20  ntuple0->SetMarkerColor(2);
21  ntuple0->SetMarkerStyle(20);
22  ntuple0->Draw("xIn:yIn:zIn","");
23 
24  c1.cd(2);
25  TNtuple* ntuple2;
26  ntuple2 = (TNtuple*)f->Get("ntuple2");
27  gStyle->SetPalette(1);
28  ntuple2->SetMarkerColor(2);
29  ntuple2->SetMarkerStyle(20);
30  gPad->SetLogz();
31  ntuple2->Draw("yIn:xIn","","hcolz");
32 
33  c1.cd(3);
34  gStyle->SetPalette(1);
35  ntuple2->SetMarkerColor(4);
36  ntuple2->SetMarkerStyle(20);
37  gPad->SetLogz();
38  ntuple2->Draw("thetaIn:xIn","","hcolz");
39 
40  c1.cd(4);
41  gStyle->SetPalette(1);
42  ntuple2->SetMarkerColor(4);
43  ntuple2->SetMarkerStyle(20);
44  gPad->SetLogz();
45  ntuple2->Draw("phiIn:yIn","","hcolz");
46 
47 jump2:
48 /*
49  c1.cd(1);
50  gStyle->SetPalette(1);
51  TNtuple* ntuple1;
52  ntuple1 = (TNtuple*)f->Get("ntuple1");
53  ntuple1->SetMarkerSize(.2);
54  ntuple1->SetMarkerColor(2);
55  ntuple1->SetMarkerStyle(20);
56  gPad->SetLogz();
57  ntuple1->Draw("yIn:xIn","","hcolz");
58  htemp->GetXaxis()->SetLabelSize(0.025);
59  htemp->GetYaxis()->SetLabelSize(0.025);
60  htemp->GetXaxis()->SetTitleSize(0.035);
61  htemp->GetYaxis()->SetTitleSize(0.035);
62  htemp->GetXaxis()->SetTitleOffset(1.4);
63  htemp->GetYaxis()->SetTitleOffset(1.4);
64  htemp->GetXaxis()->SetTitle("X (mm)");
65  htemp->GetYaxis()->SetTitle("Y (mm)");
66  htemp->SetTitle("Grid shadow");
67 */
68 }