1 #include "services_dune.fcl"
2 #include "singles_dune.fcl"
3 #include "largeantmodules_dune.fcl"
4 #include "tools_dune.fcl"
10 TFileService: { fileName: "realistic_noise_hist.root" }
12 MemoryTracker: {} # default is one
13 RandomNumberGenerator: {} #ART native random number generator
14 FileCatalogMetadata: @local::art_file_catalog_mc
15 NuRandomService: @local::random_NuRandomService # seedservice.fcl
16 @table::dunefddphase_simulation_services_legacy
19 services.Geometry: @local::dunedphase10kt_workspace4x2_geo
21 #source is now a root file
23 module_type: RootInput
24 maxEvents: 10 # Number of events to create
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.
32 daq: @local::dune_detsim
33 rns: { module_type: "RandomNumberSaver" }
35 simulate: [ rns, daq ]
37 trigger_paths: [simulate]
43 module_type: RootOutput
44 fileName: "%ifb_detsim.root"
45 dataTier: "detector-simulated"
52 ######## DetSim services #######################################################
54 #services.SimChannelExtractService: @local::scxgeneric
55 services.ChannelNoiseService: @local::chnoiseold
56 services.PedestalAdditionService: @local::padprovided
57 services.AdcDistortService: @local::stuckbits
58 #services.AdcSuppressService: @local::zslegacy
60 # lowered thhresholds and longer padding than in the original 35t config:
61 services.AdcSuppressService: @local::zsonline
62 services.AdcSuppressService.TL: 6 # start roi thr
63 services.AdcSuppressService.TD: 4 # end roi thr
64 services.AdcSuppressService.NL: 20 # front padding
65 services.AdcSuppressService.NT: 25 # back padding
67 #services.AdcCompressService: @local::cmpblock
68 services.AdcCompressService: @local::cmpreplace
70 ######## Gain Per view #########################################################
72 services.SimChannelExtractService.DPGainPerView: 10
74 ######## ADC simulation tool ##################################################
76 tool.adcsim_ideal.Nbit: 16 #quick fix waiting for the double slope response simulation
78 ####### Noise ##################################################################
80 # Use fixed values instead of DB for pedestals
81 services.DetPedestalService: @local::dunedp_fixedpeds
82 services.DetPedestalService.FixedDetPedestal.PedMeanErrY: 0
83 services.DetPedestalService.FixedDetPedestal.PedMeanErrZ: 0
84 services.DetPedestalService.FixedDetPedestal.PedMeanY: 60 #from 3x1x1 data
85 services.DetPedestalService.FixedDetPedestal.PedMeanZ: 60 #from 3x1x1 data
86 services.DetPedestalService.FixedDetPedestal.PedRmsErrY: 0
87 services.DetPedestalService.FixedDetPedestal.PedRmsErrZ: 0
88 services.DetPedestalService.FixedDetPedestal.PedRmsY: 0
89 services.DetPedestalService.FixedDetPedestal.PedRmsZ: 0
92 physics.producers.daq.NoiseOn: true
93 physics.producers.daq.PedestalOn: true
94 physics.producers.daq.DistortOn: false
95 physics.producers.daq.SuppressOn: true #false when noise on
97 # Disable bad channels.
98 #services.IChannelStatusService.BadChannels: [ ]
100 services.ChannelNoiseService:{
101 service_provider: DPhaseRealisticNoiseService
102 NoiseModel: "/cvmfs/dune.opensciencegrid.org/products/dune/dune_pardata/v01_41_00/NoiseSimulation/3x1x1dp/729-0-incoherent-mirror.root"
103 RandomizeX: 15.0 #amplitude randomization sigma
104 RandomizeY: 15.0 #amplitude randomization sigma
105 Smooth: 1000 #smoothing factor when mirroring
106 SetFirst0: false #set first bin of the fft model to 0
107 SetBaseline: false #if true, baseline added to real noise model
108 NoiseArrayPoints: 1000 #number of pre-generated waveforms
109 OldNoiseIndex: false #From ExponentialChannelNoiseService. Keep false