Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sbnobj/Common/POTAccounting/EXTCountInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace sbn {
public:

int gates_since_last_trigger;
bool isBNBOffBeam;
bool isNuMIOffBeam;
bool isMajority; //< Does trigger pass scintillation-based trigger?
bool isMinBias; //< Is this a non-scintillation-based trigger?

};
} // end namespace sbn
Expand Down
4 changes: 3 additions & 1 deletion sbnobj/Common/POTAccounting/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<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).

<class name="sbn::EXTCountInfo" ClassVersion="13">
<version ClassVersion="13" checksum="90106564"/>
<version ClassVersion="12" checksum="3544499454"/>
Comment on lines +14 to +16
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.

<version ClassVersion="11" checksum="2738807909"/>
<version ClassVersion="10" checksum="1347272"/>
</class>
Expand Down