1 #if !defined(__CINT__) || defined(__MAKECINT__)
9 // macro to visualize the lego plots generated by gAlive->RunLego
12 TFile *file = new TFile("galice.root");
18 TCanvas *cgcm2 = new TCanvas("cgcm2","gcm2",200,100,600,400);
19 cgcm2->SetTheta(theta);
21 TH2F *hgcm2 = (TH2F*)file->Get("hgcm2");
22 hgcm2->SetFillColor(2);
24 hgcm2->SetContour(ncont);
25 hgcm2->SetMaximum(50);
26 hgcm2->Draw("lego2sphe");
28 TCanvas *cabso = new TCanvas("cabso","abso",100,50,600,400);
29 cabso->SetTheta(theta);
31 TH2F *habso = (TH2F*)file->Get("habso");
32 habso->SetFillColor(2);
34 habso->SetContour(ncont);
36 habso->Draw("lego2sphe");
38 TCanvas *cradl = new TCanvas("cradl","radl",10,10,600,400);
39 cradl->SetTheta(theta);
41 TH2F *hradl = (TH2F*)file->Get("hradl");
42 hradl->SetFillColor(2);
44 hradl->SetContour(ncont);
46 hradl->Draw("lego2sphe");