#include "GlueX_boundaries.C" #include #include GlueX_Angular_Tolerance(void) { TColor::CreateColorWheel(); TCanvas *c1 = new TCanvas("boundaries canvas"); c1->SetTicks(); Int_t zmin = -100; Int_t zmax=700, rmax=200; TH2D *boundaries = new TH2D("boundaries", "The GlueX Detectors", zmax-zmin, zmin, zmax, 2*rmax, -rmax, rmax); boundaries->SetStats(0); boundaries->SetXTitle("Z (cm)"); boundaries->SetYTitle("R (cm)"); boundaries->Draw(); int N = 4; float x[] = {65.0, 700.0, 700.0, 65.0}; float y[] = {0.0, 135.0, -135.0, 0.0}; TPolyLine *poly = new TPolyLine(N, x, y); poly->SetFillColor(kGray+2); poly->SetFillStyle(3001); poly->Draw("F"); x[1] = x[2] = -100.0; y[1] = 35.0; y[2] = -y[1]; TPolyLine *poly2 = new TPolyLine(N, x, y); poly2->SetFillColor(kGray+2); poly2->SetFillStyle(3001); poly2->Draw("F"); DrawGlueXBoundaries(true, true); c1->SaveAs("GlueX_Angular_Tolerance.pdf"); c1->SaveAs("GlueX_Angular_Tolerance.png"); }