47{
48
49
50
51
53 cshr->Clear();
54 cshr->Divide(2,2);
55 gStyle->SetOptFit(0001);
56
57 cshr_1->cd();
58 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");
59 htemp->Fit("pol1","w","",-.4,.4);
60 float p0 = htemp->GetFunction("pol1")->GetParameter(0);
61 float p1 = htemp->GetFunction("pol1")->GetParameter(1);
62 char str[160]="";
63 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);
64 cshr_3->cd();
couples->Draw(str,
"pid2>-1&&eCHI2<1.5",
"prof");
65 htemp->Fit("pol1","w","",-.4,.4);
66
67 cshr_2->cd();
68 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");
69 htemp->Fit("pol1","w","",-.4,.4);
70 p0 = htemp->GetFunction("pol1")->GetParameter(0);
71 p1 = htemp->GetFunction("pol1")->GetParameter(1);
72 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);
73 cshr_4->cd();
couples->Draw(str,
"pid2>-1&&eCHI2<1.5",
"prof");
74 htemp->Fit("pol1","w","",-.4,.4);
75}