275 |
|
TGraph *fakegraph = get_mSUGRA_exclusion_line(fakehisto, scantype); |
276 |
|
TGraph *realgraph = new TGraph(fakegraph->GetN()); |
277 |
|
double x,y; |
278 |
+ |
float last_x=0; |
279 |
+ |
float last_y=0; |
280 |
+ |
int counter=0; |
281 |
|
for(int i=0;i<fakegraph->GetN();i++) { |
282 |
|
fakegraph->GetPoint(i,x,y); |
283 |
< |
realgraph->SetPoint(i,y,x); |
283 |
> |
if(scantype==PlottingSetup::SMS) { |
284 |
> |
if(y-x<75) { |
285 |
> |
realgraph->SetPoint(counter,last_x,last_y); |
286 |
> |
counter++; |
287 |
> |
continue; |
288 |
> |
} |
289 |
> |
} |
290 |
> |
realgraph->SetPoint(counter,y,x); |
291 |
> |
last_x=y; |
292 |
> |
last_y=x; |
293 |
> |
counter++; |
294 |
|
} |
295 |
|
realgraph->SetLineColor(TColor::GetColor("#2E2EFE")); //dark blue |
296 |
|
realgraph->SetLineWidth(3); |
367 |
|
fill_with_text(exclline,excllined3,excllinet3,finalcanvas,scantype); |
368 |
|
stringstream real; |
369 |
|
real << "Limits/final_exclusion__" << limits->GetName(); |
370 |
< |
exclline->Draw(""); |
370 |
> |
exclline->Draw("l"); |
371 |
|
thinexcline->Draw(""); |
372 |
|
excllinet3->Draw(""); |
373 |
|
thinexclinet3->Draw(""); |
560 |
|
//The final point will be a continuation of the last one, towards the diagonal |
561 |
|
float x,y; |
562 |
|
project_to_last_point_on_line(lastx,lasty,lastx2,lasty2,x,y,scantype); |
563 |
< |
if(x>0) graph->SetPoint(points.size(),x,y); |
563 |
> |
if(x>0&&y>0) graph->SetPoint(points.size(),x,y); |
564 |
|
else graph->SetPoint(points.size(),lastx,lasty); |
565 |
|
} |
566 |
|
|