17 TCanvas *
c1 =
new TCanvas(
"c1");
20 c1->SetRightMargin(0.125);
22 new TFile(
"bfield.root");
25 TH2D *
axes =
new TH2D(
"axes",
"B-field magnitude", 100, -100.0, 450.0, 100, 0.0, 200.0);
26 axes->SetXTitle(
"z (cm)");
27 axes->SetYTitle(
"r (cm)");
29 axes->GetZaxis()->SetRangeUser(-0.1, 3.0);
32 Btot_vs_r_vs_z->GetZaxis()->SetRangeUser(-0.1, 3.0);
33 Btot_vs_r_vs_z->GetZaxis()->SetTitle(
"Tesla");
34 Btot_vs_r_vs_z->Draw(
"same zcol");
40 c1->SaveAs(
"Btot_vs_r_vs_z.pdf");
41 c1->SaveAs(
"Btot_vs_r_vs_z.gif");
void Btot_vs_r_vs_z(void)
void DrawGlueXBoundaries(Int_t full_detector=false, Int_t fill_in=false, Double_t clip_tof=1000.0, Int_t color=-1)