File indexing completed on 2025-01-18 09:17:01
0001 {
0002
0003
0004 gROOT->Reset();
0005 gROOT->SetStyle("Plain");
0006
0007 gStyle->SetOptStat(1111);
0008 gStyle->SetPalette(1);
0009
0010 c1 = new TCanvas ("c1","",200,10,800,800);
0011 c1->Divide(2,2);
0012
0013 system ("rm -rf nanobeam.root");
0014 system ("hadd -O nanobeam.root nanobeam_*.root");
0015
0016 TFile f("nanobeam.root");
0017
0018 TNtuple* ntuple0;
0019 ntuple0 = (TNtuple*)f.Get("ntuple0");
0020
0021 c1->cd(1);
0022 ntuple0->SetMarkerSize(.2);
0023 ntuple0->SetMarkerColor(2);
0024 ntuple0->SetMarkerStyle(20);
0025 ntuple0->Draw("xIn:yIn:zIn","");
0026
0027 c1->cd(2);
0028 TNtuple* ntuple2;
0029 ntuple2 = (TNtuple*)f.Get("ntuple2");
0030 gStyle->SetPalette(1);
0031 ntuple2->SetMarkerColor(2);
0032 ntuple2->SetMarkerStyle(20);
0033 gPad->SetLogz();
0034 ntuple2->Draw("yIn:xIn","","hcolz");
0035
0036 c1->cd(3);
0037 gStyle->SetPalette(1);
0038 ntuple2->SetMarkerColor(4);
0039 ntuple2->SetMarkerStyle(20);
0040 gPad->SetLogz();
0041 ntuple2->Draw("thetaIn:xIn","","hcolz");
0042
0043 c1->cd(4);
0044 gStyle->SetPalette(1);
0045 ntuple2->SetMarkerColor(4);
0046 ntuple2->SetMarkerStyle(20);
0047 gPad->SetLogz();
0048 ntuple2->Draw("phiIn:yIn","","hcolz");
0049
0050 jump2:
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071 }