Skip to content

DPL Analysis: add exception for unsorted unassigned groups#7998

Merged
jgrosseo merged 3 commits into
AliceO2Group:devfrom
aalkin:prevent-split-unassigned
Jan 25, 2022
Merged

DPL Analysis: add exception for unsorted unassigned groups#7998
jgrosseo merged 3 commits into
AliceO2Group:devfrom
aalkin:prevent-split-unassigned

Conversation

@aalkin

@aalkin aalkin commented Jan 24, 2022

Copy link
Copy Markdown
Member

If unassigned groups are in incorrect order (or split), fast grouping is invalid due to incorrect offsets, so the execution should stop.

If unassigned groups are in incorrect order (or split), fast grouping is
invalid due to incorrect offsets, so the execution should stop.
@aalkin aalkin requested a review from a team as a code owner January 24, 2022 13:00
@ktf

ktf commented Jan 24, 2022

Copy link
Copy Markdown
Member

The change itself is fine, but can we remove the templating of sliceByColumn?

@aalkin

aalkin commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

Yes, but it needs some changes in other places, I have it on my todo list.

ktf
ktf previously approved these changes Jan 24, 2022
jgrosseo
jgrosseo previously approved these changes Jan 24, 2022

@jgrosseo jgrosseo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine but does not catch broken groups, right?
So 1 1 1 2 2 2 -1 -1 2 2 will not trigger any assert right?

What keeping last_positive, last_negative and prev

  • if cur == prev do nothing, else:
  • if cur >= 0 && cur <= last_positive then assert
  • if cur < 0 && cur >= last_negative then assert
  • else continue and set last_positive / last_negative

@aalkin aalkin dismissed stale reviews from jgrosseo and ktf via 1cc7532 January 24, 2022 15:57
@aalkin

aalkin commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

@jgrosseo something like this?

@jgrosseo jgrosseo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it does not assert on startup without changing lastPos to start from -1 and lastNeg from 0?

@jgrosseo

Copy link
Copy Markdown
Collaborator

I think if we start with -1, it should give an assert right away...

@aalkin

aalkin commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

You are right, the first iteration needs a special care.

@aalkin aalkin marked this pull request as draft January 24, 2022 16:35
@aalkin aalkin marked this pull request as ready for review January 24, 2022 16:44
@aalkin

aalkin commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

Setting all initial values to 0 should prevent any of the exceptional conditions triggering when parsing the initial 0... -1... or -1... 0... segment.

@jgrosseo jgrosseo enabled auto-merge (squash) January 24, 2022 20:45
@jgrosseo jgrosseo merged commit 8818ea6 into AliceO2Group:dev Jan 25, 2022
jgrosseo added a commit that referenced this pull request Jan 26, 2022
@aalkin aalkin deleted the prevent-split-unassigned branch May 30, 2022 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants