All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cafmaker_defs.fcl
Go to the documentation of this file.
1 #include "CAFMaker.fcl"
2 
5 
9 #include "mccheatermodules.fcl"
10 
11 #include "calorimetry_icarus.fcl"
12 #include "particleid_icarus.fcl"
13 
15 #include "eventweight_flux_sbn.fcl"
16 #include "mcreco.fcl"
17 #include "mcsproducer.fcl"
18 #include "rangeproducer.fcl"
21 #include "scecorrections.fcl"
24 #include "sbn_stub.fcl"
26 
27 BEGIN_PROLOG
28 
29 # Producers for making Calo objects
31  pandoraCaloGausCryoE: @local::icarus_gnewcalomc
32  pandoraCaloGausCryoW: @local::icarus_gnewcalomc
33 
34  vertexChargeCryoE: @local::vertex_charge_icarus_cryoE
35  vertexChargeCryoW: @local::vertex_charge_icarus_cryoW
36 
37  vertexStubCryoE: @local::vertex_stub_icarus_cryoE
38  vertexStubCryoW: @local::vertex_stub_icarus_cryoW
39 }
40 
41 # Overwrite Labels
42 recoana_mccalo_producers.pandoraCaloGausCryoE.TrackModuleLabel: "pandoraTrackGausCryoE"
43 recoana_mccalo_producers.pandoraCaloGausCryoW.TrackModuleLabel: "pandoraTrackGausCryoW"
44 
45 # Setup CaloAlg for VertexCharge
46 recoana_mccalo_producers.vertexChargeCryoE.CaloAlg: @local::icarus_calorimetryalgmc
47 recoana_mccalo_producers.vertexChargeCryoW.CaloAlg: @local::icarus_calorimetryalgmc
48 recoana_mccalo_producers.vertexStubCryoE.CaloAlg: @local::icarus_calorimetryalgmc
49 recoana_mccalo_producers.vertexStubCryoW.CaloAlg: @local::icarus_calorimetryalgmc
50 
51 # Turn on SCE corrections in the Calorimetry
52 # The Space Charge service will disable SCE for the "no-sce" config
53 recoana_mccalo_producers.pandoraCaloGausCryoE.FieldDistortion: true
54 recoana_mccalo_producers.pandoraCaloGausCryoE.TrackIsFieldDistortionCorrected: true
55 recoana_mccalo_producers.pandoraCaloGausCryoE.FieldDistortionEfield: true
56 recoana_mccalo_producers.pandoraCaloGausCryoW.FieldDistortion: true
57 recoana_mccalo_producers.pandoraCaloGausCryoW.TrackIsFieldDistortionCorrected: true
58 recoana_mccalo_producers.pandoraCaloGausCryoW.FieldDistortionEfield: true
59 
60 recoana_datacalo_producers: {
61  pandoraCaloGausCryoE: @local::standard_gnocchicaloicarus
62  pandoraCaloGausCryoW: @local::standard_gnocchicaloicarus
63 
64  vertexChargeCryoE: @local::vertex_charge_icarus_cryoE
65  vertexChargeCryoW: @local::vertex_charge_icarus_cryoW
66 
67  vertexStubCryoE: @local::vertex_stub_icarus_cryoE
68  vertexStubCryoW: @local::vertex_stub_icarus_cryoW
69 }
70 
71 # Overwrite Labels
72 recoana_datacalo_producers.pandoraCaloGausCryoE.TrackModuleLabel: "pandoraTrackGausCryoE"
73 recoana_datacalo_producers.pandoraCaloGausCryoW.TrackModuleLabel: "pandoraTrackGausCryoW"
74 
75 # Setup CaloAlg for VertexCharge
76 recoana_datacalo_producers.vertexChargeCryoE.CaloAlg: @local::icarus_calorimetryalgdata
77 recoana_datacalo_producers.vertexChargeCryoW.CaloAlg: @local::icarus_calorimetryalgdata
78 recoana_datacalo_producers.vertexStubCryoE.CaloAlg: @local::icarus_calorimetryalgdata
79 recoana_datacalo_producers.vertexStubCryoW.CaloAlg: @local::icarus_calorimetryalgdata
80 recoana_datacalo_producers.vertexChargeCryoE.NormTools: @local::icarus_calonormtools
81 recoana_datacalo_producers.vertexChargeCryoW.NormTools: @local::icarus_calonormtools
82 recoana_datacalo_producers.vertexStubCryoE.NormTools: @local::icarus_calonormtools
83 recoana_datacalo_producers.vertexStubCryoW.NormTools: @local::icarus_calonormtools
84 
85 # Producers for making analysis level products
86 recoana_caf_preprocess_producers: {
87  mcreco: @local::standard_mcreco
88 
89  pandoraTrackMCSCryoE: @local::mcs_sbn
90  pandoraTrackMCSCryoW: @local::mcs_sbn
91 
92  pandoraTrackRangeCryoE: @local::range_sbn
93  pandoraTrackRangeCryoW: @local::range_sbn
94 
95  pandoraPidGausCryoE: @local::icarus_chi2pid
96  pandoraPidGausCryoW: @local::icarus_chi2pid
97 
98  crtconvhit: @local::crthitconverter_icarus
99  rns: { module_type: "RandomNumberSaver" }
101  fluxweight: @local::sbn_eventweight_flux
102 }
103 
104 # Overwrite labels
105 recoana_caf_preprocess_producers.pandoraTrackMCSCryoE.TrackLabel: pandoraTrackGausCryoE
106 recoana_caf_preprocess_producers.pandoraTrackMCSCryoW.TrackLabel: pandoraTrackGausCryoW
107 recoana_caf_preprocess_producers.pandoraTrackRangeCryoE.TrackLabel: pandoraTrackGausCryoE
108 recoana_caf_preprocess_producers.pandoraTrackRangeCryoW.TrackLabel: pandoraTrackGausCryoW
109 
110 recoana_caf_preprocess_producers.pandoraPidGausCryoE.TrackModuleLabel: "pandoraTrackGausCryoE"
111 recoana_caf_preprocess_producers.pandoraPidGausCryoE.CalorimetryModuleLabel: "pandoraCaloGausCryoE"
112 recoana_caf_preprocess_producers.pandoraPidGausCryoW.TrackModuleLabel: "pandoraTrackGausCryoW"
113 recoana_caf_preprocess_producers.pandoraPidGausCryoW.CalorimetryModuleLabel: "pandoraCaloGausCryoW"
114 
115 recoana_caf_preprocess_producers.genieweight.weight_functions: @local::recoana_caf_preprocess_producers.genieweight.weight_functions_genie
116 recoana_caf_preprocess_producers.fluxweight.weight_functions: @local::recoana_caf_preprocess_producers.fluxweight.weight_functions_flux
117 
118 # Producers for making SCE products
119 recoana_sce_producers: {
122  pandoraTrackGausSCECryoE: @local::icarus_pandoraTrackCreation
123  pandoraTrackGausSCECryoW: @local::icarus_pandoraTrackCreation
124  SBNShowerGausSCECryoE: @local::icarus_pandorashower_3dTraj
125  SBNShowerGausSCECryoW: @local::icarus_pandorashower_3dTraj
126 
127  # Calo on SCE stuff
130 
131  pandoraPidGausSCECryoE: @local::recoana_caf_preprocess_producers.pandoraPidGausCryoE
132  pandoraPidGausSCECryoW: @local::recoana_caf_preprocess_producers.pandoraPidGausCryoW
133 
134  # Analysis on SCE stuff
135  fmatchSCECryoE: @local::transfer_flashmatch_sce_icarus_cryoE
136  fmatchSCECryoW: @local::transfer_flashmatch_sce_icarus_cryoW
137 
138  pandoraTrackSCEMCSCryoE: @local::recoana_caf_preprocess_producers.pandoraTrackMCSCryoE
139  pandoraTrackSCEMCSCryoW: @local::recoana_caf_preprocess_producers.pandoraTrackMCSCryoW
140 
141  pandoraTrackSCERangeCryoE: @local::recoana_caf_preprocess_producers.pandoraTrackRangeCryoE
142  pandoraTrackSCERangeCryoW: @local::recoana_caf_preprocess_producers.pandoraTrackRangeCryoW
143 
144  vertexChargeCryoE: @local::vertex_charge_icarus_sce_cryoE
145  vertexChargeCryoW: @local::vertex_charge_icarus_sce_cryoW
146  vertexStubCryoE: @local::vertex_stub_icarus_sce_cryoE
147  vertexStubCryoW: @local::vertex_stub_icarus_sce_cryoW
148 }
149 
150 # Overwrite labels
151 
152 recoana_sce_producers.pandoraGausSCECryoE.PFPLabel: pandoraGausCryoE
153 recoana_sce_producers.pandoraGausSCECryoE.TrackLabel: pandoraTrackGausCryoE
154 # Don't rely on T0's when doing SpaceCharge corrections
155 recoana_sce_producers.pandoraGausSCECryoE.T0Labels: []
156 recoana_sce_producers.pandoraGausSCECryoE.T0LabelsCorrectT0: []
157 recoana_sce_producers.pandoraGausSCECryoE.CorrectNoT0Tag: true
158 
159 recoana_sce_producers.pandoraGausSCECryoW.PFPLabel: pandoraGausCryoW
160 recoana_sce_producers.pandoraGausSCECryoW.TrackLabel: pandoraTrackGausCryoW
161 # Don't rely on T0's when doing SpaceCharge corrections
162 recoana_sce_producers.pandoraGausSCECryoW.T0Labels: []
163 recoana_sce_producers.pandoraGausSCECryoW.T0LabelsCorrectT0: []
164 recoana_sce_producers.pandoraGausSCECryoW.CorrectNoT0Tag: true
165 
166 recoana_sce_producers.pandoraTrackGausSCECryoE.PFParticleLabel: pandoraGausSCECryoE
167 recoana_sce_producers.pandoraTrackGausSCECryoW.PFParticleLabel: pandoraGausSCECryoW
168 
169 recoana_sce_producers.SBNShowerGausSCECryoE.PFParticleLabel: "pandoraGausSCECryoE"
170 recoana_sce_producers.SBNShowerGausSCECryoE.ShowerFinderTools[7].SCECorrectEField: true
171 recoana_sce_producers.SBNShowerGausSCECryoE.ShowerFinderTools[7].SCECorrectPitch: true
172 recoana_sce_producers.SBNShowerGausSCECryoE.ShowerFinderTools[7].SCEInputCorrected: true
173 recoana_sce_producers.SBNShowerGausSCECryoW.PFParticleLabel: "pandoraGausSCECryoW"
174 recoana_sce_producers.SBNShowerGausSCECryoW.ShowerFinderTools[7].SCECorrectEField: true
175 recoana_sce_producers.SBNShowerGausSCECryoW.ShowerFinderTools[7].SCECorrectPitch: true
176 recoana_sce_producers.SBNShowerGausSCECryoW.ShowerFinderTools[7].SCEInputCorrected: true
177 
178 recoana_sce_producers.pandoraCaloGausSCECryoE.TrackModuleLabel: "pandoraTrackGausSCECryoE"
179 recoana_sce_producers.pandoraCaloGausSCECryoW.TrackModuleLabel: "pandoraTrackGausSCECryoW"
180 
181 recoana_sce_producers.pandoraPidGausSCECryoE.TrackModuleLabel: "pandoraTrackGausSCECryoE"
182 recoana_sce_producers.pandoraPidGausSCECryoE.CalorimetryModuleLabel: "pandoraCaloGausSCECryoE"
183 recoana_sce_producers.pandoraPidGausSCECryoW.TrackModuleLabel: "pandoraTrackGausSCECryoW"
184 recoana_sce_producers.pandoraPidGausSCECryoW.CalorimetryModuleLabel: "pandoraCaloGausSCECryoW"
185 
186 recoana_sce_producers.pandoraTrackSCEMCSCryoE.TrackLabel: pandoraTrackGausSCECryoE
187 recoana_sce_producers.pandoraTrackSCEMCSCryoW.TrackLabel: pandoraTrackGausSCECryoW
188 recoana_sce_producers.pandoraTrackSCERangeCryoE.TrackLabel: pandoraTrackGausSCECryoE
189 recoana_sce_producers.pandoraTrackSCERangeCryoW.TrackLabel: pandoraTrackGausSCECryoW
190 
191 # Setup CaloAlg for VertexCharge
192 recoana_sce_producers.vertexChargeCryoE.CaloAlg: @local::icarus_calorimetryalgmc
193 recoana_sce_producers.vertexChargeCryoW.CaloAlg: @local::icarus_calorimetryalgmc
194 recoana_sce_producers.vertexStubCryoE.CaloAlg: @local::icarus_calorimetryalgmc
195 recoana_sce_producers.vertexStubCryoW.CaloAlg: @local::icarus_calorimetryalgmc
196 
197 # All the producers together
198 caf_preprocess_producers: {
200  @table::recoana_caf_preprocess_producers
201 }
202 
203 caf_preprocess_data_producers: {
204  @table::recoana_datacalo_producers
205  @table::recoana_caf_preprocess_producers
206 }
207 
208 caf_preprocess_sce_producers: {
210  @table::recoana_caf_preprocess_producers
211  @table::recoana_sce_producers
212 }
213 
214 # Sequences
215 caf_preprocess_sequence: [ mcreco,
216  # Calorimetry
219  # Low Energy Proton Reco
221  # Track Momentum Estimation
223  pandoraTrackRangeCryoE, pandoraTrackRangeCryoW
224  # TODO: rns??
225  ]
226 
228  # Calorimetry
231  # Low Energy Proton Reco
233  # Track Momentum Estimation
235  pandoraTrackRangeCryoE, pandoraTrackRangeCryoW
236  # TODO: rns??
237  ]
238 
239 caf_preprocess_evtw_sequence: [@sequence::caf_preprocess_sequence, rns, genieweight, fluxweight]
240 
242  # Run the SCE correction
244  # Then remake tracks
246  # Then showers
248  # Run calorimetry w/ SCE
251  # SCE enabled Proton Reco
253  # Run Track momentum calcs w/ SCE
256  # Transfer flash-match T0 to the space-charge corrected slice
257  fmatchSCECryoE, fmatchSCECryoW
258  # TODO: rns??
259 ]
260 
262 
263 # CAFMaker config
265 
266 # Set the labels to ICARUS
267 cafmaker.PandoraTagSuffixes: ["CryoE", "CryoW"]
268 cafmaker.G4Label: "largeant"
269 cafmaker.GenLabel: "generator"
270 cafmaker.PFParticleLabel: "pandoraGaus"
271 cafmaker.StubLabel: "vertexStub"
272 cafmaker.FlashMatchLabel: "fmatch"
273 cafmaker.HitLabel: "cluster3D"
274 cafmaker.RecoTrackLabel: "pandoraTrackGaus"
275 cafmaker.RecoShowerLabel: "SBNShowerGaus"
276 cafmaker.ShowerRazzleLabel: "" # unavailable
277 cafmaker.RecoShowerSelectionLabel: "" # unavailable
278 cafmaker.ShowerCosmicDistLabel: "" # unavailable
279 cafmaker.TrackCaloLabel: "pandoraCaloGaus"
280 cafmaker.TrackChi2PidLabel: "pandoraPidGaus"
281 cafmaker.TrackScatterClosestApproachLabel: "" # unavailable
282 cafmaker.TrackStoppingChi2FitLabel: "" # unavailable
283 cafmaker.TrackDazzleLabel: "" # unavailable
284 cafmaker.CRTHitMatchLabel: "" # unavailable
285 cafmaker.CRTTrackMatchLabel: "" # unavailable
286 cafmaker.TrackMCSLabel: "pandoraTrackMCS"
287 cafmaker.TrackRangeLabel: "pandoraTrackRange"
288 cafmaker.CRTHitLabel: "crthit"
289 cafmaker.CRTTrackLabel: "crttrack"
290 cafmaker.OpFlashLabel: "opflash"
291 cafmaker.TriggerLabel: "daqTrigger"
292 cafmaker.FlashTrigLabel: "" # unavailable
293 cafmaker.SimChannelLabel: "largeant"
294 cafmaker.SystWeightLabels: ["genieweight", "fluxweight"]
295 
296 # Add CAFMaker to the list of producers
297 caf_preprocess_producers.cafmaker: @local::cafmaker
298 caf_preprocess_data_producers.cafmaker: @local::cafmaker
299 
300 END_PROLOG
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight fmatchSCECryoW fluxweight cafmaker
BEGIN_PROLOG pandoraPidGausCryoE
BEGIN_PROLOG pandoraCaloGausCryoW
BEGIN_PROLOG scecorrection
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW rns
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW caf_preprocess_evtw_sequence
BEGIN_PROLOG opflashCryoE TPCHitFilterCryoW TPCHitFilterCryoE sequence::icarus_filter_cluster3DCryoE SBNShowerGausCryoW pandoraTrackGausCryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight SBNShowerGausSCECryoE
BEGIN_PROLOG vertexChargeCryoE
BEGIN_PROLOG sbn_eventweight_genie
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraTrackGausSCECryoW
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW genieweight
BEGIN_PROLOG pandoraTrackRangeCryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraTrackSCERangeCryoW
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraTrackSCEMCSCryoW
process_name mcreco
BEGIN_PROLOG pandoraPidGausCryoW
BEGIN_PROLOG standard_cafmaker
Definition: CAFMaker.fcl:17
BEGIN_PROLOG recoana_mccalo_producers
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight fmatchSCECryoW caf_preprocess_sce_evtw_sequence
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraTrackGausSCECryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraGausSCECryoE
BEGIN_PROLOG pandoraTrackMCSCryoW
BEGIN_PROLOG icarus_calorimetryalgdata
BEGIN_PROLOG vertexStubCryoW
BEGIN_PROLOG opflashCryoE TPCHitFilterCryoW TPCHitFilterCryoE sequence::icarus_filter_cluster3DCryoE pandoraTrackGausCryoW
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraCaloGausSCECryoW
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight SBNShowerGausSCECryoW
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight caf_preprocess_sce_sequence
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 module_type
BEGIN_PROLOG pandoraTrackMCSCryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraCaloGausSCECryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraGausSCECryoW
physics producers fluxweight
BEGIN_PROLOG pandoraTrackRangeCryoW caf_preprocess_data_sequence
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight fmatchSCECryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraPidGausSCECryoW
BEGIN_PROLOG vertexStubCryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraPidGausSCECryoE
BEGIN_PROLOG vertexChargeCryoW
BEGIN_PROLOG pandoraCaloGausCryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraTrackSCERangeCryoE
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW fluxweight pandoraTrackSCEMCSCryoE