245{
246
247
248
249
250 printf(
"correct_shrinkage with the cut: %s \n",
csignal.GetTitle() );
251
252
253
254 cshr->cd(1);
255 TH1* hsh1 ;
256
258 hsh1 = (TH1*) gDirectory->Get("hsh1");
259 hsh1->Fit("pol1","wQ","",-.4,.4);
260
261 float p0 = hsh1->GetFunction("pol1")->GetParameter(0);
262 float p1 = hsh1->GetFunction("pol1")->GetParameter(1);
263 printf("side1 : p0 = %f \t p1 = %f \n",p0,p1);
264
265
266 cshr->cd(3);
267 TH1* hsh3 ;
268
269 char str[160]="";
270 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);
272 hsh3 = (TH1*) gDirectory->Get("hsh3");
273 hsh3->Fit("pol1","wQ","",-.4,.4);
274
275 p0 = hsh3->GetFunction("pol1")->GetParameter(0);
276 p1 = hsh3->GetFunction("pol1")->GetParameter(1);
277 printf("side1 corr: p0 = %f \t p1 = %f \n",p0,p1);
278
279
280 cshr->cd(2);
281 TH1* hsh2;
282
284 hsh2 = (TH1*) gDirectory->Get("hsh2");
285 hsh2->Fit("pol1","wQ","",-.4,.4);
286
287 p0 = hsh2->GetFunction("pol1")->GetParameter(0);
288 p1 = hsh2->GetFunction("pol1")->GetParameter(1);
289 printf("side2 : p0 = %f \t p1 = %f \n",p0,p1);
290
291 cshr->cd(4);
292 TH1* hsh4 ;
293
294 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);
296 hsh4 = (TH1*) gDirectory->Get("hsh4");
297 hsh4->Fit("pol1","wQ","",-.4,.4);
298
299 p0 = hsh4->GetFunction("pol1")->GetParameter(0);
300 p1 = hsh4->GetFunction("pol1")->GetParameter(1);
301 printf("side2 corr: p0 = %f \t p1 = %f \n",p0,p1);
302
303
304 gStyle->SetOptStat("nemr");
305}