prodsingle_buildopticallibrary.fcl
Go to the documentation of this file.
1 #include "services_microboone.fcl"
2 #include "backtrackerservice.fcl"
3 #include "particleinventoryservice.fcl"
4 #include "singles_microboone.fcl"
5 #include "largeantmodules_microboone.fcl"
6 #include "detsimmodules_microboone.fcl"
7 #include "opticaldetectormodules_microboone.fcl"
8 #include "lightsource.fcl"
9 
10 
11 process_name: LibraryBuild
12 
13 
14 services:
15 {
16  # Load the service that manages root files for histograms.
17  TFileService: { fileName: "PhotonLibraryFile.root" }
18  TimeTracker: {}
19  RandomNumberGenerator: {} #ART native random number generator
20  @table::microboone_simulation_services
21  BackTrackerService: @local::microboone_backtracker # defined in backtrackerservice.fcl
22  ParticleInventoryService: @local::standard_particleinventoryservice # defined in backtrackerservice.fcl
23 }
24 
25 
26 services.OpDetResponseInterface: @local::microboone_opdetresponse
27 
28 
29 #Start each new event with an empty event.
30 source:
31 {
32  module_type: EmptyEvent
33  maxEvents: 240 # Number of events to create
34  firstRun: 1 # Run number to use for this file
35  firstEvent: 1 # number of first event in the file
36 }
37 
38 # Define and configure some modules to do work on each event.
39 # First modules are defined; they are scheduled later.
40 # Modules are grouped by type.
41 physics:
42 {
43 
44  producers:
45  {
46  generator: @local::microboone_lightsource
47  largeant: @local::microboone_largeant
48  }
49 
50  analyzers:
51  {
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 ]
58  analyzeIt: [ pmtresponse ]
59  #define the output stream, there could be more than one if using filters
60  stream1: [ ]
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 # Begin optical specific parts:
84 
85 # set quantum efficiency supressed scint yield to 0.03 * 24000
86 services.LArPropertiesService.ScintYield: 72
87 
88 # enable optical physics in LArG4
89 services.LArG4Parameters.EnabledPhysics: [ "Em",
90  "Optical",
91  "SynchrotronAndGN",
92  "Ion",
93  "Hadron",
94  "Decay",
95  "HadronElastic",
96  "Stopping",
97  "NeutronTrackingCut" ]
98 
99 # enable this custom physics list
100 services.LArG4Parameters.UseCustomPhysics: true
101 
102 # do not allow lightsource to write output into root file
103 physics.producers.generator.FillTree: false
104 
105 physics.analyzers.pmtresponse.MakeAllPhotonsTree: true
106 physics.analyzers.pmtresponse.MakeDetectedPhotonsTree: true
107 physics.analyzers.pmtresponse.MakeOpDetsTree: true
108 physics.analyzers.pmtresponse.MakeOpDetEventsTree: true
109 
110 #services.Geometry.GDML: "TempGeometry/gdml/microboone.gdml"
111 
112 # To disable wireplane absorption, uncomment this line
113 #services.LArG4Parameters.OpticalParamModels: ["TransparentPlaneAction"]
114 
115 
116 services.PhotonVisibilityService.UseCryoBoundary: true
117 
118 services.PhotonVisibilityService.NX: 75
119 services.PhotonVisibilityService.NY: 75
120 services.PhotonVisibilityService.NZ: 400
121 
122 services.Geometry.GDML: "microboonev10_opticalSim.gdml"
123 services.Geometry.Name: "microboonev10_opticalSim"
124 services.Geometry.ROOT: "microboonev10_opticalSim.gdml"
125 
126 #services.PhotonVisibilityService.XMin: 100
127 #services.PhotonVisibilityService.XMax: 110
128 #services.PhotonVisibilityService.YMin: -50
129 #services.PhotonVisibilityService.YMax: -60
130 #services.PhotonVisibilityService.ZMin: 500
131 #services.PhotonVisibilityService.ZMax: 600
132 
133 physics.producers.generator.FirstVoxel: 1000000
134 physics.producers.generator.LastVoxel: 1000239
135 physics.producers.generator.N: 30000
136 
137 services.DetPedestalService.DetPedestalRetrievalAlg.UseDB: false
138 services.ChannelStatusService.ChannelStatusProvider.UseDB: false