-
Notifications
You must be signed in to change notification settings - Fork 35
Enables Database Lookup for Exposure accounting #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
miquelnebot
merged 15 commits into
develop
from
feature/zennamo_AccountingForMinBiasTriggers
Jan 26, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
92aea80
Updated to TriggerV3
021d19a
Updated to Trigger V3
93935e7
Taking into account MinBias Triggers
jzennamo 29eee27
fix bug, forgot to add minbias scale_factor
jzennamo 8493e09
protect against events before minbias trigger
jzennamo bd6cb97
Merge branch 'develop' into feature/zennamo_AccountingForMinBiasTriggers
jzennamo b3cc268
Add individual BNBInfo and NuMIInfo to SRHeader to enable saving of t…
brucehoward-physics 39fe109
Fix a few issues - one adds a check on PadTime before deciding if it …
brucehoward-physics 20ba04f
Updated code with some of Gianluca P's suggestions (need to test and …
brucehoward-physics 2b6c7ed
Second part of incorporating Gianluca's comments. Thanks
brucehoward-physics 15f8421
Adding to fix a pet peeve of Gianluca since I was re-testing things a…
brucehoward-physics 31b87be
adding guard for non-offbeam triggers
jzennamo b4b6f35
Merge branch 'develop' into feature/zennamo_AccountingForMinBiasTriggers
jzennamo 3c21acc
updates with changes
jzennamo 049442b
Merge pull request #407 from SBNSoftware/feature/howard_spillquality_…
miquelnebot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...InfoRetriever/EXTRetriever/CMakeLists.txt → ...oRetriever/BNBEXTRetriever/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't figure out the rationale here.
Can you explain (and document) the intent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to scale by the minimum bias prescale rate, which can change run-to-run based on our configuration. The best way I found to do this was to use
frag.getDeltaGatesBNBOffMinbias()BUT it doesn't work for event which haven't had a MinBias trigger yet.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can get the prescale rate with something like:
(
#include "icaruscode/Decode/DataProducts/TriggerConfiguration.h")With this information you can correct either statistically (
* (1.0 - 1.0/fPrescale)) or exactly event by event.The correct label from ICARUS
Stage0processing istriggerConfigif I am not wrong.I don't understand the meaning of the fraction
evtCount/totalMinBias... I would understand a gate count instead of the triggered event count on the denominator as an estimation of the prescale factor.I am not sure what the existing code does in the presence of events with
gate_type != 3.