Skip to content

Commit

Permalink
Merge pull request #61 from rest-for-physics/konrad_update
Browse files Browse the repository at this point in the history
TRestRawSignalRecoverChannelsProcess: bug fix
  • Loading branch information
KonradAltenmueller authored May 19, 2022
2 parents 7b1e403 + ae412df commit d0a17fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TRestRawSignalRecoverChannelsProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ TRestEvent* TRestRawSignalRecoverChannelsProcess::ProcessEvent(TRestEvent* evInp
// cout << "Channel id : " << fChannelIds[x] << " Left : " << idL << " Right
// : " << idR << endl;

if( fOutputSignalEvent->GetSignalIndex(fChannelIds[x])> 0 ) fOutputSignalEvent->RemoveSignalWithId(fChannelIds[x]);

if (idL == -1 || idR == -1) continue;

TRestRawSignal* leftSgnl = fInputSignalEvent->GetSignalById(idL);
Expand Down

0 comments on commit d0a17fe

Please sign in to comment.