All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prodmarley_sbnd_1event.fcl
Go to the documentation of this file.
1 #
2 # File: prodmarley_sbnd_1event.fcl #
3 # Purpose: Produce single supernova neutrino events including full SBND detector simulation
4 # Version: 1.1
5 #
6 # This configuration runs event generation, simulation of propagation through
7 # matter and readout simulation.
8 #
9 # Input: no input file required
10 #
11 # Dependencies:
12 # - uses the bundle of SBND simulation services
13 #
14 # Changes:
15 # 20160601 (petrillo@fnal.gov) [v1.1]
16 # - added inline documentation
17 # - moved service configuration from services.user (deprecated) to services
18 # - changed Timing module (deprecated) with TimeTracker
19 # - added MemoryTracker module
20 # - tuned message facility configuration
21 #
22 #
23 
24 #
25 # services
26 #
27 
29 #include "messages_sbnd.fcl"
30 #include "marley.fcl"
31 
32 #
33 # modules
34 #
35 
36 #include "singles_sbnd.fcl"
37 #include "largeantmodules_sbnd.fcl"
38 #include "detsimmodules_sbnd.fcl"
39 
40 
41 
42 process_name: SingleGen
43 
44 services:
45 {
46  # Load the service that manages root files for histograms.
47  TFileService: { fileName: "hists_prodmarley_sbnd__1event_-_%p-%tc.root" }
48  @table::sbnd_simulation_services # load simulation services in bulk
49 }
50 
51 # since this is a configuration typically run as interactive test,
52 # we set up message configuration accordingly:
53 services.message: @local::sbnd_message_services_interactive # from messages_sbnd.fcl
54 
55 
56 # Start each new event with an empty event.
57 source:
58 {
59  module_type: EmptyEvent
60  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
61  maxEvents: 1 # Number of events to create
62  firstRun: 1 # Run number to use for this file
63  firstEvent: 1 # number of first event in the file
64 }
65 
66 
67 # Define and configure some modules to do work on each event.
68 # First modules are defined; they are scheduled later.
69 # Modules are grouped by type.
70 physics:
71 {
72 
73  producers:
74  {
75  rns: { module_type: "RandomNumberSaver" }
76  generator: @local::standard_marley # marley events
77  # generator: @local::sbnd_singlep
78  largeant: @local::sbnd_largeant
80  }
81 
82  #define the producer and filter modules for this path, order matters,
84 
85  #define the output stream, there could be more than one if using filters
86  stream1: [ out1 ]
87 
88  #ie analyzers and output streams. these all run simultaneously
89  end_paths: [ stream1 ]
90 }
91 
92 # block to define where the output goes. if you defined a filter in the physics
93 # block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
94 # entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
95 outputs:
96 {
97  out1:
98  {
99  module_type: RootOutput # _%p-%tc - timestamp
100  fileName: "prodmarley_sbnd_1event_-_%p-%tc.root" # default file name, can override from command line with -o or --output
101  fastCloning : true
102  }
103 }
104 
105 #
106 # at the end of the configuration, we can override single parameters to reflect our needs:
107 # defining an electron using pdg reference
108 
109 #physics.producers.generator.PDG: [ 11 ]
110 #physics.producers.generator.P0: [ 1. ] # central value of momentum in GeV for each particle
111 #physics.producers.generator.PDist: 0 # 0 - uniform, 1 -gaussian
112 #physics.producers.generator.SigmaP: [ 1. ]
113 #physics.producers.generator.Theta0XZ: [ 0. ]
114 #physics.producers.generator.Theta0YZ: [ 0. ]
115 #physics.producers.generator.X0: [ -90 ] # for particles i.e PDG 11
116 #physics.producers.generator.Y0: [ 0. ]
117 #physics.producers.generator.Z0: [ 100 ] # cm
118 #physics.producers.generator.SigmaX: [ 0. ] # smear by ~10
119 #physics.producers.generator.SigmaY: [ 0. ] # smear by ~10
120 #physics.producers.generator.SigmaZ: [ 0. ] # smear by ~10
121 #physics.producers.generator.SigmaThetaXZ: [ 0 ] # in degrees
122 #physics.producers.generator.SigmaThetaYZ: [ 0. ] # in degrees
123 
124 # PDG: [ 13 ] # list of pdg codes for particles to make
125 # P0: [ 6. ] # central value of momentum for each particle
126 # SigmaP: [ 0. ] # variation about the central value
127  # PDist: 1 # 0 - uniform, 1 - gaussian distribution
128  # X0: [ 25. ] # in cm in world coordinates, ie x = 0 is at the wire plane
129  # and increases away from the wire plane
130 # Y0: [ 0. ] # in cm in world coordinates, ie y = 0 is at the center of the TPC
131 # Z0: [ 20. ] # in cm in world coordinates, ie z = 0 is at the upstream edge of
132  # the TPC and increases with the beam direction
133  # T0: [ 0. ] # starting time
134  # SigmaX: [ 0. ] # variation in the starting x position
135  # SigmaY: [ 0. ] # variation in the starting y position
136  # SigmaZ: [ 0.0 ] # variation in the starting z position
137  # SigmaT: [ 0.0 ] # variation in the starting time
138  # PosDist: 0 # 0 - uniform, 1 - gaussian
139  # TDist: 0 # 0 - uniform, 1 - gaussian
140  # Theta0XZ: [ 0. ] #angle in XZ plane (degrees)
141  # Theta0YZ: [ -3.3 ] #angle in YZ plane (degrees)
142  # SigmaThetaXZ: [ 0. ] #in degrees
143  # SigmaThetaYZ: [ 0. ] #in degrees
144  # AngleDist: 1 # 0 - uniform, 1 - gaussian
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 caloskimCalorimetryCryoE physics caloskimCalorimetryCryoW physics sequence::physics pathW services
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW rns
process_name drop raw::OpDetWaveforms_DataApr2016RecoStage1_saturation_ * physics
do source
* file
Definition: file_to_url.sh:69
pdgs p
Definition: selectors.fcl:22
physics producers trigslidewindowOR6mW physics effSlidingOR6mW physics end_paths
#define the
process_name larg4outtime largeant
source drop raw::ubdaqSoftwareTriggerData_ *_ *_ * maxEvents
Definition: frame-shunt.fcl:6
BEGIN_PROLOG sbnd_simwire
physics simulate
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 module_type
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG simSlidingORM6O6 effSlidingORW output
then echo fcl name
standard_singlep gaussian distribution ie ie ie gaussian gaussian gaussian larg4Main stream1
Definition: multigen.fcl:18
process_name showerreco Particles Coinciding wih the Vertex services ScanOptions nu_mu services ScanOptions Number
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsWindowPair END_PROLOG trigslidewindowOR6m output outputs
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG process_name