void MarkedFieldRegions(TString path="/home/karavdina/Disser/materials/results/LMD/LUMI_Trk/TrkRecDocs/Pixel/BackPropagation/"){ TString in = path+"/Bz_forBP_1_5GeV.root"; TFile *fin = new TFile(in,"READ"); TString out=path+"/Hz_forBP_1_5GeV.root"; TFile *fout = new TFile(out,"RECREATE"); TString pdfres = path+"/Hz_forBP_1_5GeV.pdf"; TBox dip1(560.,-25,660.,25); dip1.SetFillStyle(3017); dip1.SetFillColor(kBlue-6); TBox dip2(342.,-25,602.,25); dip2.SetFillStyle(3018); dip2.SetFillColor(kBlue-3); TBox trans(283,-25,343,25); trans.SetFillStyle(3003); trans.SetFillColor(kGreen-5); TBox sol2(0,-25,180,25); sol2.SetFillStyle(3004); sol2.SetFillColor(kRed-8); TBox sol3(180,-25,248,25); sol3.SetFillStyle(3005); sol3.SetFillColor(kRed-8); TBox sol4(247.7,-25,283.7,25); sol4.SetFillStyle(3015); sol4.SetFillColor(kRed-8); TCanvas *c1 = (TCanvas *)fin->Get("c1"); c1->Draw(); dip1.Draw(); dip2.Draw(); trans.Draw(); sol2.Draw(); sol3.Draw(); sol4.Draw(); // c1->Update(); c1->SaveAs(pdfres); c1->Write(); c1->Close(); }