1 #include "services_dune.fcl"
2 #include "singles_dune.fcl"
3 #include "corsika_protodune.fcl"
4 #include "protodunebeam.fcl"
6 process_name: SinglesGen
10 # Load the service that manages root files for histograms.
11 TFileService: { fileName: "gensingle_protoDUNE_hist.root" }
13 RandomNumberGenerator: {} #ART native random number generator
14 FileCatalogMetadata: @local::art_file_catalog_mc
15 @table::protodune_simulation_services
18 #Start each new event with an empty event.
21 module_type: EmptyEvent
22 timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
24 firstRun: 1 # Run number to use for this file
25 firstEvent: 1 # number of first event in the file
28 # Define and configure some modules to do work on each event.
29 # First modules are defined; they are scheduled later.
30 # Modules are grouped by type.
36 generator: @local::protodune_beam
37 rns: { module_type: "RandomNumberSaver" }
41 #define the producer and filter modules for this path, order matters,
42 #filters reject all following items. see lines starting physics.producers below
43 simulate: [ rns, generator ]
45 #define the output stream, there could be more than one if using filters
48 #trigger_paths is a keyword and contains the paths that modify the art::event,
49 #ie filters and producers
50 trigger_paths: [simulate]
52 #end_paths is a keyword and contains the paths that do not modify the art::Event,
53 #ie analyzers and output streams. these all run simultaneously
57 #block to define where the output goes. if you defined a filter in the physics
58 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
59 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
64 module_type: RootOutput
65 fileName: "gensingle_protoDUNE.root" #default file name, can override from command line with -o or --output
71 #Set generator parameters
72 #Corresponds to beam window at center of left TPC
74 # Specific to the GEANT H4 Beam simulation by Nikos and paths at CERN
75 #physics.producers.generator.FileName: "/pnfs/dune/persistent/users/dstefan/h4/H4_TILT22_APR_FTFP_BERT_1GeV_6M.root"
76 physics.producers.generator.TreeName: "NTuples/GoodParticle"
77 physics.producers.generator.StartEvent: 0
78 # Set the beam position and direction to fire the particles in the desired way
79 physics.producers.generator.BeamX: 8.0757 # In cm, taken from protoDUNE_gensingle.fcl
80 physics.producers.generator.BeamY: 461.06
81 physics.producers.generator.BeamZ: -196.11
82 physics.producers.generator.RotateXZ: -11.844 # In degrees, taken from protoDUNE_gensingle.fcl
83 physics.producers.generator.RotateYZ: 11.107