-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathCAFMakerParams.h
More file actions
454 lines (373 loc) · 13.3 KB
/
Copy pathCAFMakerParams.h
File metadata and controls
454 lines (373 loc) · 13.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
#ifndef CAF_CAFMAKERPARAMS_H
#define CAF_CAFMAKERPARAMS_H
#include "fhiclcpp/types/Table.h"
#include "fhiclcpp/types/OptionalTable.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/OptionalSequence.h"
#include "canvas/Utilities/InputTag.h"
#include "nurandom/RandomUtils/NuRandomService.h" // rndm::SeedAtom (NOTE: could be replicated instead)
namespace caf
{
struct CAFMakerParams
{
template<class T> using Atom = fhicl::Atom<T>;
template<class T> using Sequence = fhicl::Sequence<T>;
template<class T> using Table = fhicl::Table<T>;
using Comment = fhicl::Comment;
using Name = fhicl::Name;
using string = std::string;
using InputTag = art::InputTag;
Atom<bool> CreateCAF { Name("CreateCAF"),
Comment("Whether to produce an output file in CAF format"), true
};
Atom<bool> CreateFlatCAF { Name("CreateFlatCAF"),
Comment("Whether to produce an output file in FlatCAF format"), true
};
Atom<bool> CreateBlindedCAF { Name("CreateBlindedCAF"),
Comment("Whether to produce output files with one consisting of a fraction of events and the other consisting of the remainder of the events with critical information obscured"), true
};
Atom<std::string> CAFFilename { Name("CAFFilename"),
Comment("Provide a string to override the automatic filename."), ""
};
Atom<std::string> FlatCAFFilename { Name("FlatCAFFilename"),
Comment("Provide a string to override the automatic filename."), ""
};
Atom<bool> SaveGENIEEventRecord { Name("SaveGENIEEventRecord"),
Comment("Whether to produce GENIE event record to the output file"), false
};
Atom<float> PrescaleFactor { Name("PrescaleFactor"),
Comment("Factor by which to prescale unblind events"), 10
};
Atom<int> POTBlindSeed { Name("POTBlindNum"),
Comment("Integer used to derive POT scaling factor for blind events"), 655277
};
rndm::SeedAtom FakeRecoRandomSeed { Name("FakeRecoRandomSeed"),
Comment("fix the random seed for the truth-based reconstruction")
};
rndm::SeedAtom BlindingRandomSeed { Name("BlindingRandomSeed"),
Comment("fix the random seed for the blinding")
};
Atom<std::string> DetectorOverride { Name("DetectorOverride"),
Comment("Override the automatically detectected detector using 'sbnd' or 'icarus'. This parameter should usually be unset - ''"),
""
};
Atom<string> DataTier { Name("DataTier") };
Atom<string> FileExtension { Name("FileExtension"), ".caf.root" };
Atom<string> FlatCAFFileExtension { Name("FlatCAFFileExtension"), ".flat.caf.root" };
Atom<string> UnblindFileExtension { Name("UnblindFileExtension"), ".Unblind.DONOTLOOK.dum" };
Atom<string> BlindFileExtension { Name("BlindFileExtension"), ".Blind.OKTOLOOK.dum" };
Atom<string> PrescaleFileExtension { Name("PrescaleFileExtension"), ".Prescaled.OKTOLOOK.dum" };
Atom<string> GeneratorLabel { Name("GeneratorInput") };
Atom<bool> StrictMode { Name("StrictMode"),
Comment("Abort if any required product not found, unless label is empty")
};
Atom<bool> CutClearCosmic {
Name("CutClearCosmic"),
Comment("Cut slices which are marked as a 'clear-cosmic' by pandora"),
false
};
Atom<bool> SelectOneSlice {
Name("SelectOneSlice"),
Comment("Only select one slice per spill (ranked by nu_score) [TODO: implement]."),
false
};
fhicl::OptionalSequence<std::string> PandoraTagSuffixes {
Name("PandoraTagSuffixes"),
Comment("List of suffixes to add to TPC reco tag names (e.g. cryo0 cryo1)")
};
Atom<string> BNBPOTDataLabel {
Name("BNBPOTDataLabel"),
Comment("Label of BNBRetriever module"),
"bnbinfo"
};
Atom<string> NuMIPOTDataLabel {
Name("NuMIPOTDataLabel"),
Comment("Label of NuMIRetriever module"),
"numiinfo"
};
Atom<string> OffbeamBNBCountDataLabel {
Name("OffbeamBNBCountDataLabel"),
Comment("Label of BNB EXT module"),
"bnbextinfo"
};
Atom<string> OffbeamNuMICountDataLabel {
Name("OffbeamNuMICountDataLabel"),
Comment("Label of NuMI EXT module"),
"numiextinfo"
};
Atom<string> G4Label {
Name("G4Label"),
Comment("Label of G4 module."),
"largeant"
};
Atom<string> GenLabel {
Name("GenLabel"),
Comment("Label of neutrino gen module."),
"generator"
};
Atom<string> CosmicGenLabel {
Name("CosmicGenLabel"),
Comment("Label of cosmic gen module."),
"cosmgen"
};
Atom<string> ParticleGunGenLabel {
Name("ParticleGunGenLabel"),
Comment("Label of particle gun gen module."),
"particlegun"
};
Atom<string> PFParticleLabel {
Name("PFParticleLabel"),
Comment("Base label of PFParticle producer."),
"pandora"
};
Atom<string> CNNScoreLabel {
Name("CNNScoreLabel"),
Comment("Base label of CNN score producer."),
"cnnid"
};
Atom<string> StubLabel {
Name("StubLabel"),
Comment("Base label of Stub producer."),
"vertexStub"
};
Atom<string> FlashMatchLabel {
Name("FlashMatchLabel"),
Comment("Base label of flash match producer."),
"fmatch" // same for icarus and sbnd
};
fhicl::OptionalSequence<std::string> FlashMatchOpDetSuffixes {
Name("FlashMatchOpDetSuffixes"),
Comment("List of suffixes to add to SimpleFlash to denote Simple/Op Flashes and PDS subsystem (SBND)")
};
fhicl::OptionalSequence<std::string> FlashMatchSCECryoSuffixes {
Name("FlashMatchSCECryoSuffixes"),
Comment("List of suffixes to add to SimpleFlash to denote whether SCE implemented and cryostat (ICARUS)")
};
Atom<string> CRUMBSLabel {
Name("CRUMBSLabel"),
Comment("Base label of CRUMBS ID producer."),
"crumbs"
};
Atom<string> OpT0Label {
Name("OpT0Label"),
Comment("Base label of OpT0Finder producer"),
"opt0finder"
};
Atom<bool> FillHits {
Name("FillHits"),
Comment("Label deciding if you want to fill SRHits"),
false // default is false; set to true if you want SRHits filled
};
Atom<string> HitLabel {
Name("HitLabel"),
Comment("Base label of the TPC Hit producer."),
"gaushit"
};
Atom<string> RecoTrackLabel {
Name("RecoTrackLabel"),
Comment("Base label of reco-base track producer."),
"pandoraTrack"
};
Atom<string> RecoShowerLabel {
Name("RecoShowerLabel"),
Comment("Base label of reco-base shower producer."),
"pandoraShowerSBN"
};
Atom<string> ShowerRazzleLabel {
Name("ShowerRazzleLabel"),
Comment("Base label of shower mva particle-id producer."),
"pandoraShowerRazzle"
};
Atom<string> PFPRazzledLabel {
Name("PFPRazzledLabel"),
Comment("Base label of pfp mva particle-id producer."),
"pandoraRazzled"
};
Atom<string> RecoShowerSelectionLabel {
Name("RecoShowerSelectionLabel"),
Comment("Base label of shower selection vars producer."),
"pandoraShowerSelectionVars"
};
Atom<string> ShowerCosmicDistLabel {
Name("ShowerCosmicDistLabel"),
Comment("Base label of shower selection vars producer."),
"pandoraShowerCosmicDist"
};
Atom<string> TrackCaloLabel {
Name("TrackCaloLabel"),
Comment("Base label of track calorimetry producer."),
"pandoraCalo"
};
Atom<string> TrackChi2PidLabel {
Name("TrackChi2PidLabel"),
Comment("Base label of track chi2 particle-id producer."),
"pandoraPid"
};
Atom<string> TrackScatterClosestApproachLabel {
Name("TrackScatterClosestApproachLabel"),
Comment("Base label of track track scatter closestapproach producer."),
"pandoraTrackClosestApproach"
};
Atom<string> TrackStoppingChi2FitLabel {
Name("TrackStoppingChi2FitLabel"),
Comment("Base label of track stopping chi2 fit producer."),
"pandoraTrackStoppingChi2"
};
Atom<string> TrackDazzleLabel {
Name("TrackDazzleLabel"),
Comment("Base label of track mva particle-id producer."),
"pandoraTrackDazzle"
};
Atom<string> CRTHitMatchLabel {
Name("CRTHitMatchLabel"),
Comment("Base label of track to CRT hit matching producer."),
"pandoraTrackCRTHit"
};
Atom<string> CRTTrackMatchLabel {
Name("CRTTrackMatchLabel"),
Comment("Base label of track to CRT track matching producer."),
"pandoraTrackCRTTrack"
};
Atom<string> CRTSpacePointMatchLabel {
Name("CRTSpacePointMatchLabel"),
Comment("Base label of track to CRT spacepoint matching producer."),
"crtspacepointmatching"
};
Atom<string> SBNDCRTTrackMatchLabel {
Name("SBNDCRTTrackMatchLabel"),
Comment("Base label of track to SBND CRT track matching producer."),
"crttrackmatching"
};
Atom<string> TrackMCSLabel {
Name("TrackMCSLabel"),
Comment("Base label of track MCS momentum calculation producer."),
"pandoraTrackMCS"
};
Atom<string> TrackRangeLabel {
Name("TrackRangeLabel"),
Comment("Base label of track range momentum calculation producer."),
"pandoraTrackRange"
};
Atom<string> CRTHitLabel {
Name("CRTHitLabel"),
Comment("Label of sbn CRT hits."),
"crthit" // icarus
};
Atom<string> CRTTrackLabel {
Name("CRTTrackLabel"),
Comment("Label of sbn CRT tracks."),
"crttrack" // icarus
};
Atom<string> CRTSpacePointLabel {
Name("CRTSpacePointLabel"),
Comment("Label of sbnd CRT spacepoints."),
"crtspacepoints" // sbnd
};
Atom<string> SBNDCRTTrackLabel {
Name("SBNDCRTTrackLabel"),
Comment("Label of sbnd CRT tracks."),
"crttracks" // sbnd
};
Atom<string> CRTPMTLabel {
Name("CRTPMTLabel"),
Comment("Label for the CRTPMT Matched variables from the crtpmt data product"),
"crtpmt" // this variable exists in icaruscode, pretty sure it does not yet exist in sbnd
};
Atom<string> TPCPMTBarycenterMatchLabel {
Name("TPCPMTBarycenterMatchLabel"),
Comment("Label of Slice-OpFlash matching via barycenters."),
"" //Empty by default, configured in icaruscode cafmaker_defs
};
Atom<string> OpFlashLabel {
Name("OpFlashLabel"),
Comment("Label of PMT flash."),
"OpFlash"
};
Atom<long long> CRTSimT0Offset {
Name("CRTSimT0Offset"),
Comment("start of beam gate/simulation time in the simulated CRT clock"),
0,
};
Atom<art::InputTag> TriggerLabel {
Name("TriggerLabel"),
Comment("Label of trigger."),
"daqTrigger"
};
Atom<art::InputTag> UnshiftedTriggerLabel {
Name("UnshiftedTriggerLabel"),
Comment("Label of trigger emulation before applying trigger time shifts."),
"emuTriggerUnshifted"
};
Atom<string> FlashTrigLabel {
Name("FlashTrigLabel"),
Comment("Label of bool of passing flash trigger."),
"flashtrigfilter"
};
Atom<bool> CRTUseTS0 {
Name("CRTUseTS0"),
Comment("Whether to use ts0 or ts1 to fill the time of the SRCRTHit and SRCRTTrack"),
false
};
Atom<string> SimChannelLabel {
Name("SimChannelLabel"),
Comment("Label of input sim::SimChannel objects."),
"simdrift"
};
Atom<bool> FillTrueParticles {
Name("FillTrueParticles"),
Comment("Whether to fill the rec.true_particles branch. The information on true particles"
" will still be stored for the neutirno primaries and for trk/shw truth matching."),
true
};
Atom<bool> FillTrackCaloTruth {
Name("FillTrackCaloTruth"),
Comment("Whether to save truth information associated with CaloPoints"),
true
};
Sequence<std::string> SystWeightLabels {
Name("SystWeightLabels"),
Comment("Labels for EventWeightMap objects for mc.nu.wgt")
};
Atom<bool> FillHitsAllSlices {
Name("FillHitsAllSlices"),
Comment("Fill per-hit information in all reconstructed slices."),
false
};
Atom<bool> FillHitsNeutrinoSlices {
Name("FillHitsNeutrinoSlices"),
Comment("Fill per-hit information in neutrino ID-d reconstructed slices."),
true
};
Atom<float> TrackHitFillRRStartCut {
Name("TrackHitFillRRStartCut"),
Comment("How long from the start of a track to save calo-point information. Set to -1 to save nothing"),
5.
};
Atom<float> TrackHitFillRREndCut {
Name("TrackHitFillRREndCut"),
Comment("How long from the end of a track to save calo-point information. Set to -1 to save nothing"),
25.
};
Atom<bool> ReferencePMTFromTriggerToBeam {
Name("ReferencePMTFromTriggerToBeam"),
Comment("Whether to switch the reference time of PMT reco from 'trigger' to 'beam spill' time."),
true
};
Atom<bool> ReferenceCRTT0ToBeam {
Name("ReferenceCRTT0ToBeam"),
Comment("Whether to switch the reference time of CRT T0 reco to the 'beam spill' time."),
true
};
Atom<bool> ReferenceCRTT1FromTriggerToBeam {
Name("ReferenceCRTT1FromTriggerToBeam"),
Comment("Whether to switch the reference time of CRT T1 reco from 'trigger' to the 'beam spill' time."),
true
};
Atom<string> CVNLabel {
Name("CVNLabel"),
Comment("Label of CVN scores."),
"cvn"
};
};
}
#endif