ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/ExclusionPlot.C
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/ExclusionPlot.C (file contents):
Revision 1.14 by buchmann, Mon Dec 5 15:39:51 2011 UTC vs.
Revision 1.15 by buchmann, Mon Dec 5 18:07:06 2011 UTC

# Line 275 | Line 275 | TGraph *MarcosExclusionLine(TH2F *exclus
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);
# Line 354 | Line 367 | void make_SMS_exclusion(TH2F *rawlimits,
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("");
# Line 547 | Line 560 | TGraph* get_mSUGRA_exclusion_line(TH2F *
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines