noise_detsim_3x1x1dp.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::dunedphase3x1x1_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 #source is now a root file
17 source: {
18  module_type: RootInput
19  maxEvents: -1 # Number of events to create
20 }
21 
22 # Define and configure some modules to do work on each event.
23 # First modules are defined; they are scheduled later.
24 # Modules are grouped by type.
25 physics: {
26  producers: {
27  daq: @local::dune_detsim
28  rns: { module_type: "RandomNumberSaver" }
29  }
30  simulate: [ rns, daq ]
31  stream1: [ out1 ]
32  trigger_paths: [simulate]
33  end_paths: [stream1]
34 }
35 
36 outputs: {
37  out1: {
38  module_type: RootOutput
39  fileName: "%ifb_detsim.root"
40  dataTier: "detector-simulated"
41  compressionLevel: 1
42  }
43 }
44 
45 # Use fixed values instead of DB for pedestals.
46 services.DetPedestalService: @local::dunedp_fixedpeds
47 
48 # DetSim flags.
49 physics.producers.daq.NoiseOn: true
50 physics.producers.daq.PedestalOn: true
51 physics.producers.daq.DistortOn: false
52 physics.producers.daq.SuppressOn: false #false when noise on
53 physics.producers.daq.KeepEmptyChannels: true
54 
55 # DetSim services.
56 services.PedestalAdditionService: @local::padprovided
57 
58 services.DetPedestalService: @local::dunedp_fixedpeds
59 services.DetPedestalService.FixedDetPedestal.PedMeanErrY: 0
60 services.DetPedestalService.FixedDetPedestal.PedMeanErrZ: 0
61 services.DetPedestalService.FixedDetPedestal.PedMeanY: 10
62 services.DetPedestalService.FixedDetPedestal.PedMeanZ: 10
63 services.DetPedestalService.FixedDetPedestal.PedRmsErrY: 0
64 services.DetPedestalService.FixedDetPedestal.PedRmsErrZ: 0
65 services.DetPedestalService.FixedDetPedestal.PedRmsY: 0
66 services.DetPedestalService.FixedDetPedestal.PedRmsZ: 0
67 
68 services.AdcDistortService: @local::stuckbits
69 services.AdcSuppressService: @local::zsonline
70 services.AdcCompressService: @local::cmpreplace
71 
72 services.SimChannelExtractService.DPGainPerView: 2
73 
74 
75 #===================New noise module ===========================================
76 #Configure realistic noise service for DP detectors based on the 311 data
77 
78 services.ChannelNoiseService:{
79 
80  #Inchoerent noise only
81  #service_provider: DPhaseRealisticNoiseService
82  #NoiseModel: "$MRB_SOURCE/dunetpc/dune/DetSim/NoiseModels/729-0_fft_mirror.root" #path to the noise model root file
83  #RandomizeX: 15. #0.002
84  #RandomizeY: 15. #0.002
85  #Smooth: 1000
86  #SetFirst0: false
87  #SetBaseline: false #if true sum baseline to real noise model
88  #NoiseArrayPoints: 1000
89  #OldNoiseIndex: false #From ExponentialChannelNoiseService. Keep false
90 
91  #Coherent noise
92 ervices.ChannelNoiseService:{
93  service_provider: DPhaseCoherentNoiseService
94  NoiseModel: "$MRB_SOURCE/dunetpc/dune/DetSim/NoiseModels/729-0-mirror-fft.root"
95  AmplitudeCut: 0 #select frequencies above this threshold
96  Normalization: 1025 #amplitude normalizations
97  Randomize: [ 1, 1 ] #rms amplitude [rms view , rms view 1]
98  PhaseShift: [ -1, 1 ] #phase shift per group of channels in radiants
99  ChannelGroup: [ 0, #list here the first channel of every significant correlation pattern group
100  32,
101  64,
102  96,
103  128,
104  160,
105  192,
106  224,
107  256,
108  288,
109  320,
110  352,
111  384,
112  416,
113  448,
114  480,
115  512,
116  544,
117  576,
118  608,
119  640,
120  672,
121  704,
122  736,
123  768,
124  800,
125  832,
126  864,
127  896,
128  928,
129  960,
130  1120, #corr pattern over the full lem (by empirical observation of 729)
131  1280 ] #corr pattern over the full lem (by empirical observation of 729)
132  InchoerentNoise: [ 0.7, 1.1, 0.7, 1.1 ] #rms and sigma of a small incohrent noise ( or very high frequency ) [ #mean view 0, rms view 0, mean view 1, rms view 1 ]. [] means no noise simulated
133  NumberOfPhases: 1000 #number of noise mask (channel vs time) to produce
134  LogLevel: 0 #Verbosity level
135 }
136 
137 }