void plotPixelPlane(){ TFile *f = new TFile("FOCALPixelPlane.root", "READ"); TH2Poly *p = (TH2Poly*) f->Get("h2polyFOCALPixelPlane"); // p->SetLineColor(kRed); // p->SetLineStyle(2); // p->SetLineWidth(4); TIter iter(p->GetBins()); while(auto bin = (TH2PolyBin *) iter()) { TGraph *gr = (TGraph *) bin->GetPolygon(); gr->SetLineColor(kRed); gr->SetLineStyle(2); gr->SetLineWidth(4); } TCanvas *c = new TCanvas("c","c",600,600); p->Draw("L"); c->SaveAs("cPixelPlane.png"); }