All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ophit_wvfana_sbnd.fcl
Go to the documentation of this file.
1 #
2 # File: ophit_wvfana_sbnd.fcl
3 # Purpose: Simulates optical detectors waveforms
4 # Author: Iker de Icaza (icaza@fnal.gov)
5 # Date: June 11, 2020
6 # Version: 1.0
7 #
8 # This is a convenience configuration to ease development of optical simulations.
9 # It takes a largeant file with light simulation and produces the photon detectors
10 # daq response, the ophit finder algorithm and produces the optical detectors waveforms.
11 #
12 # Input:
13 # - output from LArG4 module (in particular, SimPhotons or SimPhotonsLite)
14 #
15 # Output:
16 # - daq: Optical Waveforms
17 #
18 
19 
20 #include "services_sbnd.fcl"
21 #include "messages_sbnd.fcl"
22 #include "sam_sbnd.fcl"
23 #include "larfft_sbnd.fcl"
24 ##include "signalservices_sbnd.fcl"
26 #include "detsimmodules_sbnd.fcl"
27 #include "opdetdigitizer_sbnd.fcl"
28 #include "ophitfinder_sbnd.fcl"
29 #include "wvfana.fcl"
30 
32 #include "cluster_sbnd.fcl"
34 #include "calorimetry_sbnd.fcl"
35 #include "showerfindermodules.fcl"
36 #include "databaseutil_sbnd.fcl"
37 #include "vertexfindermodules.fcl"
38 
39 
40 #inlcude "crtsimmodules_sbnd.fcl"
41 #include "rootoutput_sbnd.fcl"
42 
43 
44 process_name: ophitfindingwvfana
45 
46 services:
47 {
48  # Load the service that manages root files for histograms.
49  TFileService: { fileName: "test_ophit_wvf_.root" }
50  @table::sbnd_detsim_services
51  RandomNumberGenerator: {} # required by fuzzyCluster
52  message: @local::sbnd_message_services_prod # from messages_sbnd.fcl
53  FileCatalogMetadata: @local::sbnd_file_catalog_mc # from sam_sbnd.fcl
54  LArFFT: @local::sbnd_larfft
55 
56  SignalShapingServiceSBND: @local::sbnd_signalshapingservice # from signalservices_sbnd.fcl
57 }
58 
59 
60 #source is now a root file
61 source:
62 {
63  module_type: RootInput
64  maxEvents: -1 # Number of events to create
65 }
66 
67 
68 #block to define where the output goes. if you defined a filter in the physics
69 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
70 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
71 outputs:
72 {
73 
74 }
75 
76 # Define and configure some modules to do work on each event.
77 # First modules are defined; they are scheduled later.
78 # Modules are grouped by type.
79 
80 
81 physics:
82 {
83 
84  producers:
85  {
86  # random number saver
87  rns: { module_type: RandomNumberSaver }
89  ophit: @local::sbnd_hit_finder
90  }
91 
92  analyzers:
93  {
94  wvfana: @local::wvf_ana
95  }
96 
97  # define the producer and filter modules for this path, order matters,
98  # filters reject all following items. see lines starting physics.producers below
100 
101  ana: [ wvfana]
102 
103  # define the output stream, there could be more than one if using filters
104  stream1: []
105 
106  # trigger_paths is a keyword and contains the paths that modify the art::event,
107  # ie filters and producers
109 
110  # end_paths is a keyword and contains the paths that do not modify the art::Event,
111  # ie analyzers and output streams. these all run simultaneously
112  end_paths: [ana, stream1]
113 
114 }
115 
116 
117 ### Some potential overwrites below
118 
119 #physics.producers.fpred.OpHitProducer: "ophit"
120 #physics.producers.fpred.BeamWindowStart: -0.2 # in us
121 #physics.producers.fpred.BeamWindowEnd: 2.0 # in us
122 #physics.producers.fpred.ChargeToNPhotonsShower: 1.0
123 #physics.producers.fpred.ChargeToNPhotonsTrack: 1.0
124 
125 #physics.producers.ophit.Area1pePMT: 1.3266 #in ADC*ns
126 #physics.producers.opdaq.QEDirect: 0.03
127 #physics.producers.opdaq.QERefl: 0.03
128 #physics.producers.opdaq.PMTSinglePEmodel: true
129 #physics.producers.opdaq.ArapucaSinglePEmodel: true
130 #physics.producers.opdaq.PMTChargeToADC: -51.9
131 
132 #physics.analyzers.wvfana. OpDetsToPlot: ["pmt_coated", "pmt_uncoated"]
133 
134 
135 
136 
137 
services RandomNumberGenerator
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
physics producers trigslidewindowOR6mW physics effSlidingOR6mW physics end_paths
BEGIN_PROLOG sbnd_signalshapingservice
required by fuzzyCluster table::sbnd_g4_services LArFFT
Definition: reco_sbnd.fcl:182
process_name opflashCryoW ana
source drop raw::ubdaqSoftwareTriggerData_ *_ *_ * maxEvents
Definition: frame-shunt.fcl:6
process_name standard_reco_uboone reco
BEGIN_PROLOG sbnd_opdetdigitizer
BEGIN_PROLOG wvf_ana
BEGIN_PROLOG opflashCryoW opflashCryoW triggerfilterBNB triggerfilterNuMI triggerfilterOffbeamBNB triggerfilterOffbeamNuMI triggerfilterUnknown roifinder roifinder2d gaushitTPCEE gaushitTPCWE purityana1 ophit
process_name opdaq
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
standard_singlep gaussian distribution ie ie ie gaussian gaussian gaussian larg4Main stream1
Definition: multigen.fcl:18
process_name analyzers
process_name showerreco Particles Coinciding wih the Vertex services ScanOptions nu_mu services ScanOptions Number
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsWindowPair END_PROLOG trigslidewindowOR6m output outputs
process_name sequence::icarus_reco_cluster3d physics trigger_paths
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG process_name