Skip to content

Commit

Permalink
check x-ordering of inout TGraphAsymErr
Browse files Browse the repository at this point in the history
  • Loading branch information
franzoni committed Jun 10, 2011
1 parent fd9fb44 commit c15eefa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EfficiencySmearer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ double EfficiencySmearer::getWeight(double pt, std::string theCategory, float sy
int numPoints = ( theIter->second )->GetN();
double x, y;
int myBin = -1;
double xPrevious = -1e9;
for (int bin=0; bin<numPoints; bin++ ){
( theIter->second )->GetPoint(bin, x, y);
assert( xPrevious < x );
if(pt > x) {
myBin = bin; }
else break;
Expand Down

0 comments on commit c15eefa

Please sign in to comment.