TestGENIEHelper.fcl
Go to the documentation of this file.
1 BEGIN_PROLOG
2 
3 standard_geniehelpertest:
4 {
5  module_type: TestGENIEHelper #name of the module
6 
7  # this is specific to the module
8  GeomFileName: "hey-I-need-a-GDML-file"
9 
10  # the rest are used by GENIEHelper itself
11 
12  # GENIEHelper::Stop() uses this
13  # one or the other should be non-zero but not both
14  EventsPerSpill: 0 # events per spill generated
15  POTPerSpill: 0 # pots per spill generated
16 
17  # one of: ntuple, [g]simple, dk2nu, mono, histogram (cylinder)
18  FluxType: mono
19  # name of file with flux histos or flux file extension, where to find them
20  FluxFiles: [ "*.root" ]
21  FluxSearchPaths: "${PNFS_NOVA_DATA}/flux/gsimple/${NOVA_FLUX_VERSION}"
22  FluxCopyMethod: "IFDH" # IFDH or old "DIRECT" method.
23  FluxCleanup: "" # "ALWAYS", "NEVER" or "/var/tmp/"
24  ### MaxFluxFileMB: 2000 # 2 GB limit per job
25  MaxFluxFileNumber: 99999 # max # of flux files per job
26 
27  # configure how GENIE scans the geometry for maximum path lengths
28  # "box: 200 200 1.1 0" # default
29  # # 200 points, 200 rays, 1.1 safety factor, no XML output
30  # "flux: 10000 1.1 0" # 10k rays, 1.1 fudge
31  # #0 don't write result as XML
32  # "file: maxpathlength.xml" # read XML file
33  GeomScan: "default"
34 
35  # BeamName is just a label ... not really used ("numi", "booster")
36  BeamName: numi
37 
38  # volume in which to produce interactions
39  # look at geometry to determine volume names
40  TopVolume: vDetEnclosure
41 
42  # config string for fiducial cut (ROOT geom units cm) at GENIE level
43  # e.g. "mzcyl:(20,30),50,{200,600}"
44  FiducialCut: "none"
45 
46  # timing of the interaction(s) relative to start of record
47  #in ns - 10000 means the spill appears 10 us into the readout window
48  GlobalTimeOffset: 218500.0
49  RandomTimeOffset: 9600.0 # length of spill in ns
50  SpillTimeConfig: "evgb::EvtTimeFNALBeam" # overrides RandomTimeOffset
51 
52  # pdg code for which neutrinos to generate (at flux level)
53  # use of flavor mixing might result in others in actual interactions
54  GenFlavors: [12,14,16,-12,-14,-16]
55 
56  XSecTable: "gxspl-FNALsmall.xml"
57  DetectorLocation: "NOvA-ND" # location name for flux window.
58  # name of detector see GNuMIFlux.xml from $GENIE/src/FluxDrivers
59  # for list of allowed locations (only for "ntuple" & "dk2nu" fluxes)
60 
61  # Configuration string for GFlavorMixerI (as part of GFluxBlender).
62  # If first word is other than "none" then use the GFluxBlender GENIE
63  # flux adapter to modify the neutrino flavors coming from the
64  # real flux generator. Currently "none", "swap", "fixedfrac" are
65  # the supported schemes, e.g. " swap 12:16 14:16 -12:-16 -14:-16 "
66  MixerConfig: "none"
67 
68  # distance from tgt to flux window needs to be set if using histogram flx
69  MixerBaseline: 0.0
70 
71  DebugFlags: 16 # 0x10 = dump as generate # no debug flags on by default
72 
73  # for GENIE 2.10.X uses Messenger_production.xml is from genie_phyopt
74  # for GENIE 2.10.X uses Messenger_whisper.xml for "Production"
75  ProductionMode: "true"
76  GENIEMsgThresholds: "Messenger_production.xml"
77  #ProductionMode: "false"
78  #GENIEMsgThresholds: ""
79 
80  # leftover kruft ... ancient GENIE versions
81  Environment: [ "obsolete", "obsolete" ]
82 
83  # these only for "mono" or "histogram"
84  # center of the beam in cm relative to detector coordinate origin,
85  # in meters for GENIE
86  BeamCenter: [0.25, 0.0, 0.0]
87  BeamDirection: [0.0 , 0.0, 1.0] #all in the z direction
88  BeamRadius: 3.0 #in meters for GENIE
89 
90  SurroundingMass: 0.0 # mass surrounding the detector to use
91  #energy for monoenergetic neutrinos if generating those in GEV
92  MonoEnergy: 2.0
93 
94 }
95 
96 
97 #==============================================================================================================
98 
99 
100 geniehelpertest_nova_nd: @local::standard_geniehelpertest
101 geniehelpertest_nova_nd.EventsPerSpill: 2
102 geniehelpertest_nova_nd.GeomFileName: "/nova/app/home/novasoft/slf6/novasoft/releases/development/Geometry/gdml/neardet-3x3-8block-xtru-vacuum-stagger.gdml"
103 geniehelpertest_nova_nd.GeomScan: "file: /nova/app/home/novasoft/slf6/novasoft/releases/development/Geometry/maxpathlengths/NOvA_NEAR-ROCK.maxpl.xml"
104 geniehelpertest_nova_nd.FluxSearchPaths: "/nova/ana/users/rhatcher/flux/sample"
105 
106 geniehelpertest_nova_gsimple: @local::geniehelpertest_nova_nd
107 geniehelpertest_nova_gsimple.FluxType: gsimple
108 geniehelpertest_nova_gsimple.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
109 geniehelpertest_nova_gsimple.MaxFluxFileNumber: 2
110 geniehelpertest_nova_gsimple.FluxFiles: [ "gsimple/nd/mn/fhc/*.root" ]
111 
112 
113 geniehelpertest_nova_gnumi: @local::geniehelpertest_nova_nd
114 geniehelpertest_nova_gnumi.FluxType: ntuple
115 geniehelpertest_nova_gnumi.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
116 geniehelpertest_nova_gnumi.MaxFluxFileNumber: 2
117 geniehelpertest_nova_gnumi.FluxFiles: [ "flugg/*.root" ]
118 
119 geniehelpertest_nova_dk2nu: @local::geniehelpertest_nova_nd
120 geniehelpertest_nova_dk2nu.FluxType: dk2nu
121 geniehelpertest_nova_dk2nu.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
122 geniehelpertest_nova_dk2nu.MaxFluxFileNumber: 2
123 #geniehelpertest_nova_dk2nu.FluxFiles: [ "dk2nu_flugg/*.dk2nu.root" ]
124 geniehelpertest_nova_dk2nu.FluxFiles: [ "dk2nu_minerva/*dk2nu*.root" ]
125 
126 #=========================================================================
127 
128 ## bad form to hardcode version & full path here
129 ## but trying to make it independent of setup of other products
130 #
131 geniehelpertest_dune_fd: @local::standard_geniehelpertest
132 geniehelpertest_dune_fd.TopVolume: "volCryostat"
133 geniehelpertest_dune_fd.EventsPerSpill: 1
134 geniehelpertest_dune_fd.GeomFileName: "/cvmfs/dune.opensciencegrid.org/products/dune/dunetpc/v06_77_00/gdml/dune10kt_v1_1x2x6.gdml"
135 geniehelpertest_dune_nd.GeomScan: "default"
136 geniehelpertest_dune_nd.FluxSearchPaths: "/dune/ana/users/rhatcher/flux/sample"
137 
138 geniehelpertest_dune_dk2nu: @local::geniehelpertest_dune_fd
139 geniehelpertest_dune_dk2nu.FluxType: "dk2nu"
140 geniehelpertest_dune_dk2nu.GenFlavors: [12,14,-12,-14]
141 geniehelpertest_dune_dk2nu.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
142 geniehelpertest_dune_dk2nu.MaxFluxFileNumber: 2
143 geniehelpertest_dune_dk2nu.FluxSearchPaths: "/pnfs/dune/persistent/TaskForce_Flux/opt_03/neutrino/dk2nu"
144 geniehelpertest_dune_dk2nu.FluxFiles: [ "*dk2nu.root" ]
145 geniehelpertest_dune_dk2nu.DetectorLocation: "LBNE-FarDet_01"
146 geniehelpertest_dune_dk2nu.SpillTimeConfig: "evgb::EvtTimeFNALBeam"
147 
148 geniehelpertest_dune_atmos: @local::geniehelpertest_dune_fd
149 geniehelpertest_dune_atmos.FluxType: "atmo_BARTOL"
150 geniehelpertest_dune_atmos.GenFlavors: [12,14,-12,-14]
151 geniehelpertest_dune_atmos.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
152 geniehelpertest_dune_atmos.MaxFluxFileNumber: 4
153 geniehelpertest_dune_atmos.FluxSearchPaths: "/pnfs/dune/persistent/TaskForce_Flux/atmos/Bartol"
154 geniehelpertest_dune_atmos.FluxFiles: ["fmax10_0401z.sou_nue","fmax10_0401z.sou_num","fmax10_0401z.sou_nbe","fmax10_0401z.sou_nbm"]
155 geniehelpertest_dune_atmos.SpillTimeConfig: "evgb::EvtTimeFlat" # no beam structure
156 
157 geniehelpertest_dune_atmos_honda: @local::geniehelpertest_dune_fd
158 geniehelpertest_dune_atmos_honda.FluxType: "atmo_HONDA"
159 geniehelpertest_dune_atmos_honda.GenFlavors: [12,14,-12,-14]
160 geniehelpertest_dune_atmos_honda.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
161 geniehelpertest_dune_atmos_honda.MaxFluxFileNumber: 4
162 geniehelpertest_dune_atmos_honda.FluxSearchPaths: "/pnfs/dune/persistent/TaskForce_Flux/atmos/Honda"
163 # really only one file, but listed each time for each nu flavor
164 geniehelpertest_dune_atmos_honda.FluxFiles: [ "hms-ally-20-12-solmax.d", "hms-ally-20-12-solmax.d", "hms-ally-20-12-solmax.d", "hms-ally-20-12-solmax.d" ]
165 geniehelpertest_dune_atmos_honda.SpillTimeConfig: "evgb::EvtTimeFlat" # no beam structure
166 ##### override with special copies
167 geniehelpertest_dune_atmos_honda.FluxSearchPaths: "/dune/app/users/wwu/v06_81_00/work/atm/cosZ-0.4-0.3_phi_Az0-30/Honda"
168 ##### this base version _does_ _no_ _coordinate_ _transform_ HONDA needsa
169 
170 ### this seems to be the right one!
171 geniehelpertest_dune_atmos_honda_rotfd: @local::geniehelpertest_dune_atmos_honda
172 geniehelpertest_dune_atmos_honda_rotfd.FluxRotCfg: "verbose series rotXdeg rotZdeg rotZdeg"
173 geniehelpertest_dune_atmos_honda_rotfd.FluxRotValues: [ 90, -90, 7.175588 ]
174 
175 
176 geniehelpertest_dune_atmos_honda_alt1: @local::geniehelpertest_dune_atmos_honda
177 geniehelpertest_dune_atmos_honda_alt1.FluxRotCfg: "verbose series rotXdeg rotZdeg"
178 geniehelpertest_dune_atmos_honda_alt1.FluxRotValues: [ 90, 7.175588 ]
179 
180 geniehelpertest_dune_atmos_honda_alt2: @local::geniehelpertest_dune_atmos_honda
181 geniehelpertest_dune_atmos_honda_alt2.FluxRotCfg: "verbose series rotXdeg rotZdeg rotZdeg"
182 geniehelpertest_dune_atmos_honda_alt2.FluxRotValues: [ 90, 7.175588, +90 ]
183 
184 geniehelpertest_dune_atmos_honda_alt3: @local::geniehelpertest_dune_atmos_honda
185 geniehelpertest_dune_atmos_honda_alt3.FluxRotCfg: "verbose 3x3"
186 geniehelpertest_dune_atmos_honda_alt3.FluxRotValues: [ 0.1249105, -0.992168, 0,
187  0, 0, 1,
188  -0.992168, -0.1249105, 0 ]
189 
190 # test radians vs. degrees
191 geniehelpertest_dune_atmos_honda_alt4: @local::geniehelpertest_dune_atmos_honda
192 geniehelpertest_dune_atmos_honda_alt4.FluxRotCfg: "verbose series rotXrad rotZdeg rotZ"
193 geniehelpertest_dune_atmos_honda_alt4.FluxRotValues: [ 1.57079813, 7.175588, +90 ]
194 
195 
196 # test bad rotation axis (should fail)
197 geniehelpertest_dune_atmos_honda_alt95: @local::geniehelpertest_dune_atmos_honda
198 geniehelpertest_dune_atmos_honda_alt95.FluxRotCfg: "verbose series rotQrad rotZdeg rotZgrad"
199 geniehelpertest_dune_atmos_honda_alt95.FluxRotValues: [ 1.57079813, 7.175588, +90 ]
200 
201 # test # values != 9 for "3x3" (should fail)
202 geniehelpertest_dune_atmos_honda_alt96: @local::geniehelpertest_dune_atmos_honda
203 geniehelpertest_dune_atmos_honda_alt96.FluxRotCfg: "verbose 3x3"
204 geniehelpertest_dune_atmos_honda_alt96.FluxRotValues: [ 0.1249105, -0.992168 ]
205 
206 
207 # test too many values (series) (should warn)
208 geniehelpertest_dune_atmos_honda_alt97: @local::geniehelpertest_dune_atmos_honda
209 geniehelpertest_dune_atmos_honda_alt97.FluxRotCfg: "verbose series rotXdeg rotZdeg"
210 geniehelpertest_dune_atmos_honda_alt97.FluxRotValues: [ 90, 7.175588, +90 ]
211 
212 # test too few values (series) (should fail)
213 geniehelpertest_dune_atmos_honda_alt98: @local::geniehelpertest_dune_atmos_honda
214 geniehelpertest_dune_atmos_honda_alt98.FluxRotCfg: "verbose series rotXdeg rotZdeg rotZdeg"
215 geniehelpertest_dune_atmos_honda_alt98.FluxRotValues: [ 90, 7.175588 ]
216 
217 # test bad units name (should fail)
218 geniehelpertest_dune_atmos_honda_alt99: @local::geniehelpertest_dune_atmos_honda
219 geniehelpertest_dune_atmos_honda_alt99.FluxRotCfg: "verbose series rotXrad rotZdeg rotZgrad"
220 geniehelpertest_dune_atmos_honda_alt99.FluxRotValues: [ 1.57079813, 7.175588, +90 ]
221 
222 
223 #=========================================================================
224 
225 geniehelpertest_func: @local::geniehelpertest_dune_fd # @local::geniehelpertest_nova_gsimple
226 geniehelpertest_func.FluxType: "func"
227 geniehelpertest_func.FunctionalFlux: "1/x"
228 geniehelpertest_func.FunctionalBinning: 10000
229 geniehelpertest_func.FluxEmax: 10
230 geniehelpertest_func.FluxEmin: 1
231 geniehelpertest_func.BeamRadius: 1 # meter
232 geniehelpertest_func.BeamCenter: [ 0.00, 0.01, -5.0 ] # meters
233 geniehelpertest_func.BeamDirection: [ 0.0, 0.0, 1.0 ]
234 geniehelpertest_func.GenFlavors: [14,-14]
235 geniehelpertest_func.FluxCopyMethod: "DIRECT" # IFDH or "DIRECT" method.
236 geniehelpertest_func.MaxFluxFileNumber: 2
237 geniehelpertest_func.FluxSearchPaths: "/no/such/path"
238 geniehelpertest_func.FluxFiles: [ "*no-files*" ]
239 geniehelpertest_func.DetectorLocation: "nowhere" # used for config of numi or dk2nu flux drivers
240 geniehelpertest_func.SpillTimeConfig: ""
241 # a test that "" is same as "none"
242 geniehelpertest_func.MixerConfig: ""
243 ### test this
244 geniehelpertest_func.EventGeneratorList: "CCQE"
245 
246 
247 END_PROLOG