noise_detsim_protodunedp_driftY.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "singles_dune.fcl"
3 #include "largeantmodules_dune.fcl"
4 #include "tools_dune.fcl"
5 
6 process_name: Detsim
7 
8 services: @local::dunefddphase_simulation_services_legacy
9 services.TFileService: { fileName: "detsim_hist.root" }
10 services.TimeTracker: {}
11 services.MemoryTracker: {} # default is one
12 services.RandomNumberGenerator: {} #ART native random number generator
13 services.FileCatalogMetadata: @local::art_file_catalog_mc
14 services.NuRandomService: @local::random_NuRandomService # seedservice.fcl
15 
16 services.Geometry: @local::protodunedphase_driftY_geo
17 services.DetectorPropertiesService: @local::protodunedphase_detproperties
18 
19 #source is now a root file
20 source: {
21  module_type: RootInput
22  maxEvents: -1 # Number of events to create
23 }
24 
25 # Define and configure some modules to do work on each event.
26 # First modules are defined; they are scheduled later.
27 # Modules are grouped by type.
28 physics: {
29  producers: {
30  daq: @local::dune_detsim
31  rns: { module_type: "RandomNumberSaver" }
32  }
33  simulate: [ rns, daq ]
34  stream1: [ out1 ]
35  trigger_paths: [simulate]
36  end_paths: [stream1]
37 }
38 
39 outputs: {
40  out1: {
41  module_type: RootOutput
42  fileName: "%ifb_detsim.root"
43  dataTier: "detector-simulated"
44  compressionLevel: 1
45  }
46 }
47 
48 # Use fixed values instead of DB for pedestals.
49 services.DetPedestalService: @local::dunedp_fixedpeds
50 
51 # DetSim flags.
52 physics.producers.daq.NoiseOn: true
53 physics.producers.daq.PedestalOn: true
54 physics.producers.daq.DistortOn: false
55 physics.producers.daq.SuppressOn: false #false when noise on!
56 
57 # DetSim services.
58 #services.SimChannelExtractService: @local::scxgeneric
59 services.ChannelNoiseService: @local::chnoiseold
60 services.PedestalAdditionService: @local::padprovided
61 services.AdcDistortService: @local::stuckbits
62 #services.AdcSuppressService: @local::zslegacy
63 services.AdcSuppressService: @local::zsonline
64 #services.AdcCompressService: @local::cmpblock
65 services.AdcCompressService: @local::cmpreplace
66 
67 # Disable bad channels.
68 #services.IChannelStatusService.BadChannels: [ ]
69 
70 # tune to have moderate noise level
71 services.ChannelNoiseService: {
72  service_provider: ExponentialChannelNoiseService
73  NoiseNormU: 0.0
74  NoiseNormV: 0.0
75  NoiseNormZ: 0.0
76  NoiseWidthU: 150.0
77  NoiseWidthV: 150.0
78  NoiseWidthZ: 150.0
79  LowCutoffU: 0.0
80  LowCutoffV: 0.0
81  LowCutoffZ: 0.0
82  WhiteNoiseU: 2.4
83  WhiteNoiseV: 2.4
84  WhiteNoiseZ: 2.4
85  NoiseArrayPoints: 1000
86  OldNoiseIndex: false
87 }