DUNE StandardRecord
Base object for DUNE analysis files (CAFs)
Loading...
Searching...
No Matches
SREnums.h
1
2// \file SREnums.h
3// \brief Consolidated headers so that they can be included by Proxy
4// \author J. Wolcott <jwolcott@fnal.gov>
5// \date Mar. 2023
7
8#ifndef DUNEANAOBJ_SRENUMS_H
9#define DUNEANAOBJ_SRENUMS_H
10
11#include <cstddef>
12#include <limits>
13
14namespace caf
15{
17 enum Detector : std::size_t
18 {
19 kUnknownDet = 0,
20
21 // full NDs in Phase I or Phase II
22 kND_LAr = 1,
23 kND_TMS = 2,
25 kND_GAr = 4,
26
27 // ND prototypes (more to add?)
28 k2x2 = 5,
30
31 // leaving some space for expansion ...
32
33 // full FDs (Phase II modules TBD...)
34 kFD_HD = 10,
35 kFD_VD = 11,
36
37 // space for modules 3 and 4...
38
39 // FD prototypes (we don't have any ProtoDUNE-VD data that will be CAFfed?)
41
42 _kLastDetector = 24
43 };
44
45
48 {
49 kUnknownGenerator = 0,
50 kGENIE = 1,
51 kGIBUU = 2,
52 kNEUT = 3,
53 kCRY = 4,
54 kNuWro = 5,
55 kMARLEY = 6,
56 kCORSIKA = 7,
57 kGEANT = 8
58
59 };
60
63 {
64 kUnknownMethod,
68 };
69
74 {
75 kUnknownMode = -100,
76 kQE = 1,
77 kSingleKaon = 2,
78 kDIS = 3,
79 kRes = 4,
80 kCoh = 5,
81 kDiffractive = 6,
82 kNuElectronElastic = 7,
83 kInvMuonDecay = 8,
84 kAMNuGamma = 9,
85 kMEC = 10,
86 kCohElastic = 11,
87 kInverseBetaDecay = 12,
88 kGlashowResonance = 13,
89 kIMDAnnihilation = 14,
90 kPhotonCoh = 15,
91 kPhotonRes = 16,
92 kDarkMatterElastic = 101,
93 kDarkMatterDIS = 102,
94 kDarkMatterElectron = 103,
95 };
96
97 // ----------------------------------------------------------------------
98 // now some enums that are used internally so one branch can easily refer to another
99
101 {
102 public:
103
104 enum PartType { kUnknown, kPrimary, kPrimaryBeforeFSI, kSecondary };
105
106 int ixn = -1;
107 PartType type = kUnknown;
108 int part = -1;
109 };
110
112 {
113 private:
114
115 static constexpr float NaN = std::numeric_limits<float>::signaling_NaN();
116
117 public:
118
119 int id = -1;
120 float time = NaN;
121 float total_pe = NaN;
122 float hypothesis_pe = NaN;
123 };
124
127 {
128 kUnknownFDReco,
129 kPandoraFD
130 };
131
134 {
135 kUnknownNDLArReco,
136 kDeepLearnPhys,
137 kPandoraNDLAr
138 };
139
140
148
159
160}
161
162
163#endif //DUNEANAOBJ_SRENUMS_H
Definition SREnums.h:112
float time
time of the matched flash
Definition SREnums.h:120
float total_pe
total pe of the matched flash
Definition SREnums.h:121
float hypothesis_pe
hypothesis pe from reconstruction for this interaction
Definition SREnums.h:122
Definition SREnums.h:101
PartType type
Which of the particle collections this particle lives in.
Definition SREnums.h:107
int ixn
Index of SRInteraction in the SRTruthBranch.
Definition SREnums.h:106
int part
Index of SRParticle in the SRInteraction.
Definition SREnums.h:108
Common Analysis Files.
Definition Navigate.cxx:8
NDRecoMatchType
Definition SREnums.h:142
@ kUniqueNoTime
match performed using Quinton Weyrich's NDLArTMSUniqueMatchRecoFiller.cxx, without time
Definition SREnums.h:145
@ kUndeclared
default value
Definition SREnums.h:143
@ kUniqueWithTime
match performed using Quinton Weyrich's NDLArTMSUniqueMatchRecoFiller.cxx, with time
Definition SREnums.h:146
@ kSimple
match performed using Kate Hildebrandt's "simple" matching algorithm
Definition SREnums.h:144
RecoObjType
What is the type of the reconstructed object? This is used to help with the association of reconstruc...
Definition SREnums.h:153
@ kUnknownRecoObj
default value
Definition SREnums.h:154
@ kTrack
track
Definition SREnums.h:155
@ kHitCollection
hit collection (mostly used to garbage collect all remaining hits)
Definition SREnums.h:157
@ kShower
shower
Definition SREnums.h:156
PartEMethod
Methods for reconstructing particle energies.
Definition SREnums.h:63
@ kMCS
Multiple scattering.
Definition SREnums.h:66
@ kCalorimetry
Observed energy deposited in active volume.
Definition SREnums.h:67
@ kRange
Amount of material traversed by particle.
Definition SREnums.h:65
Generator
Known generators of neutrino interactions (extend as other generators are used)
Definition SREnums.h:48
FD_RECO_STACK
Which reconstruction toolkit was used to reconstruct this FD event?
Definition SREnums.h:127
Detector
Known detectors in CAFs.
Definition SREnums.h:18
@ kFD_HD
Horizontal drift (a.k.a. module 1)
Definition SREnums.h:34
@ kND_TMS
magnetized spectrometer/calorimeter (forms part of movable PRISM detector concept in Phase I)
Definition SREnums.h:23
@ kND_SAND
scintillator tracker and calorimeter, fixed on-axis in beam
Definition SREnums.h:24
@ kND_GAr
high-pressure gaseous argon TPC (forms part of movable PRISM detector concept in Phase II)
Definition SREnums.h:25
@ kND_LAr
35-module liquid argon TPC (forms part of movable PRISM detector concept)
Definition SREnums.h:22
@ kFD_VD
Vertical drift (a.k.a. module 2)
Definition SREnums.h:35
@ kProtoDUNE
Horizontal drift prototype.
Definition SREnums.h:40
@ k2x2
ND-LAr prototype.
Definition SREnums.h:28
@ _kLastDetector
to use in bitset sizing. make it big enough that we'll never have to expand it —> future-proof CAFs
Definition SREnums.h:42
@ kMINERvA
tracker & muon veto for 2x2; repurposed former MINERvA detector components
Definition SREnums.h:29
ScatteringMode
Neutrino interaction categories. Periodically synchronized to GENIE (last update: GENIE 3....
Definition SREnums.h:74
NDLAR_RECO_STACK
Which reconstruction toolkit was used to reconstruct this ND event?
Definition SREnums.h:134