void ThreeD() { gROOT->SetStyle("Plain"); TCanvas *c1; c1=new TCanvas("c1","Canvas",800,600); gStyle->SetOptStat(0); TFile::Open("GenDigitisation900071.root"); Bnt005567Step3->SetMarkerStyle(20); Bnt005567Step3->SetMarkerColor(2); Bnt005567Step3->SetMarkerSize(0.6); Bnt005567Step3->SetTitle("Photon10GeV;Layer;x (mm);y (mm)"); Bnt005567Step3->GetXaxis()->SetTitleOffset(1.3); Bnt005567Step3->GetYaxis()->SetTitleOffset(1.3); Bnt005567Step3->Draw() ; c1->Update(); c1->Print("ThreeD.png"); }