235{
236
237
238
239
240 printf(
"correct_shrinkage with the cut: %s \n",
csignal.GetTitle() );
241
242
243
244 cshr->cd(1);
245 TH1* hsh1 ;
246
248 hsh1 = (TH1*) gDirectory->Get("hsh1");
249 hsh1->Fit("pol1","wQ","",-.4,.4);
250
251 float p0 = hsh1->GetFunction("pol1")->GetParameter(0);
252 float p1 = hsh1->GetFunction("pol1")->GetParameter(1);
253 printf("side1 : p0 = %f \t p1 = %f \n",p0,p1);
254
255
256 cshr->cd(3);
257 TH1* hsh3 ;
258
259 char str[160]="";
260 sprintf(str,"s1.eTX*(1-(%f))-(%f)-(s2.eX-s1.eX)/(s2.eZ-s1.eZ):(s2.eX-s1.eX)/(s2.eZ-s1.eZ)>>hsh3",p1,p0);
262 hsh3 = (TH1*) gDirectory->Get("hsh3");
263 hsh3->Fit("pol1","wQ","",-.4,.4);
264
265 p0 = hsh3->GetFunction("pol1")->GetParameter(0);
266 p1 = hsh3->GetFunction("pol1")->GetParameter(1);
267 printf("side1 corr: p0 = %f \t p1 = %f \n",p0,p1);
268
269
270 cshr->cd(2);
271 TH1* hsh2;
272
274 hsh2 = (TH1*) gDirectory->Get("hsh2");
275 hsh2->Fit("pol1","wQ","",-.4,.4);
276
277 p0 = hsh2->GetFunction("pol1")->GetParameter(0);
278 p1 = hsh2->GetFunction("pol1")->GetParameter(1);
279 printf("side2 : p0 = %f \t p1 = %f \n",p0,p1);
280
281 cshr->cd(4);
282 TH1* hsh4 ;
283
284 sprintf(str,"s2.eTX*(1-(%f))-(%f)-(s2.eX-s1.eX)/(s2.eZ-s1.eZ):(s2.eX-s1.eX)/(s2.eZ-s1.eZ)>>hsh4",p1,p0);
286 hsh4 = (TH1*) gDirectory->Get("hsh4");
287 hsh4->Fit("pol1","wQ","",-.4,.4);
288
289 p0 = hsh4->GetFunction("pol1")->GetParameter(0);
290 p1 = hsh4->GetFunction("pol1")->GetParameter(1);
291 printf("side2 corr: p0 = %f \t p1 = %f \n",p0,p1);
292
293
294 gStyle->SetOptStat("nemr");
295}