noise_detsim_dune10kt_dp_legacy.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:
9 {
10  TFileService: { fileName: "realistic_noise_hist.root" }
11  TimeTracker: {}
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
17 }
18 
19 services.Geometry: @local::dunedphase10kt_workspace_geo
20 
21 #source is now a root file
22 source: {
23  module_type: RootInput
24  maxEvents: 10 # Number of events to create
25 }
26 
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.
30 physics: {
31  producers: {
32  daq: @local::dune_detsim
33  rns: { module_type: "RandomNumberSaver" }
34  }
35  simulate: [ rns, daq ]
36  stream1: [ out1 ]
37  trigger_paths: [simulate]
38  end_paths: [stream1]
39 }
40 
41 outputs: {
42  out1: {
43  module_type: RootOutput
44  fileName: "%ifb_detsim.root"
45  dataTier: "detector-simulated"
46  compressionLevel: 1
47  }
48 }
49 
50 # DetSim services.
51 #services.SimChannelExtractService: @local::scxgeneric
52 services.ChannelNoiseService: @local::chnoiseold
53 services.PedestalAdditionService: @local::padprovided
54 services.AdcDistortService: @local::stuckbits
55 #services.AdcSuppressService: @local::zslegacy
56 services.AdcSuppressService: @local::zsonline
57 #services.AdcCompressService: @local::cmpblock
58 services.AdcCompressService: @local::cmpreplace
59 
60 # Use fixed values instead of DB for pedestals.
61 services.DetPedestalService: @local::dunedp_fixedpeds
62 services.DetPedestalService.FixedDetPedestal.PedMeanErrY: 0
63 services.DetPedestalService.FixedDetPedestal.PedMeanErrZ: 0
64 services.DetPedestalService.FixedDetPedestal.PedMeanY: 60 #from 3x1x1 data
65 services.DetPedestalService.FixedDetPedestal.PedMeanZ: 60 #from 3x1x1 data
66 services.DetPedestalService.FixedDetPedestal.PedRmsErrY: 0
67 services.DetPedestalService.FixedDetPedestal.PedRmsErrZ: 0
68 services.DetPedestalService.FixedDetPedestal.PedRmsY: 0
69 services.DetPedestalService.FixedDetPedestal.PedRmsZ: 0
70 
71 # DetSim flags.
72 physics.producers.daq.NoiseOn: true
73 physics.producers.daq.PedestalOn: true
74 physics.producers.daq.DistortOn: false
75 physics.producers.daq.SuppressOn: false #false when noise on
76 
77 # Disable bad channels.
78 #services.IChannelStatusService.BadChannels: [ ]
79 
80 services.ChannelNoiseService:{
81  service_provider: DPhaseRealisticNoiseService
82  NoiseModel: "$MRB_SOURCE/dunetpc/dune/DetSim/NoiseModels/729-0_fft_mirror.root"
83  RandomizeX: 15.0 #amplitude randomization sigma
84  RandomizeY: 15.0 #amplitude randomization sigma
85  Smooth: 1000 #smoothing factor when mirroring
86  SetFirst0: false #set first bin of the fft model to 0
87  SetBaseline: false #if true, baseline added to real noise model
88  NoiseArrayPoints: 1000 #number of pre-generated waveforms
89  OldNoiseIndex: false #From ExponentialChannelNoiseService. Keep false
90 }