All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
genie_sbnd.fcl
Go to the documentation of this file.
1 #
2 # File: genie_sbnd.fcl
3 # Purpose: Configuration of GENIE LArSoft module (GENIEGen) for SBND
4 #
5 # Description:
6 #
7 # Configurations in here are designed to be included in a FHiCL job
8 # configuration.
9 # This file includes two sections:
10 # * flux: configuration of flux files, used in the configuration of GENIE module
11 # * GENIE: configuration of the GENIEGen module, to be included in the job
12 #
13 #
14 
15 #include "genie.fcl"
16 
17 BEGIN_PROLOG
18 
19 ################################################################################
20 ### Flux file configuration
21 ###
22 #
23 # These are pre-cooked flux file configurations for `GenieGen`. Use them in its
24 # configuration as:
25 #
26 # physics: {
27 # producers: {
28 # generator: {
29 # module_type: GenieGen
30 # # ...
31 # @table: bnb_flux_nu
32 # }
33 # }
34 # }
35 #
36 # or, if needed to override an existing configuration, with the less
37 # straightforward:
38 #
39 # physics.producers.generator: {
40 # @table::physics.producers.generator
41 # @table: bnb_flux_nu
42 # }
43 #
44 # Simple configurations "_testN" may be provided, which explicitly select the
45 # flux files to be picked. This is useful in tests where randomness is
46 # deleterious.
47 #
48 
49 #
50 # Booster Neutrino Beam, neutrino mode, configuration B (v1)
51 #
52 sbnd_flux_bnb_nu_Bv1: {
53  FluxType: "simple_flux"
54  FluxCopyMethod: "DIRECT"
55  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/gsimple/v2_8_6d/configB-v1/april07/neutrinoMode"
56  FluxFiles: [ "gsimple_configB-v1_5e7POT*.root" ]
57 }
58 
59 sbnd_flux_bnb_nu_Bv1_test1: {
60  @table::sbnd_flux_bnb_nu_Bv1
61  FluxFiles: [ "gsimple_configB-v1_5e7POT_2018_02018.root" ]
62 }
63 
64 sbnd_flux_bnb_nu_Bv1_hist: {
65  @table::sbnd_flux_bnb_nu_Bv1
66  FluxType: "histogram"
67 }
68 
69 #
70 # Booster Neutrino Beam, neutrino mode, configuration C (v1)
71 #
72 sbnd_flux_bnb_nu_Cv1: {
73  FluxType: "simple_flux"
74  FluxCopyMethod: "DIRECT"
75  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/gsimple/v2_8_6d/configC-v1/april07/neutrinoMode"
76  FluxFiles: [ "gsimple_configC-v1_april07_baseline*.root" ]
77 }
78 
79 sbnd_flux_bnb_nu_Cv1_test1: {
80  @table::sbnd_flux_bnb_nu_Cv1
81  FluxFiles: [ "gsimple_configC-v1_april07_baseline_2020_02020.root" ]
82 }
83 
84 #
85 # Booster Neutrino Beam, neutrino mode, configuration D (v1)
86 #
87 sbnd_flux_bnb_nu_Dv1: {
88  FluxType: "simple_flux"
89  FluxCopyMethod: "DIRECT"
90  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/BooNEtoGSimple/configD-v1/april07/neutrinoMode"
91  FluxFiles: [ "converted_beammc_sbnd*.root" ]
92 }
93 
94 sbnd_flux_bnb_nu_Dv1_test1: {
95  @table::sbnd_flux_bnb_nu_Dv1
96  FluxFiles: [ "converted_beammc_sbnd_2018.root" ]
97 }
98 
99 #
100 # Booster Neutrino Beam, neutrino mode, dirt, configuration E (v1)
101 #
102 sbnd_flux_bnb_nu_Ev1: {
103  FluxType: "simple_flux"
104  FluxCopyMethod: "DIRECT"
105  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/BooNEtoGSimple/configE-v1/april07/neutrinoMode"
106  FluxFiles: [ "converted_beammc_sbnd_dirt*.root" ]
107 }
108 
109 sbnd_flux_bnb_nu_Ev1_test1: {
110  @table::sbnd_flux_bnb_nu_Ev1
111  FluxFiles: [ "converted_beammc_sbnd_dirt_2018.root" ]
112 }
113 
114 #
115 # Booster Neutrino Beam, neutrino mode, configuration F (v1)
116 #
117 sbnd_flux_bnb_nu_Fv1: {
118  FluxType: "simple_flux"
119  FluxCopyMethod: "DIRECT"
120  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/BooNEtoGSimple/configF-v1/april07/neutrinoMode"
121  FluxFiles: [ "converted_beammc_sbnd*.root" ]
122 }
123 
124 sbnd_flux_bnb_nu_Fv1_test1: {
125  @table::sbnd_flux_bnb_nu_Fv1
126  FluxFiles: [ "converted_beammc_sbnd_v1_0993.root" ]
127 }
128 
129 #
130 # Booster Neutrino Beam, neutrino mode, dirt, configuration G (v1)
131 #
132 sbnd_flux_bnb_nu_Gv1: {
133  FluxType: "simple_flux"
134  FluxCopyMethod: "DIRECT"
135  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/BooNEtoGSimple/configG-v1/april07/neutrinoMode"
136  FluxFiles: [ "converted_beammc_sbnd_dirt_v1*.root" ]
137 }
138 
139 sbnd_flux_bnb_nu_Gv1_test1: {
140  @table::sbnd_flux_bnb_nu_Gv1
141  FluxFiles: [ "converted_beammc_sbnd_dirt_v1_0004.root" ]
142 }
143 
144 
145 #
146 # Booster Neutrino Beam, neutrino mode, configuration H (v1)
147 #
148 sbnd_flux_bnb_nu_Hv1: {
149  FluxType: "simple_flux"
150  FluxCopyMethod: "DIRECT"
151  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/BooNEtoGSimple/configH-v1/march2021/neutrinoMode"
152  FluxFiles: [ "gsimple_bnb_neutrino_sbnd_v2_20210322_*.root" ]
153 }
154 
155 sbnd_flux_bnb_nu_Hv1_test1: {
156  @table::sbnd_flux_bnb_nu_Hv1
157  FluxFiles: [ "gsimple_bnb_neutrino_sbnd_v2_20210322_4994.root" ]
158 }
159 
160 
161 #
162 # Booster Neutrino Beam, neutrino mode, configuration I (v1)
163 #
164 sbnd_flux_bnb_nu_Iv1: {
165  FluxType: "simple_flux"
166  FluxCopyMethod: "DIRECT"
167  FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/BooNEtoGSimple/configI-v1/october2021/neutrinoMode"
168  FluxFiles: [ "gsimple_bnb_neutrino_sbnd_dirt_v2_*.root" ]
169 }
170 
171 sbnd_flux_bnb_nu_Iv1_test1: {
172  @table::sbnd_flux_bnb_nu_Iv1
173  FluxFiles: [ "gsimple_bnb_neutrino_sbnd_dirt_v2_0497.root" ]
174 }
175 
176 
177 
178 
179 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
180 #
181 # Booster Neutrino Beam, neutrino mode, "default" configuration
182 #
183 sbnd_flux_bnb_nu: @local::sbnd_flux_bnb_nu_Hv1
184 sbnd_flux_bnb_nu_test1: @local::sbnd_flux_bnb_nu_Hv1_test1
185 
186 #
187 # Booster Neutrino Beam, interaction from dirt
188 #
189 sbnd_flux_bnb_dirt: @local::sbnd_flux_bnb_nu_Iv1
190 sbnd_flux_bnb_dirt_test1: @local::sbnd_flux_bnb_nu_Iv1_test1
191 
192 #
193 # NuMI Beam (placeholder)
194 #
195 sbnd_flux_numi: {
196  @table::sbnd_flux_bnb_nu
197  // 20160707 (petrillo@fnal.gov) - this does not exist yet:
198  FluxFiles: ["uboonebeam/numi_gsimple_fluxes_12.17.2015_470/gsimple_*.root"]
199 }
200 
201 #
202 # NuMI Beam, interaction from dirt (placeholder)
203 #
204 sbnd_flux_numi_dirt: {
205  @table::sbnd_flux_numi
206  // 20160707 (petrillo@fnal.gov) - this does not exist yet:
207  FluxFiles: ["numi_gsimple_fluxes_02.27.2014/normal_window_dirt/second_try/*.root",
208  "numi_gsimple_fluxes_02.27.2014/length_window_dirt/second_try/*.root",
209  "numi_gsimple_fluxes_02.27.2014/bottom_window_dirt/second_try/*.root"]
210 }
211 
212 
213 ################################################################################
214 ### Bucket structure configuration (Implemented by A. C. Ezeribe)
215 ###
216 #
217 # These are FCL tables that setup arranging the neutrino interactions into BNB buckets.
218 # Use them in its configuration as:
219 #
220 # physics: {
221 # producers: {
222 # generator: {
223 # module_type: GenieGen
224 # # ...
225 # @table: fluxbucket_bub
226 # }
227 # }
228 # }
229 #
230 # or, if needed to override an existing configuration, with the less
231 # straightforward:
232 #
233 # physics.producers.generator: {
234 # @table::physics.producers.generator
235 # @table: fluxbucket_bnb
236 # }
237 #
238 #
239 # Booster Neutrino Beam, bucket
240 #
241 # Bunch sigma taken from
242 # https://beamdocs.fnal.gov/AD/DocDB/0050/005000/001/bunchLength_1st_draft.pdf
243 sbnd_fluxbucket_bnb: {
244  SpillTimeConfig: "evgb::EvtTimeFNALBeam booster, dtbucket=19., sigma=1.308"
245 }
246 
247 # Booster Neutrino Beam, rotated bucket
248 #
249 sbnd_fluxbucket_bnb_rotated: {
250  SpillTimeConfig: "evgb::EvtTimeFNALBeam booster, dtbucket=19., sigma=1.308"
251 }
252 
253 ################################################################################
254 ### GENIE module configurations
255 ###
256 ### Include them like:
257 ###
258 ### #include "genie_sbnd.fcl"
259 ### physics: {
260 ###
261 ### producers: {
262 ###
263 ### generator: @local::sbnd_genie_simple
264 ###
265 ### # ...
266 ### }
267 ###
268 ### # ...
269 ### }
270 ###
271 ###
272 ###
273 
274 sbnd_genie: {
276  @table::sbnd_flux_bnb_nu
277  @table::sbnd_fluxbucket_bnb
278  BeamName: "booster"
279 # GlobalTimeOffset: 1.28e6 #sbnd reads out 1.6ms before the spill
280  GlobalTimeOffset: 0 #Brailsford 2017/10/09 Simulation currently only reads out one drift frame so having a 1.6ms offset (one drift frame) means almost all events get placed outside the readout window. We COULD make the readout window 2 or 3 drift frames long but we also have a disk space problem (we don't have any free). The solution is to remove the offset and keep one frame readout
281  #EventGeneratorList: "Default+CCMEC+NCMEC" # Only needed to generate partial samples in GENIE v3
282  DefinedVtxHistRange: true
283  VtxPosHistRange: [ -210, 210, -210, 210, -10, 510 ]
284 } # sbnd_genie
285 
286 sbnd_genie_hist: {
287  @table::sbnd_genie
288  @table::sbnd_flux_bnb_nu_Bv1_hist
289  BeamCenter: [0., 0., 0.]
290  BeamDirection: [0., 0., 1.]
291  BeamRadius: 4.
292 }
293 
294 
295 #
296 # Basic configuration (BnB beam)
297 #
298 sbnd_genie_simple: {
299  @table::sbnd_genie
300  @table::sbnd_flux_bnb_nu
301  EventsPerSpill: 0
302  POTPerSpill: 5e12
303  MaxFluxFileMB: 100
304 }
305 
306 
307 sbnd_genie_simple_dirt: {
308  @table::sbnd_genie
309  @table::sbnd_flux_bnb_dirt
310  EventsPerSpill: 0
311  POTPerSpill: 5e12
312  MaxFluxFileMB: 100
313  TopVolume: "volWorld"
314  #Start the flux rays at 18m upstream of the TPC frontface. Chosen as this is the distance a muon of 8 GeV (max flux sim. energy) can travel
315  FluxUpstreamZ: -18
316 }
317 
318 sbnd_genie_simple_rockbox: {
319  @table::sbnd_genie_simple_dirt
320  # Use GENIE Rockbox to more efficiently simulate dirt: https://cdcvs.fnal.gov/redmine/projects/nutools/wiki/GENIEHelper_Geometry#Special-case-RockBox-FiducialCut-strings
321  # Define FV: -210 < x < 210, -210 < y < 210, -10 < x < 510
322  # Include interactions in the FV
323  # Apply a 500cm buffer around the FV
324  # Estimate dE/dx loss in rock: 2.5*1.7e-3 (Default Value)
325  # Apply a fudge factor to account for the fact the detector is not up against the rock, i.e. we have gaps of lower density
326  FiducialCut: "rockbox:(-210,-210,-10)(210,210,510),0,500,0.00425,1.3"
327  # As we are changing the FV we need to recalculate the maximum path lengths
328  # This file was generated by running with:
329  # GeomScan: "flux: 10000 1.1 1"
330  GeomScan: "file: GENIE/sbnd_rock_maxpathlength_fluxI_gdmlv02_00.xml"
331 }
332 
333 
334 
335 sbnd_genie_simple_numi: {
336  @table::standard_genie
337  @table::sbnd_flux_numi
338  BeamName: "numi"
339  GlobalTimeOffset: 1.6e6
340  POTPerSpill: 3e13
341  EventsPerSpill: 0
342 }
343 
344 sbnd_genie_simple_numi_dirt: {
345  @table::sbnd_genie_simple_numi
346  @table::sbnd_flux_numi_dirt
347 }
348 
349 ################################################################################
350 
351 END_PROLOG
BEGIN_PROLOG TPC Trig offset(g4 rise time) ProjectToHeight
Definition: CORSIKAGen.fcl:7
BEGIN_PROLOG BeamName
#define the
BEGIN_PROLOG standard_genie
Definition: genie.fcl:8
process_name gaushit a
BEGIN_PROLOG or simple_flux FluxFiles
Definition: genie.fcl:8
then echo Cowardly refusing to create a new FHiCL file with the same name as the original one('${SourceName}')." >&2 exit 1 fi echo "'$
BEGIN_PROLOG set for Simulation