basic_gen_beam_p3GeV.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "singles_dune.fcl"
3 #include "protodunebeam.fcl"
4 
5 process_name: SinglesGen
6 
7 services:
8 {
9  # Load the service that manages root files for histograms.
10  TFileService: { fileName: "gensingle_protoDUNE_hist.root" }
11  TimeTracker: {}
12  RandomNumberGenerator: {} #ART native random number generator
13  FileCatalogMetadata: @local::art_file_catalog_mc
14  @table::protodune_simulation_services
15 }
16 
17 #Start each new event with an empty event.
18 source:
19 {
20  module_type: EmptyEvent
21  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
22  maxEvents: 1000000
23  firstRun: 1 # Run number to use for this file
24  firstEvent: 1 # number of first event in the file
25 }
26 
27 # Define and configure some modules to do work on each event.
28 # First modules are defined; they are scheduled later.
29 # Modules are grouped by type.
30 physics:
31 {
32 
33  producers:
34  {
35  generator: @local::protodune_beam
36  rns: { module_type: "RandomNumberSaver" }
37  }
38 
39 
40  #define the producer and filter modules for this path, order matters,
41  #filters reject all following items. see lines starting physics.producers below
42  simulate: [ rns, generator ]
43 
44  #define the output stream, there could be more than one if using filters
45  stream1: [ out1 ]
46 
47  #trigger_paths is a keyword and contains the paths that modify the art::event,
48  #ie filters and producers
49  trigger_paths: [simulate]
50 
51  #end_paths is a keyword and contains the paths that do not modify the art::Event,
52  #ie analyzers and output streams. these all run simultaneously
53  end_paths: [stream1]
54 }
55 
56 #block to define where the output goes. if you defined a filter in the physics
57 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
58 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
59 outputs:
60 {
61  out1:
62  {
63  module_type: RootOutput
64  fileName: "gensingle_protoDUNE.root" #default file name, can override from command line with -o or --output
65  dataTier: "generated"
66  compressionLevel: 1
67  }
68 }
69 
70 #Set generator parameters
71 #Corresponds to beam window at center of left TPC
72 
73 # Specific to the GEANT H4 Beam simulation by Nikos and paths at CERN
74 physics.producers.generator.TreeName: "NTuples/GoodParticle"
75 physics.producers.generator.AllParticlesTreeName: "Detector/NP04front"
76 physics.producers.generator.StartEvent: 0
77 # Set the beam position and direction to fire the particles in the desired way
78 physics.producers.generator.BeamX: 8.0757 # In cm, taken from protoDUNE_gensingle.fcl
79 physics.producers.generator.BeamY: 461.06
80 physics.producers.generator.BeamZ: -196.11
81 physics.producers.generator.RotateXZ: 0.0 # In degrees, taken from protoDUNE_gensingle.fcl
82 physics.producers.generator.RotateYZ: 0.0 # No rotation in y needed for new files.
83 # The background cuts should be off.
84 physics.producers.generator.BkgRadiusCut: 0.0
85 # Overlay info
86 physics.producers.generator.ReadoutWindow: 4.0
87 
88 physics.producers.generator.FileName: "/pnfs/dune/persistent/users/dstefan/h4beam/20170823/H4_v34Pre_3GeV_-27.7_1M.root"
89 #physics.producers.generator.FileName: "/dune/data/users/dstefan/beamh4/20170823/H4_v34Pre_3GeV_-27.7_1M.root"
90 physics.producers.generator.Intensity: 0.178e6 # Intensity required to give us a good particle rate of ~25 Hz
91