All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
split_tpc_nu.fcl
Go to the documentation of this file.
1 #
2 # File: split_tpc_nu.fcl
3 # Purpose: Take in pregenerated GENIE events that contain both TPC and dirt events and split
4 # them into two output streams based on whether they had a TPC interaction or not
5 # Version: 1.0
6 #
7 # Input: File with GENIE run as generator and largeant to track energy depositions
8 #
9 # Dependencies:
10 # - uses the bundle of SBND simulation services
11 #
12 #
13 
14 #
15 # services
16 #
17 
19 #include "messages_sbnd.fcl"
20 
21 #
22 # filters
23 #
24 
25 #include "gennufilter.fcl"
26 
27 process_name: GenieDirtOutputs
28 
29 services:
30 {
31  TFileService: { fileName: "hists_split_tpc_nu_sbnd_%p-%tc.root" }
32  @table::sbnd_simulation_services # load simulation services in bulk
33 }
34 
35 #source is now a root file
36 source:
37 {
38  module_type: RootInput
39  maxEvents: -1 # Number of events to create
40 }
41 
42 # Define and configure some modules to do work on each event.
43 # First modules are defined; they are scheduled later.
44 # Modules are grouped by type.
45 physics:
46 {
47 
48  filters:
49  {
50  # Filter events that have an interaction in the TPC
51  tpcfilter: @local::sbnd_tpc_gennufilter
52  }
53 
54  # Note we assume that every event has already been filtered to require a tpc interaction
55  # or a dirt interaction previously. Therefore, anything without a tpc interaction is
56  # assumed to be dirt
57  filtertpc: [ tpcfilter ]
58  filterdirt: [ "!tpcfilter" ]
59 
60  # Split the outputs into those with/without TPC interactions
61  stream1: [ outTPC, outDirt ]
62 
63  #ie analyzers and output streams. these all run simultaneously
65 }
66 
67 outputs:
68  {
69  # Keep only the events with a TPC neutrino
70  # N.B. These events will still have some random coincidence of dirt interactions
71  outTPC:
72  {
73  module_type: RootOutput
74  fileName: "tpc_%ifb_%p-%tc.root"
75  dataTier: "generated"
76  SelectEvents: [ filtertpc ]
77  }
78 
79  # Keep only the events that have a no TPC neutrino but a dirt interaction
80  outDirt:
81  {
82  module_type: RootOutput
83  fileName: "dirt_%ifb_%p-%tc.root"
84  dataTier: "generated"
85  SelectEvents: [ filterdirt ]
86  }
87 }
88 
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
process_name drop raw::OpDetWaveforms_DataApr2016RecoStage1_saturation_ * physics
do source
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
source drop raw::ubdaqSoftwareTriggerData_ *_ *_ * maxEvents
Definition: frame-shunt.fcl:6
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
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