33 for (
int i=1;
i<15;
i++)
36 BH_Residual_vsPhi_1-> Rebin2D(1, REBIN);
37 BH_Residual_vsPhi_2-> Rebin2D(1, REBIN);
38 BH_Residual_vsPhi_3-> Rebin2D(1, REBIN);
39 BH_Residual_vsPhi_4-> Rebin2D(1, REBIN);
40 BH_Residual_vsPhi_5-> Rebin2D(1, REBIN);
41 BH_Residual_vsPhi_6-> Rebin2D(1, REBIN);
42 BH_Residual_vsPhi_7-> Rebin2D(1, REBIN);
43 BH_Residual_vsPhi_8-> Rebin2D(1, REBIN);
44 BH_Residual_vsPhi_9-> Rebin2D(1, REBIN);
45 BH_Residual_vsPhi_10-> Rebin2D(1, REBIN);
46 BH_Residual_vsPhi_11-> Rebin2D(1, REBIN);
47 BH_Residual_vsPhi_12-> Rebin2D(1, REBIN);
48 BH_Residual_vsPhi_13-> Rebin2D(1, REBIN);
49 BH_Residual_vsPhi_14-> Rebin2D(1, REBIN);
59 sprintf(
name,
"BH_Residual_vsPhi_Corrected_%d",
i);
63 sprintf(
name,
"BH_Residual_vsPhi_PC_Corrected_%d",
i);
83 for (
int k=1;
k<15;
k++)
112 double min[16], max[16], min_PC[16], max_PC[16];
113 for (
int i=1;
i<15;
i++)
124 TF1*
GAUSS =
new TF1(
"GAUSS",
"[0]*exp(-(x-[1])*(x-[1])/(2.0*[2]*[2]))", min, max);
130 double amp[16], mean[16], sigma[16];
131 double amp_PC[16], mean_PC[16], sigma_PC[16];
132 for (
int i=1;
i<15;
i++)
134 sprintf(
name,
"GAUSS_%d",
i);
135 TF1* GAUSS_[
i] =
new TF1(
name,
"[0]*exp(-(x-[1])*(x-[1])/(2.0*[2]*[2]))", min[
i], max[i]);
140 sprintf(
name,
"GAUSS_PC_%d", i);
141 TF1* GAUSS_PC_[
i] =
new TF1(
name,
"[0]*exp(-(x-[1])*(x-[1])/(2.0*[2]*[2]))", min_PC[i], max_PC[i]);
148 for (
int j=0;
j<3;
j++)
150 GAUSS->SetParameter(0,amp);
151 GAUSS->SetParameter(1,mean);
152 GAUSS->SetParameter(2,sigma);
156 amp =
ProjectionY->GetFunction(
"GAUSS")->GetParameter(0);
157 mean =
ProjectionY->GetFunction(
"GAUSS")->GetParameter(1);
158 sigma =
ProjectionY->GetFunction(
"GAUSS")->GetParameter(2);
160 min = mean - 2.0*
sigma;
161 max = mean + 2.0*
sigma;
165 for (
int i=1;
i<15;
i++)
167 for (
int j=0;
j<3;
j++)
169 GAUSS_[
i]->SetParameter(0,amp[
i]); GAUSS_PC_[
i]->SetParameter(0,amp_PC[i]);
170 GAUSS_[
i]->SetParameter(1,mean[i]); GAUSS_PC_[
i]->SetParameter(1,mean_PC[i]);
171 GAUSS_[
i]->SetParameter(2,sigma[i]); GAUSS_PC_[
i]->SetParameter(2,sigma_PC[i]);
176 sprintf(
name,
"GAUSS_%d", i);
181 sprintf(
name,
"GAUSS_PC_%d", i);
186 min[
i] = mean[
i] - 2.0*sigma[
i]; min_PC[
i] = mean_PC[
i] - 2.0*sigma_PC[
i];
187 max[
i] = mean[
i] + 2.0*sigma[
i]; max_PC[
i] = mean_PC[
i] + 2.0*sigma_PC[
i];