28{
29
30
31
32
34 cshr->Clear();
35 cshr->Divide(2,2);
36 gStyle->SetOptFit(0001);
37
38 cshr_1->cd();
39 couples->Draw(
"s1.eTX-(s2.eX-s1.eX)/(s2.eZ-s1.eZ):(s2.eX-s1.eX)/(s2.eZ-s1.eZ)",
"pid2>-1&&eCHI2<1.5",
"prof");
40 htemp->Fit("pol1","w","",-.4,.4);
41 float p0 = htemp->GetFunction("pol1")->GetParameter(0);
42 float p1 = htemp->GetFunction("pol1")->GetParameter(1);
43 char str[160]="";
44 sprintf(str,"s1.eTX*(1-(%f))-(%f)-(s2.eX-s1.eX)/(s2.eZ-s1.eZ):(s2.eX-s1.eX)/(s2.eZ-s1.eZ)",p1,p0);
45 cshr_3->cd();
couples->Draw(str,
"pid2>-1&&eCHI2<1.5",
"prof");
46 htemp->Fit("pol1","w","",-.4,.4);
47
48 cshr_2->cd();
49 couples->Draw(
"s2.eTX-(s2.eX-s1.eX)/(s2.eZ-s1.eZ):(s2.eX-s1.eX)/(s2.eZ-s1.eZ)",
"pid2>-1&&eCHI2<1.5",
"prof");
50 htemp->Fit("pol1","w","",-.4,.4);
51 p0 = htemp->GetFunction("pol1")->GetParameter(0);
52 p1 = htemp->GetFunction("pol1")->GetParameter(1);
53 sprintf(str,"s2.eTX*(1-(%f))-(%f)-(s2.eX-s1.eX)/(s2.eZ-s1.eZ):(s2.eX-s1.eX)/(s2.eZ-s1.eZ)",p1,p0);
54 cshr_4->cd();
couples->Draw(str,
"pid2>-1&&eCHI2<1.5",
"prof");
55 htemp->Fit("pol1","w","",-.4,.4);
56}