prodmarley_lariat.fcl
Go to the documentation of this file.
1 #include "marley.fcl"
2 #include "services_lariat.fcl"
3 #include "largeantmodules_lariat.fcl"
4 #include "detsimmodules_lariat.fcl"
5 
6 process_name: MarleyGen
7 
8 services:
9 {
10  # Load the service that manages root files for histograms.
11  TFileService: { fileName: "marley_hist.root" }
12  TimeTracker: {}
13  RandomNumberGenerator: {} #ART native random number generator
14  @table::lariat_simulation_services
15 }
16 
17 
18 #Start each new event with an empty event.
19 source:
20 {
21  module_type: EmptyEvent
22  maxEvents: 100 # Number of events to create
23  firstRun: 1 # Run number to use for this file
24  firstEvent: 1 # number of first event in the file
25 }
26 
27 # Define and configure some modules to do work on each event.
28 # First modules are defined; they are scheduled later.
29 # Modules are grouped by type.
30 physics:
31 {
32 
33  producers:
34  {
35  generator: @local::standard_marley
36  # Track particles in the detector using Geant4
37  largeant: @local::lariat_largeant
38  # Simulate TPC wire responses
39  daq: @local::lariat_simwire
40  rns: { module_type: "RandomNumberSaver" }
41  }
42 
43  #define the producer and filter modules for this path, order matters,
44  #filters reject all following items.
45  #see lines starting physics.producers below
46  simulate: [ generator, largeant, daq, rns ]
47 
48  #define the output stream, there could be more than one if using filters
49  stream1: [ out1 ]
50 
51  #ie analyzers and output streams. these all run simultaneously
52  end_paths: [stream1]
53 }
54 
55 #block to define where the output goes. if you defined a filter in the physics
56 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
57 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
58 outputs:
59 {
60  out1:
61  {
62  module_type: RootOutput
63  fileName: "marley_gen.root" #default file name, can override from command line with -o or --output
64  }
65 }
66 
67 # Adjustments to the standard LArG4 parameters
68 services.LArG4Parameters.ParticleKineticEnergyCut: 1.0e-5 # GeV
69 services.LArG4Parameters.StoreTrajectories: true
70 services.LArG4Parameters.KeepEMShowerDaughters: true
71 # Use NeutronHP data (very important for neutrino-induced neutron emission!)
72 # which is not enabled by default in LArSoft.
73 services.LArG4Parameters.UseCustomPhysics: true
74 services.LArG4Parameters.EnabledPhysics: [ "LowEnergyEm",
75  "SynchrotronAndGN",
76  "Ion",
77  "NeutronHP",
78  "Decay",
79  "HadronElastic",
80  "Stopping" ]