Skip to content

Adding offbeam gate counting in the CAFs#67

Closed
jzettle wants to merge 3 commits into
developfrom
feature/jzettle_OffBeamGateCountCAFs
Closed

Adding offbeam gate counting in the CAFs#67
jzettle wants to merge 3 commits into
developfrom
feature/jzettle_OffBeamGateCountCAFs

Conversation

@jzettle
Copy link
Copy Markdown

@jzettle jzettle commented Sep 30, 2022

This PR adds offbeam gate counting into the CAFs. The number of gates is computed as a difference with the gate counting performed within the event to compute the number of offbeam gates for BNB or NuMI seen by the trigger hardware on an event-by-event basis.

@jzettle
Copy link
Copy Markdown
Author

jzettle commented Sep 30, 2022

This is a set of PRs that spans SBNSoftware/sbnana#89, SBNSoftware/sbncode#298, and SBNSoftware/sbnanaobj#79

int gates_since_last_trigger;
bool isBNBOffBeam;
bool isNuMIOffBeam;
bool isMajority;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"Majority" and "MinBias" are a bit ICARUS jargon-y, could you add a comment after each explaining what they are and/or adopting a more detector agnostic naming nomenclature?

<version ClassVersion="11" checksum="4062206176"/>
<version ClassVersion="10" checksum="3057205612"/>
</class>
<class name="sbn::EXTCountInfo" ClassVersion="11">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think @wesketchum complains when people manually change these, but I am not sure why, I defer to him

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@wesketchum is there a procedure for this? I start at 10 and increment from there as I have seen in other examples

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My main issue is to avoid proliferation of the version numbers during development. If data hasn't been written in 'older' versions that needs to be re-read, then we can remove those versions.

So, in this case: if no one has ever made data with 'version 10' that we need to read back, then I'd advocate that we make version 11 --> 10, and 'start' from there. If that's not the case, what you've done is exactly right.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(or, to this point, if version 12 needs to be kept or not ... if not, can replace 12 with 13, and drop line 16).

@jzennamo
Copy link
Copy Markdown
Contributor

Once Wes' comment is addressed I am happy

@jzennamo jzennamo self-requested a review October 13, 2022 21:07
Comment on lines +14 to +16
<class name="sbn::EXTCountInfo" ClassVersion="13">
<version ClassVersion="13" checksum="90106564"/>
<version ClassVersion="12" checksum="3544499454"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That would be:

Suggested change
<class name="sbn::EXTCountInfo" ClassVersion="13">
<version ClassVersion="13" checksum="90106564"/>
<version ClassVersion="12" checksum="3544499454"/>
<class name="sbn::EXTCountInfo" ClassVersion="12">
<version ClassVersion="12" checksum="90106564"/>

Rule of thumb is that a pull request should add at most one version per class.

@miquelnebot miquelnebot added the help wanted Extra attention is needed label Feb 7, 2023
@miquelnebot miquelnebot marked this pull request as draft February 7, 2023 10:23
@jzettle jzettle closed this Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants