8#ifndef DUNEANAOBJ_SRENUMS_H
9#define DUNEANAOBJ_SRENUMS_H
49 kUnknownGenerator = 0,
83 kNuElectronElastic = 7,
88 kInverseBetaDecay = 12,
89 kGlashowResonance = 13,
90 kIMDAnnihilation = 14,
93 kDarkMatterElastic = 101,
95 kDarkMatterElectron = 103,
105 enum PartType { kUnknown, kPrimary, kPrimaryBeforeFSI, kSecondary };
116 static constexpr float NaN = std::numeric_limits<float>::signaling_NaN();
132 enum SRRecoParticleCollectionType
142 SRRecoParticleCollectionType
type = SRRecoParticleCollectionType::kUnknown;
145 inline operator bool()
const {
return !(
type == SRRecoParticleCollectionType::kUnknown ||
ixn < 0 ||
ipart < 0); };
161 kFDHDPandoraTrack = 1,
162 KFDHDPandoraShower = 2,
164 kFDVDPandoraTrack = 4,
165 KFDVDPandoraShower = 5,
167 kFDPDHDPandoraTrack = 7,
168 KFDPDHDPandoraShower = 8,
169 KFDPDHDPandoraPFP = 9,
170 kFDPDVDPandoraTrack = 10,
171 KFDPDVDPandoraShower = 11,
172 KFDPDVDPandoraPFP = 12,
175 kNDLArDLPShower = 14,
176 kNDLArPandoraTrack = 15,
177 kNDLARPandoraShower = 16,
182 kSANDGRAINTrack = 18,
183 kSANDGRAINShower = 19,
184 kSANDTrackerTrack = 20,
185 kSANDTrackerShower = 21,
186 kSANDECalCluster = 22,
197 inline operator bool()
const {
return !(
type == SRRecoBaseCollectionType::kUnknown ||
ixn < 0 ||
irecoobj < 0); };
210 inline operator bool()
const
212 bool isSANDSubdet =
type == SRRecoBaseID::kSANDGRAINTrack ||
type == SRRecoBaseID::kSANDGRAINShower
213 ||
type == SRRecoBaseID::kSANDTrackerTrack ||
type == SRRecoBaseID::kSANDTrackerShower
214 ||
type == SRRecoBaseID::kSANDECalCluster;
215 return isSANDSubdet &&
idx >= 0;
Definition: SREnums.h:113
float time
time of the matched flash
Definition: SREnums.h:121
float total_pe
total pe of the matched flash
Definition: SREnums.h:122
float hypothesis_pe
hypothesis pe from reconstruction for this interaction
Definition: SREnums.h:123
Identifies a reconstructed object by the interaction it belongs to, which collection of reconstructed...
Definition: SREnums.h:152
SRRecoBaseCollectionType
Which collection of low-level reco objects an object lives in. NB: these values are serialized into C...
Definition: SREnums.h:158
@ kSANDAssn
cross-subdetector association; see SRSANDAssn
Definition: SREnums.h:187
SRRecoBaseCollectionType type
Which of the low-level reco objects collections this object lives in.
Definition: SREnums.h:194
int irecoobj
Index of SRRecoObjBase in the specified reco objects collection of the SRInteraction.
Definition: SREnums.h:195
int ixn
Index of SRInteraction in the SRInteractionBranch.
Definition: SREnums.h:193
Identifies a reconstructed particle by the interaction it belongs to, which collection of reconstruct...
Definition: SREnums.h:130
int ipart
Index of SRRecoParticle in the specified SRRecoParticlesBranch collection of the SRInteraction.
Definition: SREnums.h:143
int ixn
Index of SRInteraction in the SRInteractionBranch.
Definition: SREnums.h:141
SRRecoParticleCollectionType type
Which of the SRRecoParticle collections in SRRecoParticlesBranch this particle lives in.
Definition: SREnums.h:142
Identifies one of SAND's subdetector reco objects by which collection it lives in and its index withi...
Definition: SREnums.h:204
SRRecoBaseID::SRRecoBaseCollectionType type
SAND subdetector collection (kSANDGRAINTrack ... kSANDECalCluster)
Definition: SREnums.h:206
int idx
Index of the object in the collection named by type
Definition: SREnums.h:207
Definition: SREnums.h:102
PartType type
Which of the particle collections this particle lives in.
Definition: SREnums.h:108
int ixn
Index of SRInteraction in the SRTruthBranch.
Definition: SREnums.h:107
int part
Index of SRParticle in the SRInteraction.
Definition: SREnums.h:109
Common Analysis Files.
Definition: Navigate.cxx:8
NDRecoMatchType
Definition: SREnums.h:236
@ kUniqueNoTime
match performed using Quinton Weyrich's NDLArTMSUniqueMatchRecoFiller.cxx, without time
Definition: SREnums.h:239
@ kUndeclared
default value
Definition: SREnums.h:237
@ kUniqueWithTime
match performed using Quinton Weyrich's NDLArTMSUniqueMatchRecoFiller.cxx, with time
Definition: SREnums.h:240
@ kSimple
match performed using Kate Hildebrandt's "simple" matching algorithm
Definition: SREnums.h:238
RecoObjType
What is the type of the reconstructed object? This is used to help with the association of reconstruc...
Definition: SREnums.h:247
@ kUnknownRecoObj
default value
Definition: SREnums.h:248
@ kTrack
track
Definition: SREnums.h:249
@ kHitCollection
hit collection (mostly used to garbage collect all remaining hits)
Definition: SREnums.h:251
@ kShower
shower
Definition: SREnums.h:250
PartEMethod
Methods for reconstructing particle energies.
Definition: SREnums.h:63
@ kMCS
Multiple scattering.
Definition: SREnums.h:66
@ kVisibleEnergy
Computed from the number of photons collected with an appropriate calibration for the conversion.
Definition: SREnums.h:68
@ kCalorimetry
Computed from energy deposited in active volumes, possibly with corrections for invisible energy.
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:221
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:75
NDLAR_RECO_STACK
Which reconstruction toolkit was used to reconstruct this ND event?
Definition: SREnums.h:228