#include #include #include #include #include #include #include #include "GlueX_boundaries.C" void GlueX_cpp(void) { TColor::CreateColorWheel(); TCanvas *c1 = new TCanvas("c1","", 1000, 500); c1->SetTicks(); TH2D *axes = new TH2D("axes","", 100, -100.0, 900.0, 100, -210.0, +210.0); axes->SetStats(0); axes->SetXTitle("Z (cm)"); axes->SetYTitle("Y (cm)"); axes->Draw(); DrawGlueXBoundaries(true, true); // Draw beam //TCurlyLine *gamma = new TCurlyLine(-100.0, 0.0, 0.0, 0.0); //gamma->SetWavy(); //gamma->SetAmplitude(10.0); //gamma->SetWaveLength(20.0); TArrow *gamma = new TArrow(-60.0, 0.0, -20.0, 0.0, 0.01, "->"); gamma->Draw(); TLatex t; t.SetTextSize(0.04); t.SetTextAlign(21); t.DrawLatex(-50.0, 5.0, "#vec{#gamma}"); t.SetTextAlign(23); t.DrawLatex(-50.0, -5.0, "beam"); // pi+ TLine *pip = new TLine(1.0, 0.0, 800.0, 23.5); pip->SetLineColor(kBlue); pip->SetLineWidth(1); pip->Draw(); t.SetTextAlign(21); t.SetTextColor(kBlue); t.DrawLatex(500.0, 17.0, "#pi^{+}"); // pi- TLine *pim = new TLine(1.0, 0.0, 800.0, -18.0); pim->SetLineColor(kRed); pim->SetLineWidth(1); pim->Draw(); t.SetTextAlign(23); t.SetTextColor(kRed); t.DrawLatex(500.0, -17.0, "#pi^{-}"); c1->SaveAs("GlueX_cpp.pdf"); c1->SaveAs("GlueX_cpp.png"); }