#include #include #include #include #include #include #include #include "GlueX_boundaries.C" void MuonDetector(void) { TColor::CreateColorWheel(); TCanvas *c1 = new TCanvas("c1","", 500, 500); c1->SetTicks(); c1->SetBorderMode(0); c1->SetFillColor(0); TH2D *axes = new TH2D("axes","", 100, 750, 900.0, 100, -100.0, 100.0); axes->SetStats(0); axes->SetXTitle("Z (cm)"); axes->SetYTitle("Y (cm)"); axes->Draw(); DrawGlueXBoundaries(true, true); char string[256]; sprintf (string,"Muon Detector\n"); t1 = new TLatex(0.35,0.95,string); t1->SetTextColor(1); t1->SetNDC(); t1->SetTextSize(0.05); t1->Draw(); c1->SaveAs("MuonDetector.pdf"); c1->SaveAs("MuonDetector.png"); }