4890 m_errors = (TDirectory *)
file->FindKey(
"Correction")->ReadObj();
4892 m_errors = (TDirectory *)
file->FindKey(
"CorrectionAr")->ReadObj();
4894 throw(
string(
"No errors folder!!!!!!!!!!!!!!!"));
4896 this->Divide(2, 3, 0.01, 0.01);
4900 TH2F *tres_vs_ToT_ba =
nullptr;
4901 TH2F *tres_vs_ToT_bc =
nullptr;
4903 TH2F *res_vs_ToT_ba =
nullptr;
4904 TH2F *res_vs_ToT_bc =
nullptr;
4912 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tres_vs_SinOverP_bc")->ReadObj();
4913 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"res_vs_SinOverP_ba")->ReadObj();
4914 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tres_vs_SinOverP_bc")->ReadObj();
4915 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"res_vs_SinOverP_bc")->ReadObj();
4919 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tres_vs_SinOverP_ea")->ReadObj();
4920 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"res_vs_SinOverP_ea")->ReadObj();
4921 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tres_vs_SinOverP_ec")->ReadObj();
4922 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"res_vs_SinOverP_ec")->ReadObj();
4929 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tres_vs_CosOverP_bc")->ReadObj();
4930 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"res_vs_CosOverP_ba")->ReadObj();
4931 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tres_vs_CosOverP_bc")->ReadObj();
4932 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"res_vs_CosOverP_bc")->ReadObj();
4936 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tres_vs_CosOverP_ea")->ReadObj();
4937 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"res_vs_CosOverP_ea")->ReadObj();
4938 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tres_vs_CosOverP_ec")->ReadObj();
4939 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"res_vs_CosOverP_ec")->ReadObj();
4949 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_SinOverP_bc")->ReadObj();
4950 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"resAr_vs_SinOverP_ba")->ReadObj();
4951 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_SinOverP_bc")->ReadObj();
4952 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"resAr_vs_SinOverP_bc")->ReadObj();
4956 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_SinOverP_ea")->ReadObj();
4957 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"resAr_vs_SinOverP_ea")->ReadObj();
4958 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_SinOverP_ec")->ReadObj();
4959 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"resAr_vs_SinOverP_ec")->ReadObj();
4966 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_CosOverP_bc")->ReadObj();
4967 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"resAr_vs_CosOverP_ba")->ReadObj();
4968 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_CosOverP_bc")->ReadObj();
4969 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"resAr_vs_CosOverP_bc")->ReadObj();
4973 tres_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_CosOverP_ea")->ReadObj();
4974 res_vs_ToT_ba = (
TH2F *)
m_errors->FindKey(
"resAr_vs_CosOverP_ea")->ReadObj();
4975 tres_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"tresAr_vs_CosOverP_ec")->ReadObj();
4976 res_vs_ToT_bc = (
TH2F *)
m_errors->FindKey(
"resAr_vs_CosOverP_ec")->ReadObj();
4983 TGraphErrors *tresBA =
GetMean(tres_vs_ToT_ba);
4984 tresBA->SetLineColor(kRed);
4985 tresBA->SetMarkerColor(kRed);
4987 tres_vs_ToT_ba->SetTitle(
"Barrel A Time Residual Mean VS sin(Theta)/p");
4989 tres_vs_ToT_ba->SetTitle(
"Endcap A Time Residual Mean VS sin(Theta)/p");
4990 tres_vs_ToT_ba->GetXaxis()->SetTitle(
"sin(Theta)/p");
4991 tres_vs_ToT_ba->GetYaxis()->SetTitle(
"Time Residual (ns)");
4996 tres_vs_ToT_ba->SetTitle(
"Barrel A Time Residual Mean VS cos(Theta)/p");
4998 tres_vs_ToT_ba->SetTitle(
"Endcap A Time Residual Mean VS cos(Theta)/p");
4999 tres_vs_ToT_ba->GetXaxis()->SetTitle(
"cos(Theta)/p");
5002 tres_vs_ToT_ba->Draw(
"colz");
5003 tresBA->Draw(
"same");
5006 TGraphErrors *tresBC =
GetMean(tres_vs_ToT_bc);
5007 tresBC->SetLineColor(kBlue);
5008 tresBC->SetMarkerColor(kBlue);
5010 tres_vs_ToT_bc->SetTitle(
"Barrel C Time Residual Mean VS sin(Theta)/p");
5012 tres_vs_ToT_bc->SetTitle(
"Endcap C Time Residual Mean VS sin(Theta)/p");
5013 tres_vs_ToT_bc->GetXaxis()->SetTitle(
"sin(Theta)/p");
5014 tres_vs_ToT_bc->GetYaxis()->SetTitle(
"Time Residual (ns)");
5018 tres_vs_ToT_bc->SetTitle(
"Barrel C Time Residual Mean VS cos(Theta)/p");
5020 tres_vs_ToT_bc->SetTitle(
"Endcap C Time Residual Mean VS cos(Theta)/p");
5021 tres_vs_ToT_bc->GetXaxis()->SetTitle(
"cos(Theta)/p");
5023 tres_vs_ToT_bc->Draw(
"colz");
5024 tresBC->Draw(
"same");
5027 tresBA->SetTitle(
"Barrel Time Residual Mean vs Sin(theta) / p");
5029 tresBA->SetTitle(
"Endcap Time Residual Mean vs Sin(theta) / p");
5033 tresBA->SetTitle(
"Barrel Time Residual Mean vs Cos(theta) / p");
5035 tresBA->SetTitle(
"Endcap Time Residual Mean vs Cos(theta) / p");
5038 tresBA->GetXaxis()->SetRangeUser(0, 1);
5039 tresBA->GetYaxis()->SetRangeUser(-1, 1.5);
5040 tresBA->Draw(
"alp");
5041 tresBC->Draw(
"same");
5044 TGraphErrors *resBA1 =
GetMean(res_vs_ToT_ba);
5045 resBA1->SetLineColor(kRed);
5046 resBA1->SetMarkerColor(kRed);
5048 res_vs_ToT_ba->SetTitle(
"Barrel A Residual Mean VS sin(Theta)/p");
5050 res_vs_ToT_ba->SetTitle(
"Endcap A Residual Mean VS sin(Theta)/p");
5051 res_vs_ToT_ba->GetXaxis()->SetTitle(
"sin(Theta)/p");
5052 res_vs_ToT_ba->GetYaxis()->SetTitle(
"Residual (mm)");
5056 res_vs_ToT_ba->SetTitle(
"Barrel A Residual Mean VS cos(Theta)/p");
5058 res_vs_ToT_ba->SetTitle(
"Endcap A Residual Mean VS cos(Theta)/p");
5059 res_vs_ToT_ba->GetXaxis()->SetTitle(
"cos(Theta)/p");
5061 res_vs_ToT_ba->Draw(
"colz");
5062 resBA1->Draw(
"same");
5065 TGraphErrors *resBC1 =
GetMean(res_vs_ToT_bc);
5066 resBC1->SetLineColor(kBlue);
5067 resBC1->SetMarkerColor(kBlue);
5069 res_vs_ToT_bc->SetTitle(
"Barrel C Residual Mean VS sin(Theta)/p");
5071 res_vs_ToT_bc->SetTitle(
"Endcap C Residual Mean VS sin(Theta)/p");
5072 res_vs_ToT_bc->GetXaxis()->SetTitle(
"sin(Theta)/p");
5073 res_vs_ToT_bc->GetYaxis()->SetTitle(
"Residual (mm)");
5077 res_vs_ToT_bc->SetTitle(
"Barrel C Residual Mean VS cos(Theta)/p");
5079 res_vs_ToT_bc->SetTitle(
"Endcap C Residual Mean VS cos(Theta)/p");
5080 res_vs_ToT_bc->GetXaxis()->SetTitle(
"cos(Theta)/p");
5082 res_vs_ToT_bc->Draw(
"colz");
5083 resBC1->Draw(
"same");
5087 TGraphErrors *resBA =
GetWidth(res_vs_ToT_ba);
5088 resBA->SetLineColor(kRed);
5089 resBA->SetMarkerColor(kRed);
5090 TGraphErrors *resBC =
GetWidth(res_vs_ToT_bc);
5091 resBC->SetLineColor(kBlue);
5092 resBC->SetMarkerColor(kBlue);
5093 resBA->SetTitle(
"Barrel Residual Width vs Sin(theta) / p");
5095 resBA->SetTitle(
"Endcap Residual Widht vs Sin(theta) / p");
5099 resBA->SetTitle(
"Barrel Residual Width vs Cos(theta) / p");
5101 resBA->SetTitle(
"Endcap Residual Widht vs Cos(theta) / p");
5104 resBA->GetXaxis()->SetRangeUser(0, 1);
5105 resBA->GetYaxis()->SetRangeUser(0.08, 0.20);
5107 resBC->Draw(
"same");