-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathCAFMakerParams.h
More file actions
646 lines (533 loc) · 19.8 KB
/
CAFMakerParams.h
File metadata and controls
646 lines (533 loc) · 19.8 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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
#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>;
template<class T> using OptionalTable = fhicl::OptionalTable<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<bool> OverrideRealData { Name("OverrideRealData"),
Comment("when true, some algorithms (e.g. PoT count) treat events as MC rather than real data -- e.g. set it if the event is an overlay"), 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> TrackLikePidLabel {
Name("TrackLikePidLabel"),
Comment("Base label of track likelihood particle-id producer."),
"pandoraLikePid"
};
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> CRTHitMatchInfoLabel {
Name("CRTHitMatchInfoLabel"),
Comment("Base label of additional information on track to CRT hit matching producer."),
"CRTT0Tagging"
};
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> CRTSimChanLabel {
Name("CRTSimChanLabel"),
Comment("Label of AuxDetSimChannels."),
"genericcrt" // 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> SBNDCRTVetoLabel {
Name("SBNDCRTVetoLabel"),
Comment("Label of sbnd CRT Veto."),
"crtveto" // sbnd
};
Atom<string> SBNDFrameShiftInfoLabel {
Name("SBNDFrameShiftInfoLabel"),
Comment("Label of sbnd frame shift."),
"" // sbnd
};
Atom<string> SBNDTimingInfoLabel {
Name("SBNDTimingInfoLabel"),
Comment("Label of sbnd timing shift."),
"" // sbnd
};
Atom<string> SBNDSoftwareTriggerLabel{
Name("SBNDSoftwareTriggerLabel"),
Comment("Label for software trigger producer"),
"" // 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> CorrectedOpFlashLabel {
Name("CorrectedOpFlashLabel"),
Comment("Label of CorrectedOpFlash containing tpc-corrected flash time."),
""
};
Atom<art::InputTag> NuGraphSliceHitLabel {
Name("NuGraphSliceHitLabel"),
Comment("Label of NuGraph slice hit map."),
"" //Empty by default, please set to e.g. art::InputTag("nuslhits")
};
Atom<art::InputTag> NuGraphFilterLabel {
Name("NuGraphFilterLabel"),
Comment("Label of NuGraph filter."),
"" //Empty by default, please set to e.g. art::InputTag("NuGraph","filter")
};
Atom<art::InputTag> NuGraphSemanticLabel {
Name("NuGraphSemanticLabel"),
Comment("Label of NuGraph semantic."),
"" //Empty by default, please set to e.g. art::InputTag("NuGraph","semantic")
};
Atom<string> OpFlashLabel {
Name("OpFlashLabel"),
Comment("Label of PMT flash."),
"OpFlash"
};
Atom<string> PMTBeamSignalLabel {
Name("PMTBeamSignalLabel"),
Comment("Label for special PMT beam timing signals used to build the beam bunch structure"),
"beamTiming:RWM"
};
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<art::InputTag> MonPulsesTriggerLabel {
Name("MonPulsesTriggerLabel"),
Comment("Label of trigger emulation product MonPulses (number of PMT pairs above threshold for all channels) for all flashes."),
art::InputTag("opdaq", "MonPulses", "DetSim")
};
Atom<art::InputTag> MonPulseSizesTriggerLabel {
Name("MonPulseSizesTriggerLabel"),
Comment("Label of trigger emulation product MonPulses Sizes, which gives the length of each trigger response in MonPulses."),
art::InputTag("opdaq", "MonPulseSizes", "DetSim")
};
Atom<art::InputTag> PairsTriggerLabel {
Name("PairsTriggerLabel"),
Comment("Label of number of PMT pairs over threshold."),
art::InputTag("opdaq", "pairsOverThreshold", "DetSim")
};
Atom<art::InputTag> EmulatedTriggerLabel {
Name("EmulatedTriggerLabel"),
Comment("Label of bool of passing the trigger."),
art::InputTag("opdaq", "triggerEmulation", "DetSim")
};
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.
};
struct PFOCharLabels_t {
Atom<string> EndFractionName {
Name("EndFractionName"),
Comment("Provide the tool name for the EndFraction BDT variable."),
"LArThreeDChargeFeatureTool_EndFraction"
};
Atom<string> FractionalSpreadName {
Name("FractionalSpreadName"),
Comment("Provide the tool name for the FractionalSpread BDT variable."),
"LArThreeDChargeFeatureTool_FractionalSpread"
};
Atom<string> DiffStraightLineMeanName {
Name("DiffStraightLineMeanName"),
Comment("Provide the tool name for the DiffStraightLineMean BDT variable."),
"LArThreeDLinearFitFeatureTool_DiffStraightLineMean"
};
Atom<string> LengthName {
Name("LengthName"),
Comment("Provide the tool name for the Length BDT variable."),
"LArThreeDLinearFitFeatureTool_Length"
};
Atom<string> MaxFitGapLengthName {
Name("MaxFitGapLengthName"),
Comment("Provide the tool name for the MaxFitGapLength BDT variable."),
"LArThreeDLinearFitFeatureTool_MaxFitGapLength"
};
Atom<string> SlidingLinearFitRMSName {
Name("SlidingLinearFitRMSName"),
Comment("Provide the tool name for the SlidingLinearFitRMS BDT variable."),
"LArThreeDLinearFitFeatureTool_SlidingLinearFitRMS"
};
Atom<string> AngleDiffName {
Name("AngleDiffName"),
Comment("Provide the tool name for the AngleDiff BDT variable."),
"LArThreeDOpeningAngleFeatureTool_AngleDiff"
};
Atom<string> SecondaryPCARatioName {
Name("SecondaryPCARatioName"),
Comment("Provide the tool name for the SecondaryPCARatio BDT variable."),
"LArThreeDPCAFeatureTool_SecondaryPCARatio"
};
Atom<string> TertiaryPCARatioName {
Name("TertiaryPCARatioName"),
Comment("Provide the tool name for the TertiaryPCARatio BDT variable."),
"LArThreeDPCAFeatureTool_TertiaryPCARatio"
};
Atom<string> VertexDistanceName {
Name("VertexDistanceName"),
Comment("Provide the tool name for the VertexDistance BDT variable."),
"LArThreeDVertexDistanceFeatureTool_VertexDistance"
};
Atom<string> HaloTotalRatioName {
Name("HaloTotalRatioName"),
Comment("Provide the tool name for the HaloTotalRatio BDT variable."),
"LArConeChargeFeatureTool_HaloTotalRatio"
};
Atom<string> ConcentrationName {
Name("ConcentrationName"),
Comment("Provide the tool name for the Concentration BDT variable."),
"LArConeChargeFeatureTool_Concentration"
};
Atom<string> ConicalnessName {
Name("ConicalnessName"),
Comment("Provide the tool name for the Conicalness BDT variable."),
"LArConeChargeFeatureTool_Conicalness"
};
};
OptionalTable<PFOCharLabels_t> PFOCharLabels {
Name("PFOCharLabels"),
Comment("Provide tool names for the Pandora track/shower discrimination BDT variables.")
};
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"
};
Atom<std::string> fBlipTag {
Name("BlipTag"),
Comment("Provide a string to label the blip input"),
"blipreco"
};
};
}
#endif