All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prodgenie_rockbox_sbnd.fcl
Go to the documentation of this file.
1 #
2 # File: prodgenie_rockbox sbnd.fcl
3 # Purpose: Produce GENIE events in the SBND detector and surrounding dirt with spill structure
4 # using rockbox functionality in GENIEHelper
5 # Version: 1.0
6 #
7 # This configuration runs event generation and largenat
8 #
9 # Input: no input file required
10 #
11 # Dependencies:
12 # - uses the bundle of SBND simulation services
13 #
14 #
15 
16 #
17 # services
18 #
19 
21 #include "messages_sbnd.fcl"
22 
23 #
24 # filters
25 #
26 
27 #include "gennufilter.fcl"
29 
30 #
31 # modules
32 #
33 
34 #include "genie_sbnd.fcl"
35 #include "larg4_sbnd.fcl"
36 
37 
38 process_name: GenieGen
39 
40 services:
41 {
42  # Load the service that manages root files for histograms.
43  TFileService: { fileName: "hists_prodgenie_sbnd_%p-%tc.root" }
44  IFDH: {} # required by GENIEGen
45  @table::sbnd_simulation_services # load simulation services in bulk
46  @table::sbnd_g4_services
47 }
48 
49 # Start each new event with an empty event.
50 source:
51 {
52  module_type: EmptyEvent
53  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
54  maxEvents: 10 # Number of events to create
55  firstRun: 1 # Run number to use for this file
56  firstEvent: 1 # number of first event in the file
57 }
58 
59 # Define and configure some modules to do work on each event.
60 # First modules are defined; they are scheduled later.
61 # Modules are grouped by type.
62 physics:
63 {
64 
65  filters:
66  {
67  # Filter events that have an interaction in the TPC
68  tpcfilter: @local::sbnd_tpc_gennufilter
69 
70  # Filter events where a particle deposits >100MeV in the TPC (AKA Dirt)
71  dirtfilter: @local::sbnd_simenergydepfaketriggerfilter
72  }
73 
74 
75  producers:
76  {
77  rns: { module_type: "RandomNumberSaver" }
78 
79  # Run GENIE in rockbox mode
80  generator: @local::sbnd_genie_simple_rockbox
81 
82  # A dummy module that forces the G4 physics list to be loaded
83  loader: { module_type: "PhysListLoader" }
84 
85  # The geant4 step
86  largeant: @local::sbnd_larg4
87  }
88 
89  #define the producer and filter modules for this path, order matters,
90  simulatetpc: [ rns, generator, loader, largeant, tpcfilter ]
91  simulatedirt: [ rns, generator, loader, largeant, "!tpcfilter", dirtfilter ]
92 
93  #define the output stream, there could be more than one if using filters
94  # By deault Keep everything in one file:
95  stream1: [ out1 ]
96 
97  #ie analyzers and output streams. these all run simultaneously
99 }
100 
101 # block to define where the output goes. if you defined a filter in the physics
102 # block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
103 # entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
104 outputs:
105 {
106  # Keep all events with either TPC neutrinos or dirt interactions in one output
107  out1:
108  {
109  module_type: RootOutput
110  fileName: "prodgenie_sbnd_%p-%tc.root" # default file name, can override from command line with -o or --output
111  dataTier: "generated"
112  SelectEvents: [ simulatetpc, simulatedirt ]
114  }
115 }
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
process_name local::throughgoing_selection SelectEvents
BEGIN_PROLOG pandoraTrackRangeCryoW pandoraTrackRangeCryoW rns
process_name drop raw::OpDetWaveforms_DataApr2016RecoStage1_saturation_ * physics
tuple loader
Definition: demo.py:7
do source
* file
Definition: file_to_url.sh:69
process_name gaushitTPC3 gaushitTPC3 filters
physics producers trigslidewindowOR6mW physics effSlidingOR6mW physics end_paths
process_name can override from command line with o or output dataTier
Definition: runPID.fcl:28
#define the
process_name larg4outtime largeant
source drop raw::ubdaqSoftwareTriggerData_ *_ *_ * maxEvents
Definition: frame-shunt.fcl:6
physics producers largeant physics dirtfilter
process_name tpcfilter simulatedirt
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 keep raw::RawDigits_ *_ *_ * saveMemoryObjectThreshold
Definition: test_mchdb.fcl:5
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