16bit_detsim_dune10ktdphase_workspace4x2_gain20.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_workspace4x2_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 
51 
52 ######## DetSim services #######################################################
53 
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
59 
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
66 
67 #services.AdcCompressService: @local::cmpblock
68 services.AdcCompressService: @local::cmpreplace
69 
70 ######## Gain Per view #########################################################
71 
72 services.SimChannelExtractService.DPGainPerView: 10
73 
74 ######## ADC simulation tool ##################################################
75 
76 tool.adcsim_ideal.Nbit: 16 #quick fix waiting for the double slope response simulation
77 
78 ####### Noise ##################################################################
79 
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
90 
91 # DetSim flags.
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
96 
97 # Disable bad channels.
98 #services.IChannelStatusService.BadChannels: [ ]
99 
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
110 }