Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:17:01

0001 {
0002 // Use this macro for the visualisation of coefficient computation
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   c1->cd(1);
0053   gStyle->SetPalette(1);
0054   TNtuple* ntuple1;
0055   ntuple1 = (TNtuple*)f->Get("ntuple1"); 
0056   ntuple1->SetMarkerSize(.2);
0057   ntuple1->SetMarkerColor(2);
0058   ntuple1->SetMarkerStyle(20);
0059   gPad->SetLogz();
0060   ntuple1->Draw("yIn:xIn","","hcolz");
0061   htemp->GetXaxis()->SetLabelSize(0.025);
0062   htemp->GetYaxis()->SetLabelSize(0.025);
0063   htemp->GetXaxis()->SetTitleSize(0.035);
0064   htemp->GetYaxis()->SetTitleSize(0.035);
0065   htemp->GetXaxis()->SetTitleOffset(1.4);
0066   htemp->GetYaxis()->SetTitleOffset(1.4);
0067   htemp->GetXaxis()->SetTitle("X (mm)");
0068   htemp->GetYaxis()->SetTitle("Y (mm)");
0069   htemp->SetTitle("Grid shadow");
0070 */ 
0071 }