Skip to content
Snippets Groups Projects

protections for the case CbmEvent::GetNofStsTracks() == -1

Closed Sergey Gorbunov requested to merge se.gorbunov/cbmroot:nStsTracks into master

protections for the case CbmEvent::GetNofStsTracks() == -1

In the code, it is usually assumed that CbmEvent::GetNofStsTracks() >= 0, while it may be -1.

Actually, CbmEvent::GetNofData(ECbmDataType type) never returns 0.

There is no way to "register" a data type in CbmEvent without adding some data of the type. When there is no data of a type, it returns -1. If there is data, it returns >= 1.

Maybe we should change the convention for CbmEvent::GetNofData(ECbmDataType type) and return 0 when there is no data.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading