Skip to content
Snippets Groups Projects
Commit a882d1d0 authored by Margherita Spalla's avatar Margherita Spalla
Browse files

check added: returns 'undefined' if there are too few bins in the input histogram

Former-commit-id: bf1eb0918120bff5120a1b1c287e4116cd5cf1fa
parent 59ba381e
No related branches found
No related tags found
No related merge requests found
...@@ -145,8 +145,8 @@ dqm_algorithms::BinHeightThreshold::execute( const std::string & name, ...@@ -145,8 +145,8 @@ dqm_algorithms::BinHeightThreshold::execute( const std::string & name,
i_currentLB--; i_currentLB--;
} }
} }
//if the histogram is just empty, or still has too few bins, do nothing (check already done, in principle should not happen) //if the histogram is just empty, or still has too few bins, do nothing
if(i_currentLB<=0) if(i_currentLB<=0 || i_currentLB<n_bins)
{ {
ERS_DEBUG(1,"start_from_last parameter >= total number of bins, I just cannot do the check. Do nothing."); ERS_DEBUG(1,"start_from_last parameter >= total number of bins, I just cannot do the check. Do nothing.");
return result; return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment