findtrigprim_dune10kt_1x2x6_legacy.fcl
Go to the documentation of this file.
1 #include "standard_detsim_dune10kt_1x2x6_legacy.fcl"
2 
3 process_name: PrimSim
4 
5 services: @local::dunefd_simulation_services
6 services.TFileService: { fileName: "detsim_hist.root" }
7 services.TimeTracker: {}
8 services.MemoryTracker: { } # default is one
9 services.RandomNumberGenerator: {} #ART native random number generator
10 // services.FileCatalogMetadata: @local::art_file_catalog_mc
11 services.NuRandomService: @local::standard_NuRandomService # seedservice.fcl
12 
13 #source is now a root file
14 source: {
15  module_type: RootInput
16  maxEvents: 10 # Number of events to create
17 }
18 
19 # Define and configure some modules to do work on each event.
20 # First modules are defined; they are scheduled later.
21 # Modules are grouped by type.
22 physics: {
23  producers: {
24  simwire: {
25  module_type: "SimWireDUNE"
26  SimChannelLabel: "largeant"
27  NoiseOn: true
28  PedestalOn: true
29  DistortOn: false
30  SuppressOn: false
31  KeepEmptyChannels: true
32  AdcSimulator: "adcsim_ideal"
33  }
34 
35  trigprim: {
36  module_type: "TriggerPrimitiveFinder"
37  InputTag: "simwire"
38  }
39  rns: { module_type: "RandomNumberSaver" }
40 
41 
42  }
43  simulate: [ rns, simwire, trigprim ]
44  stream1: [ out1 ]
45  trigger_paths: [simulate]
46  end_paths: [stream1]
47 }
48 
49 outputs: {
50  out1: {
51  module_type: RootOutput
52  fileName: "%ifb_trigprim.root"
53  dataTier: "detector-simulated"
54  compressionLevel: 1
55  # Remove all the rawdigits, since they're huge and entirely noise
56  # Get rid of any reco information that might have been in the input file too
57  #
58  # Form of the string is:
59  # data product type _ module label _ instance _ process name
60  outputCommands: ["keep *_*_*_*", "drop *_simwire__PrimSim", "drop *_daq__NoZSDetsim", "drop *_*__Reco" ]
61 
62  }
63 }
64 
65 # DetSim services. These are used by SimWire to add noise and
66 # pedestals to the incoming (noise-free) waveforms
67 services.SimChannelExtractService: @local::scxgeneric
68 services.ChannelNoiseService: @local::chnoiseold
69 services.PedestalAdditionService: @local::padprovided
70 services.AdcDistortService: @local::stuckbits
71 services.AdcSuppressService: @local::zsnone
72 services.AdcCompressService: @local::cmpreplace
73 services.DetPedestalService: @local::dune_fixedpeds
74 
75 # The name of the trigger primitive finder implementation to use
76 # (replace this with your own)
77 services.TriggerPrimitiveFinderService: {
78  service_provider: "TriggerPrimitiveFinderPass1"
79  Threshold: 20
80 }