Skip to content

Commit

Permalink
TRestRawSignal: fix a bug in GetIntegralWithThreshold which leads to …
Browse files Browse the repository at this point in the history
…incoherent result with v2.2.0
  • Loading branch information
nkx111 committed Jan 7, 2019
1 parent 363d75f commit 127dc79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/events/general/src/TRestRawSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ Double_t TRestRawSignal::GetIntegralWithThreshold( Int_t from, Int_t to,
{
for( int j = i - nPoints - fHeadPoints; j < i + fTailPoints && j < GetNumberOfPoints(); j++ )
{
if( j < 0 ) j = 0;
if (j < 0) continue;
// if( debug )
// cout << "Adding point : " << j << " data : " << GetData( j ) << endl;
sum += this->GetData( j );
sum += this->GetData(j) - baseline;
fPointsOverThreshold.push_back( j );
}
}
Expand Down

0 comments on commit 127dc79

Please sign in to comment.