-
Notifications
You must be signed in to change notification settings - Fork 14
Adding offbeam gate counting in CAFs #79
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
Changes from all commits
b1856fa
a1cd7b4
3bfdb3b
dcdc241
0f8bd51
dbba5e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #include "sbnanaobj/StandardRecord/SREXTInfo.h" | ||
|
|
||
| #include <limits> | ||
| #include <climits> | ||
|
|
||
| namespace caf | ||
| { | ||
| SREXTInfo::SREXTInfo(): | ||
| gates_since_last_trigger(std::numeric_limits<unsigned int>::max()), | ||
| isBNBOffBeam(false), | ||
| isNuMIOffBeam(false), | ||
| isMajority(false), | ||
| isMinBias(false) | ||
| {} | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #ifndef SREXTInfo_h | ||
| #define SREXTInfo_h | ||
|
|
||
| namespace caf | ||
| { | ||
| class SREXTInfo | ||
| { | ||
| public: | ||
| SREXTInfo(); | ||
| unsigned int gates_since_last_trigger; | ||
| bool isBNBOffBeam; | ||
| bool isNuMIOffBeam; | ||
| bool isMajority; | ||
| bool isMinBias; | ||
|
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be commented what they mean or their name should be changed to something more generic. |
||
| }; | ||
| } | ||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| #include "sbnanaobj/StandardRecord/SREnums.h" | ||
| #include "sbnanaobj/StandardRecord/SRBNBInfo.h" | ||
| #include "sbnanaobj/StandardRecord/SRNuMIInfo.h" | ||
| #include "sbnanaobj/StandardRecord/SREXTInfo.h" | ||
| #include "sbnanaobj/StandardRecord/SRTrigger.h" | ||
|
|
||
| #include <vector> | ||
|
|
@@ -32,6 +33,7 @@ namespace caf | |
| unsigned int fno; ///< Index of file processed by CAFMaker | ||
| unsigned int ngenevt; ///< Number of events generated in input file associated with this record (before any filters) | ||
| float pot; ///< POT of the subrun associated with this record | ||
| float extcount; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the number of "beam gates" is missing, which would be needed to normalize "extcount" to "pot". Also, it looks like "extcount" is missing a comment describing it. |
||
| MCType_t mctype; ///< Type of Monte Carlo used to generate this record | ||
| Det_t det; ///< Detector, SBND=1 ICARUS=2 | ||
| bool first_in_subrun; ///< Whether this event is the first in the subrun | ||
|
|
@@ -43,6 +45,8 @@ namespace caf | |
| std::vector<caf::SRBNBInfo> bnbinfo; ///< storing beam information per subrun | ||
| size_t nnumiinfo; ///< Number of NuMIInfo objects | ||
| std::vector<caf::SRNuMIInfo> numiinfo; ///< storing beam information per subrun | ||
| size_t nextinfo; | ||
| std::vector<caf::SREXTInfo> extinfo; | ||
| size_t ntriggerinfo; ///< Number of Trigger objects | ||
| std::vector<caf::SRTrigger> triggerinfo; ///< storing trigger information per event | ||
|
|
||
|
|
||
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.
These should be commented what they mean or their name should be changed to something more generic.