1 #include "services_dune.fcl"
2 #include "singles_dune.fcl"
3 #include "corsika_protodune.fcl"
4 #include "protodunebeam.fcl"
5 #include "dune_radiological_model.fcl"
7 process_name: SinglesGen
11 # Load the service that manages root files for histograms.
12 TFileService: { fileName: "gensingle_protoDUNE_hist.root" }
13 TimeTracker: @local::dune_time_tracker
14 MemoryTracker: @local::dune_memory_tracker
15 RandomNumberGenerator: {} #ART native random number generator
16 FileCatalogMetadata: @local::art_file_catalog_mc
17 @table::protodune_simulation_services
20 #Start each new event with an empty event.
23 module_type: EmptyEvent
24 timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
26 firstRun: 1 # Run number to use for this file
27 firstEvent: 1 # number of first event in the file
30 # Define and configure some modules to do work on each event.
31 # First modules are defined; they are scheduled later.
32 # Modules are grouped by type.
38 generator: @local::protodune_triggeredbeam
39 cosmicgenerator: @local::protodune_corsika_cmc
40 ar39: @local::protodunesp_39ar
41 ar42: @local::protodunesp_42ar
42 kr85: @local::protodunesp_85kr
43 rn222: @local::protodunesp_222rn
47 #define the producer and filter modules for this path, order matters,
48 simulate: [ generator, cosmicgenerator, ar39, ar42, kr85, rn222 ]
50 #define the output stream, there could be more than one if using filters
53 #trigger_paths is a keyword and contains the paths that modify the art::event,
54 #ie filters and producers
55 trigger_paths: [simulate]
57 #end_paths is a keyword and contains the paths that do not modify the art::Event,
58 #ie analyzers and output streams. these all run simultaneously
62 #block to define where the output goes. if you defined a filter in the physics
63 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
64 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
69 module_type: RootOutput
70 fileName: "gensingle_protoDUNE.root" #default file name, can override from command line with -o or --output
76 # Specific to the GEANT H4 Beam simulation by Nikos and paths at CERN
77 physics.producers.generator.GoodParticleTreeName: "NTuples/GoodParticle"
78 physics.producers.generator.AllParticlesTreeName: "Detector/NP04front" # Background particles should fire from here
79 physics.producers.generator.FileName: "/pnfs/dune/persistent/dunepro/beam_data/simulation/G4beamlineVersion3.06/v34b_6GeV_G4beamlineVersion3.06/H4_v34b_6GeV_-27.7_10M_1.root"
80 physics.producers.generator.StartEvent: 0 ## Needs to be iterated for each set of events available in the file above
83 ## This block controls the datadriven primary generator.
84 physics.producers.generator.SamplingFileName: "EventGenerator/ProtoDUNE_DataDrivenBeam/6GeV_PDF.root"
85 physics.producers.generator.ResolutionFileName: "EventGenerator/ProtoDUNE_DataDrivenBeam/6GeV_res.root"
86 physics.producers.generator.NominalP: "6" ## Determines how things are set up on the data driven side
87 ## Options are "0.5" "1" "2" "3" "6" "7" (all strings)
88 physics.producers.generator.UseDataDrivenPrimary: true
90 ## Specific .fcl for the +6 GeV/c momentum setting
91 services.TFileService.fileName: "gen_protoDune_beam_p6GeV_cosmics_datadriven_hist.root"
92 outputs.out1.fileName: "gen_protoDune_beam_p6GeV_cosmics_datadriven.root"