prodsingle_fulloptical.fcl
Go to the documentation of this file.
1 #include "services_microboone.fcl"
2 #include "backtrackerservice.fcl"
3 #include "particleinventoryservice.fcl"
4 #include "singles.fcl"
5 #include "largeantmodules.fcl"
6 #include "detsimmodules.fcl"
7 #include "mccheatermodules.fcl"
8 #include "photpropservices.fcl"
9 #include "opticaldetectormodules.fcl"
10 
11 process_name: SinglesGen
12 
13 services:
14 {
15  # Load the service that manages root files for histograms.
16  TFileService: { fileName: "single_hist_uboone.root" }
17  TimeTracker: {}
18  RandomNumberGenerator: {} #ART native random number generator
19  @table::microboone_simulation_services
20  BackTrackerService: @local::microboone_backtrackerservice # defined in backtrackerservice.fcl
21  ParticleInventoryService: @local::standard_particleinventoryservice # defined in backtrackerservice.fcl
22 }
23 services.PhotonVisibilityService: @local::standard_photonvisibilityservice
24 
25 #Start each new event with an empty event.
26 source:
27 {
28  module_type: EmptyEvent
29  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
30  maxEvents: 5 # Number of events to create
31  firstRun: 1 # Run number to use for this file
32  firstEvent: 1 # number of first event in the file
33 }
34 
35 # Define and configure some modules to do work on each event.
36 # First modules are defined; they are scheduled later.
37 # Modules are grouped by type.
38 physics:
39 {
40 
41  producers:
42  {
43  generator: @local::microboone_singlep
44  largeant: @local::microboone_largeant
45  daq: @local::microboone_simwire
46  backtrack: @local::standard_backtrackerloader
47  }
48 
49  analyzers:
50  {
51  largana: @local::microboone_largeantana
52  pmtresponse: @local::microboone_simphotoncounter
53  }
54 
55  #define the producer and filter modules for this path, order matters,
56  #filters reject all following items. see lines starting physics.producers below
57  simulate: [ generator, largeant, daq, backtrack ]
58  analyzeIt: [ largana, pmtresponse ]
59  #define the output stream, there could be more than one if using filters
60  stream1: [ out1 ]
61 
62  #trigger_paths is a keyword and contains the paths that modify the art::event,
63  #ie filters and producers
64  trigger_paths: [simulate]
65 
66  #end_paths is a keyword and contains the paths that do not modify the art::Event,
67  #ie analyzers and output streams. these all run simultaneously
68  end_paths: [analyzeIt, stream1]
69 }
70 
71 #block to define where the output goes. if you defined a filter in the physics
72 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
73 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
74 outputs:
75 {
76  out1:
77  {
78  module_type: RootOutput
79  fileName: "single_gen_uboone.root" #default file name, can override from command line with -o or --output
80  }
81 }
82 
83 # set quantum efficiency supressed scint yield to 0.03 * 24000
84 services.DetectorPropertiesService.ScintYield: 720
85 
86 # enable optical physics in LArG4
87 services.LArG4Parameters.EnabledPhysics: [ "Em",
88  "Optical",
89  "SynchrotronAndGN",
90  "Ion",
91  "Hadron",
92  "Decay",
93  "HadronElastic",
94  "Stopping",
95  "NeutronTrackingCut" ]
96 
97 # enable this custom physics list
98 services.LArG4Parameters.UseCustomPhysics: true
99 
100 # disable cerenkov light
101 services.DetectorPropertiesService.EnableCerenkovLight: true
102 
103