-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathcafmaker_defs.fcl
More file actions
330 lines (276 loc) · 14.8 KB
/
cafmaker_defs.fcl
File metadata and controls
330 lines (276 loc) · 14.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
#include "CAFMaker.fcl"
#include "services_common_icarus.fcl"
#include "channelmapping_icarus.fcl"
#include "correctionservices_icarus.fcl"
#include "particleinventoryservice.fcl"
#include "photonbacktrackerservice.fcl"
#include "mccheatermodules.fcl"
#include "calorimetry_icarus.fcl"
#include "particleid_icarus.fcl"
#include "eventweight_genie_sbn.fcl"
#include "eventweight_genie_systtools.fcl"
#include "eventweight_flux_sbn.fcl"
#include "mcreco.fcl"
#include "mcsproducer.fcl"
#include "rangeproducer.fcl"
#include "flashmatch_simple_icarus.fcl"
#include "scecorrections.fcl"
#include "trackfindermodules_icarus.fcl"
#include "showerfindermodules_icarus.fcl"
#include "sbn_stub.fcl"
#include "transfer_flashmatch_producer.fcl"
#include "showercosmicdistanceproducer.fcl"
BEGIN_PROLOG
# Producers for making Calo objects
recoana_mccalo_producers: {
pandoraCaloGausCryoE: @local::icarus_gnewcalomc
pandoraCaloGausCryoW: @local::icarus_gnewcalomc
vertexChargeCryoE: @local::vertex_charge_icarus_cryoE
vertexChargeCryoW: @local::vertex_charge_icarus_cryoW
vertexStubCryoE: @local::vertex_stub_icarus_cryoE
vertexStubCryoW: @local::vertex_stub_icarus_cryoW
}
# Overwrite Labels
recoana_mccalo_producers.pandoraCaloGausCryoE.TrackModuleLabel: "pandoraTrackGausCryoE"
recoana_mccalo_producers.pandoraCaloGausCryoW.TrackModuleLabel: "pandoraTrackGausCryoW"
recoana_mccalo_producers.pandoraCaloGausCryoW.Cryostat: 1
# Setup CaloAlg for VertexCharge
recoana_mccalo_producers.vertexChargeCryoE.CaloAlg: @local::icarus_calorimetryalgmc
recoana_mccalo_producers.vertexChargeCryoW.CaloAlg: @local::icarus_calorimetryalgmc
recoana_mccalo_producers.vertexStubCryoE.CaloAlg: @local::icarus_calorimetryalgmc
recoana_mccalo_producers.vertexStubCryoW.CaloAlg: @local::icarus_calorimetryalgmc
# Turn on SCE corrections in the Calorimetry
# The Space Charge service will disable SCE for the "no-sce" config
recoana_mccalo_producers.pandoraCaloGausCryoE.FieldDistortion: true
recoana_mccalo_producers.pandoraCaloGausCryoE.TrackIsFieldDistortionCorrected: true
recoana_mccalo_producers.pandoraCaloGausCryoE.FieldDistortionEfield: true
recoana_mccalo_producers.pandoraCaloGausCryoW.FieldDistortion: true
recoana_mccalo_producers.pandoraCaloGausCryoW.TrackIsFieldDistortionCorrected: true
recoana_mccalo_producers.pandoraCaloGausCryoW.FieldDistortionEfield: true
recoana_datacalo_producers: {
pandoraCaloGausCryoE: @local::standard_gnocchicaloicarus
pandoraCaloGausCryoW: @local::standard_gnocchicaloicarus
vertexChargeCryoE: @local::vertex_charge_icarus_cryoE
vertexChargeCryoW: @local::vertex_charge_icarus_cryoW
vertexStubCryoE: @local::vertex_stub_icarus_cryoE
vertexStubCryoW: @local::vertex_stub_icarus_cryoW
}
# Overwrite Labels
recoana_datacalo_producers.pandoraCaloGausCryoE.TrackModuleLabel: "pandoraTrackGausCryoE"
recoana_datacalo_producers.pandoraCaloGausCryoW.TrackModuleLabel: "pandoraTrackGausCryoW"
# Setup CaloAlg for VertexCharge
recoana_datacalo_producers.vertexChargeCryoE.CaloAlg: @local::icarus_calorimetryalgdata
recoana_datacalo_producers.vertexChargeCryoW.CaloAlg: @local::icarus_calorimetryalgdata
recoana_datacalo_producers.vertexStubCryoE.CaloAlg: @local::icarus_calorimetryalgdata
recoana_datacalo_producers.vertexStubCryoW.CaloAlg: @local::icarus_calorimetryalgdata
recoana_datacalo_producers.vertexChargeCryoE.NormTools: @local::icarus_calonormtools
recoana_datacalo_producers.vertexChargeCryoW.NormTools: @local::icarus_calonormtools
recoana_datacalo_producers.vertexStubCryoE.NormTools: @local::icarus_calonormtools
recoana_datacalo_producers.vertexStubCryoW.NormTools: @local::icarus_calonormtools
# Producers for making analysis level products
recoana_caf_preprocess_producers: {
mcreco: @local::standard_mcreco
pandoraTrackMCSCryoE: @local::mcs_sbn
pandoraTrackMCSCryoW: @local::mcs_sbn
pandoraTrackRangeCryoE: @local::range_sbn
pandoraTrackRangeCryoW: @local::range_sbn
pandoraPidGausCryoE: @local::icarus_chi2pid
pandoraPidGausCryoW: @local::icarus_chi2pid
ShowerCosmicDistCryoE: @local::showerCosmicDist_sbn
ShowerCosmicDistCryoW: @local::showerCosmicDist_sbn
rns: { module_type: "RandomNumberSaver" }
genieweight: @local::sbn_eventweight_genie
systtools: @local::sbn_systtools
fluxweight: @local::sbn_eventweight_flux
}
# Overwrite labels
recoana_caf_preprocess_producers.pandoraTrackMCSCryoE.TrackLabel: pandoraTrackGausCryoE
recoana_caf_preprocess_producers.pandoraTrackMCSCryoW.TrackLabel: pandoraTrackGausCryoW
recoana_caf_preprocess_producers.pandoraTrackRangeCryoE.TrackLabel: pandoraTrackGausCryoE
recoana_caf_preprocess_producers.pandoraTrackRangeCryoW.TrackLabel: pandoraTrackGausCryoW
recoana_caf_preprocess_producers.ShowerCosmicDistCryoE.ShowerLabel: SBNShowerGausCryoE
recoana_caf_preprocess_producers.ShowerCosmicDistCryoW.ShowerLabel: SBNShowerGausCryoW
recoana_caf_preprocess_producers.ShowerCosmicDistCryoE.PandoraLabel: pandoraGausCryoE
recoana_caf_preprocess_producers.ShowerCosmicDistCryoW.PandoraLabel: pandoraGausCryoW
recoana_caf_preprocess_producers.pandoraPidGausCryoE.TrackModuleLabel: "pandoraTrackGausCryoE"
recoana_caf_preprocess_producers.pandoraPidGausCryoE.CalorimetryModuleLabel: "pandoraCaloGausCryoE"
recoana_caf_preprocess_producers.pandoraPidGausCryoW.TrackModuleLabel: "pandoraTrackGausCryoW"
recoana_caf_preprocess_producers.pandoraPidGausCryoW.CalorimetryModuleLabel: "pandoraCaloGausCryoW"
recoana_caf_preprocess_producers.genieweight.weight_functions: @local::recoana_caf_preprocess_producers.genieweight.weight_functions_genie
recoana_caf_preprocess_producers.fluxweight.weight_functions: @local::recoana_caf_preprocess_producers.fluxweight.weight_functions_flux
# Producers for making SCE products
recoana_sce_producers: {
pandoraGausSCECryoE: @local::scecorrection
pandoraGausSCECryoW: @local::scecorrection
pandoraTrackGausSCECryoE: @local::icarus_pandoraTrackCreation
pandoraTrackGausSCECryoW: @local::icarus_pandoraTrackCreation
SBNShowerGausSCECryoE: @local::icarus_pandorashower_3dTraj
SBNShowerGausSCECryoW: @local::icarus_pandorashower_3dTraj
# Calo on SCE stuff
pandoraCaloGausSCECryoE: @local::recoana_mccalo_producers.pandoraCaloGausCryoE
pandoraCaloGausSCECryoW: @local::recoana_mccalo_producers.pandoraCaloGausCryoW
pandoraPidGausSCECryoE: @local::recoana_caf_preprocess_producers.pandoraPidGausCryoE
pandoraPidGausSCECryoW: @local::recoana_caf_preprocess_producers.pandoraPidGausCryoW
# Analysis on SCE stuff
fmatchSCECryoE: @local::transfer_flashmatch_sce_icarus_cryoE
fmatchSCECryoW: @local::transfer_flashmatch_sce_icarus_cryoW
fmatchopSCECryoE: @local::transfer_flashmatch_sce_icarus_cryoE_op
fmatchopSCECryoW: @local::transfer_flashmatch_sce_icarus_cryoW_op
pandoraTrackSCEMCSCryoE: @local::recoana_caf_preprocess_producers.pandoraTrackMCSCryoE
pandoraTrackSCEMCSCryoW: @local::recoana_caf_preprocess_producers.pandoraTrackMCSCryoW
pandoraTrackSCERangeCryoE: @local::recoana_caf_preprocess_producers.pandoraTrackRangeCryoE
pandoraTrackSCERangeCryoW: @local::recoana_caf_preprocess_producers.pandoraTrackRangeCryoW
vertexChargeCryoE: @local::vertex_charge_icarus_sce_cryoE
vertexChargeCryoW: @local::vertex_charge_icarus_sce_cryoW
vertexStubCryoE: @local::vertex_stub_icarus_sce_cryoE
vertexStubCryoW: @local::vertex_stub_icarus_sce_cryoW
}
# Overwrite labels
recoana_sce_producers.pandoraGausSCECryoE.PFPLabel: pandoraGausCryoE
recoana_sce_producers.pandoraGausSCECryoE.TrackLabel: pandoraTrackGausCryoE
# Don't rely on T0's when doing SpaceCharge corrections
recoana_sce_producers.pandoraGausSCECryoE.T0Labels: []
recoana_sce_producers.pandoraGausSCECryoE.T0LabelsCorrectT0: []
recoana_sce_producers.pandoraGausSCECryoE.CorrectNoT0Tag: true
recoana_sce_producers.pandoraGausSCECryoW.PFPLabel: pandoraGausCryoW
recoana_sce_producers.pandoraGausSCECryoW.TrackLabel: pandoraTrackGausCryoW
# Don't rely on T0's when doing SpaceCharge corrections
recoana_sce_producers.pandoraGausSCECryoW.T0Labels: []
recoana_sce_producers.pandoraGausSCECryoW.T0LabelsCorrectT0: []
recoana_sce_producers.pandoraGausSCECryoW.CorrectNoT0Tag: true
recoana_sce_producers.pandoraTrackGausSCECryoE.PFParticleLabel: pandoraGausSCECryoE
recoana_sce_producers.pandoraTrackGausSCECryoW.PFParticleLabel: pandoraGausSCECryoW
recoana_sce_producers.pandoraTrackGausSCECryoE.UseAllParticles: true
recoana_sce_producers.pandoraTrackGausSCECryoW.UseAllParticles: true
recoana_sce_producers.SBNShowerGausSCECryoE.PFParticleLabel: "pandoraGausSCECryoE"
recoana_sce_producers.SBNShowerGausSCECryoE.UseAllParticles: true
recoana_sce_producers.SBNShowerGausSCECryoE.ShowerFinderTools[7].SCECorrectEField: true
recoana_sce_producers.SBNShowerGausSCECryoE.ShowerFinderTools[7].SCECorrectPitch: true
recoana_sce_producers.SBNShowerGausSCECryoE.ShowerFinderTools[7].SCEInputCorrected: true
recoana_sce_producers.SBNShowerGausSCECryoW.PFParticleLabel: "pandoraGausSCECryoW"
recoana_sce_producers.SBNShowerGausSCECryoW.UseAllParticles: true
recoana_sce_producers.SBNShowerGausSCECryoW.ShowerFinderTools[7].SCECorrectEField: true
recoana_sce_producers.SBNShowerGausSCECryoW.ShowerFinderTools[7].SCECorrectPitch: true
recoana_sce_producers.SBNShowerGausSCECryoW.ShowerFinderTools[7].SCEInputCorrected: true
recoana_sce_producers.pandoraCaloGausSCECryoE.TrackModuleLabel: "pandoraTrackGausSCECryoE"
recoana_sce_producers.pandoraCaloGausSCECryoW.TrackModuleLabel: "pandoraTrackGausSCECryoW"
recoana_sce_producers.pandoraPidGausSCECryoE.TrackModuleLabel: "pandoraTrackGausSCECryoE"
recoana_sce_producers.pandoraPidGausSCECryoE.CalorimetryModuleLabel: "pandoraCaloGausSCECryoE"
recoana_sce_producers.pandoraPidGausSCECryoW.TrackModuleLabel: "pandoraTrackGausSCECryoW"
recoana_sce_producers.pandoraPidGausSCECryoW.CalorimetryModuleLabel: "pandoraCaloGausSCECryoW"
recoana_sce_producers.pandoraTrackSCEMCSCryoE.TrackLabel: pandoraTrackGausSCECryoE
recoana_sce_producers.pandoraTrackSCEMCSCryoW.TrackLabel: pandoraTrackGausSCECryoW
recoana_sce_producers.pandoraTrackSCERangeCryoE.TrackLabel: pandoraTrackGausSCECryoE
recoana_sce_producers.pandoraTrackSCERangeCryoW.TrackLabel: pandoraTrackGausSCECryoW
# Setup CaloAlg for VertexCharge
recoana_sce_producers.vertexChargeCryoE.CaloAlg: @local::icarus_calorimetryalgmc
recoana_sce_producers.vertexChargeCryoW.CaloAlg: @local::icarus_calorimetryalgmc
recoana_sce_producers.vertexStubCryoE.CaloAlg: @local::icarus_calorimetryalgmc
recoana_sce_producers.vertexStubCryoW.CaloAlg: @local::icarus_calorimetryalgmc
# All the producers together
caf_preprocess_producers: {
@table::recoana_mccalo_producers
@table::recoana_caf_preprocess_producers
}
caf_preprocess_data_producers: {
@table::recoana_datacalo_producers
@table::recoana_caf_preprocess_producers
}
caf_preprocess_sce_producers: {
@table::recoana_mccalo_producers
@table::recoana_caf_preprocess_producers
@table::recoana_sce_producers
}
# Sequences
caf_preprocess_sequence: [ mcreco,
# Calorimetry
pandoraCaloGausCryoE, pandoraCaloGausCryoW,
pandoraPidGausCryoE, pandoraPidGausCryoW,
# Low Energy Proton Reco
vertexChargeCryoE, vertexChargeCryoW, vertexStubCryoE, vertexStubCryoW,
# Track Momentum Estimation
pandoraTrackMCSCryoE, pandoraTrackMCSCryoW,
pandoraTrackRangeCryoE, pandoraTrackRangeCryoW,
# TODO: rns??
# Shower
ShowerCosmicDistCryoE, ShowerCosmicDistCryoW
]
caf_preprocess_data_sequence: [
# Calorimetry
pandoraCaloGausCryoE, pandoraCaloGausCryoW,
pandoraPidGausCryoE, pandoraPidGausCryoW,
# Low Energy Proton Reco
vertexChargeCryoE, vertexChargeCryoW, vertexStubCryoE, vertexStubCryoW,
# Track Momentum Estimation
pandoraTrackMCSCryoE, pandoraTrackMCSCryoW,
pandoraTrackRangeCryoE, pandoraTrackRangeCryoW,
# TODO: rns??
# Shower
ShowerCosmicDistCryoE, ShowerCosmicDistCryoW
]
caf_preprocess_evtw_sequence: [@sequence::caf_preprocess_sequence, rns, genieweight, fluxweight]
caf_preprocess_sce_sequence: [ mcreco,
# Run the SCE correction
pandoraGausSCECryoE, pandoraGausSCECryoW,
# Then remake tracks
pandoraTrackGausSCECryoE, pandoraTrackGausSCECryoW,
# Then showers
SBNShowerGausSCECryoE, SBNShowerGausSCECryoW,
# Run calorimetry w/ SCE
pandoraCaloGausSCECryoE, pandoraCaloGausSCECryoW,
pandoraPidGausSCECryoE, pandoraPidGausSCECryoW,
# SCE enabled Proton Reco
vertexChargeCryoE, vertexChargeCryoW, vertexStubCryoE, vertexStubCryoW,
# Run Track momentum calcs w/ SCE
pandoraTrackSCEMCSCryoE, pandoraTrackSCEMCSCryoW,
pandoraTrackSCERangeCryoE, pandoraTrackSCERangeCryoW,
# Transfer flash-match T0 to the space-charge corrected slice
fmatchSCECryoE, fmatchSCECryoW, fmatchopSCECryoE, fmatchopSCECryoW
# TODO: rns??
]
caf_preprocess_sce_evtw_sequence: [@sequence::caf_preprocess_sce_sequence, rns, genieweight, fluxweight]
# CAFMaker config
cafmaker: @local::standard_cafmaker
# Set the labels to ICARUS
cafmaker.PandoraTagSuffixes: ["CryoE", "CryoW"]
cafmaker.FlashMatchOpDetSuffixes: ["", "op"]
cafmaker.G4Label: "largeant"
cafmaker.GenLabel: "generator"
cafmaker.PFParticleLabel: "pandoraGaus"
cafmaker.StubLabel: "vertexStub"
cafmaker.FlashMatchLabel: "fmatch"
cafmaker.HitLabel: "cluster3D"
cafmaker.RecoTrackLabel: "pandoraTrackGaus"
cafmaker.RecoShowerLabel: "SBNShowerGaus"
cafmaker.ShowerRazzleLabel: "" # unavailable
cafmaker.RecoShowerSelectionLabel: "" # unavailable
cafmaker.ShowerCosmicDistLabel: "ShowerCosmicDist"
cafmaker.TrackCaloLabel: "pandoraCaloGaus"
cafmaker.TrackChi2PidLabel: "pandoraPidGaus"
cafmaker.TrackScatterClosestApproachLabel: "" # unavailable
cafmaker.TrackStoppingChi2FitLabel: "" # unavailable
cafmaker.TrackDazzleLabel: "" # unavailable
cafmaker.CRTHitMatchLabel: "CRTT0Tagging"
cafmaker.CRTHitMatchInfoLabel: "CRTT0Tagging"
cafmaker.CRTTrackMatchLabel: "" # unavailable
cafmaker.TrackMCSLabel: "pandoraTrackMCS"
cafmaker.TrackRangeLabel: "pandoraTrackRange"
cafmaker.CRTHitLabel: "crthit"
cafmaker.CRTTrackLabel: "crttrack"
cafmaker.OpFlashLabel: "opflash"
# cafmaker.TriggerLabel: "daqTrigger" # see also https://github.com/SBNSoftware/icaruscode/issues/556
cafmaker.TriggerLabel: "emuTrigger"
cafmaker.UnshiftedTriggerLabel: "emuTriggerUnshifted"
cafmaker.FlashTrigLabel: "" # unavailable
cafmaker.SimChannelLabel: "largeant"
cafmaker.SystWeightLabels: ["genieweight", "fluxweight"]
cafmaker.SaveGENIEEventRecord: true # save GENIE event record by default. Turn this off for data cafmaker fcl
cafmaker.TPCPMTBarycenterMatchLabel: "tpcpmtbarycentermatch"
cafmaker.TrackHitFillRREndCut: 30 # include entire PID region
cafmaker.NuGraphSlicesLabel: "NCCSlices"
cafmaker.NuGraphFilterLabel: "NGMultiSlice:filter"
cafmaker.NuGraphSemanticLabel: "NGMultiSlice:semantic"
# Add CAFMaker to the list of producers
caf_preprocess_producers.cafmaker: @local::cafmaker
caf_preprocess_data_producers.cafmaker: @local::cafmaker
END_PROLOG