Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotWireResidualsLocal.C
Go to the documentation of this file.
1 {
2  TCanvas *cWireRes = new TCanvas("FDCWireResidualsLocal","FDCWireResidualsLocal",1200,1000);
3  cWireRes->Divide(6,4);
4 
5  TProfile2D *thisWireProfile;
6  char histoWName[256];
7  char histoWTitle[256];
8 
9  for(auto i=1 ; i <=24; i++){
10  cWireRes->cd(i);
11  sprintf(histoWName, "/TrackingPulls/FDCPulls_Plane%.2i/2D Wire Hit Residuals Local", i);
12  sprintf(histoWTitle, "2D Wire Hit Residuals Local Plane %.2i", i);
13  gDirectory->GetObject(histoWName, thisWireProfile);
14  thisWireProfile->SetMinimum(-0.025);
15  thisWireProfile->SetMaximum(0.025);
16  thisWireProfile->SetTitle(histoWTitle);
17  thisWireProfile->Draw("colz");
18  }
19  cWireRes->SaveAs("FDCWireResidualsLocal.png");
20 }
sprintf(text,"Post KinFit Cut")
TProfile2D * thisWireProfile
char histoWTitle[256]
char histoWName[256]