detsim_dune10kt_wirecell_refactored.fcl
Go to the documentation of this file.
1 # standard_detsim_dune10kt.fcl
2 
3 # Dom Brailsford (based on Alex Himmel's multidetsim)
4 #
5 #
6 # Job fhicl for running multiple variants of the photon detector simulation simulatneously
7 # Runs a single variant of TPC detsim as well
8 
9 #include "wirecell_dune.fcl"
10 #include "services_dune.fcl"
11 #include "detsimmodules_dune.fcl"
12 #include "opticaldetectormodules_dune.fcl"
13 #include "OpDetMultisim.fcl"
14 
15 #include "tools_dune.fcl"
16 
17 process_name: detsim
18 
19 
20 services:
21 {
22  TFileService: { fileName: "%ifb_detsim_hist.root" }
23  TimeTracker: {}
24  MemoryTracker: { } # default is one
25  RandomNumberGenerator: {} #ART native random number generator
26  FileCatalogMetadata: @local::art_file_catalog_mc
27  @table::dunefd_simulation_services_refactored
28  message: @local::dune_message_services_prod
29 }
30 
31 #source is now a root file
32 source: {
33  module_type: RootInput
34  maxEvents: 10 # Number of events to create
35 }
36 
37 # Define and configure some modules to do work on each event.
38 # First modules are defined; they are scheduled later.
39 # Modules are grouped by type.
40 physics: {
41  producers: {
42 # daq: @local::dune_detsim
43 
44  tpcrawdecoder: @local::tpcrawdecoder_dunefd_horizdrift
45  @table::pd_detsim_modules
46  rns: { module_type: "RandomNumberSaver" }
47  }
48 # simulate: [ rns, daq, @sequence::pd_detsim_path ]
49  simulate: [ rns, tpcrawdecoder, @sequence::pd_detsim_path ]
50  stream1: [ out1 ]
51  trigger_paths: [simulate]
52  end_paths: [stream1]
53 }
54 
55 outputs: {
56  out1: {
57  module_type: RootOutput
58  fileName: "%ifb_detsim.root"
59  dataTier: "detector-simulated"
60  compressionLevel: 1
61  }
62 }
63 
64 # Use fixed values instead of DB for pedestals.
65 services.DetPedestalService: @local::dune_fixedpeds
66 
67 # DetSim flags.
68 physics.producers.daq.NoiseOn: true
69 physics.producers.daq.PedestalOn: true
70 physics.producers.daq.DistortOn: false
71 physics.producers.daq.SuppressOn: true
72 
73 # DetSim services.
74 services.SimChannelExtractService: @local::scxgeneric
75 services.ChannelNoiseService: @local::chnoiseold
76 services.PedestalAdditionService: @local::padprovided
77 services.AdcDistortService: @local::stuckbits
78 services.AdcSuppressService: @local::zslegacy
79 services.AdcCompressService: @local::cmpblock
80 
81 # Disable bad channels.
82 #services.IChannelStatusService.BadChannels: [ ]
83 
84 ### Supernova detsim noise levels ###
85 ### What value do I want for the Noise Level?
86 services.ChannelNoiseService.NoiseNormU: 5.75
87 services.ChannelNoiseService.NoiseNormV: 5.75
88 services.ChannelNoiseService.NoiseNormZ: 4.5
89 
90 #configs: ["pgrapher/experiment/pdsp/wcls-sim-drift-simchannel.jsonnet"]
91 #=> configs: ["pgrapher/experiment/dune10kt-1x2x6/wcls-sim-drift-simchannel.jsonnet"]