prodcosmics_corsika_protodunedp_gen.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "CORSIKAGendp.fcl"
3 
4 process_name: CorsikaGen
5 
6 services: @local::protodunedphase_simulation_services_legacy
7 
8 # Load the service that manages root files for histograms.
9 services.TFileService: { fileName: "cosmics_corsika_rotation_hist.root" }
10 services.RandomNumberGenerator: {} #ART native random number generator
11 
12 #Start each new event with an empty event.
13 source:
14 {
15  module_type: EmptyEvent
16  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
17  maxEvents: 100 # Number of events to create
18  firstRun: 1 # Run number to use for this file
19  firstEvent: 1 # number of first event in the file
20 }
21 
22 # Define and configure some modules to do work on each event.
23 # First modules are defined; they are scheduled later.
24 # Modules are grouped by type.
25 physics:
26 {
27 
28  producers:
29  {
30  rns: { module_type: "RandomNumberSaver" }
31  generator: @local::standard_CORSIKAGendp_CMC
32  }
33 
34  #define the producer and filter modules for this path, order matters,
35  #filters reject all following items. see lines starting physics.producers below
36  simulate: [ rns,
37  generator
38  ]
39 
40  #define the output stream, there could be more than one if using filters
41  stream1: [ out1 ]
42 
43  #trigger_paths is a keyword and contains the paths that modify the art::event,
44  #ie filters and producers
45  trigger_paths: [simulate]
46 
47  #end_paths is a keyword and contains the paths that do not modify the art::Event,
48  #ie analyzers and output streams. these all run simultaneously
49  end_paths: [stream1]
50 }
51 
52 #block to define where the output goes. if you defined a filter in the physics
53 #block and put it in the trigger_paths then you need to put a
54 SelectEvents: {SelectEvents: [XXX]}
55 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
56 outputs:
57 {
58  out1:
59  {
60  module_type: RootOutput
61  fileName: "cosmics_protodunedp_gen.root" #default file name, can override from command line with -o or --output
62  dataTier: "cosmic-gen"
63  compressionLevel: 1
64  }
65 }
66 
67 #specific to cosmic sim
68 physics.producers.generator.DoRotation: true
69 
70 physics.producers.generator.SampleTime: 8e-3
71 physics.producers.generator.TimeOffset: -4e-3 #4.0 ms readout should start at -0.875 ms to match data
72 physics.producers.generator.BufferBox: [ -300.0, 300.0, -300.0, 300.0, -300.0, 300.0 ] #in cm
73 physics.producers.generator.ShowerAreaExtension: 2000
74 physics.producers.generator.RandomXZShift: 2000 #amount to randomly shift shower start point in x & z [cm] (default is 1000)
75 physics.producers.generator.ProjectToHeight: 856 #height to which particles are projected in cm
76 
77 physics.producers.generator.ShowerInputFiles: [
78  "/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/Cosmics/CERN/CORSIKA/standard/p_showers_*",
79  "/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/Cosmics/CERN/CORSIKA/standard/He_showers_*",
80  "/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/Cosmics/CERN/CORSIKA/standard//N_showers_*",
81  "/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/Cosmics/CERN/CORSIKA/standard//Mg_showers_*",
82  "/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/Cosmics/CERN/CORSIKA/standard//Fe_showers_*"
83  ] #list of sqlite dbs with corsika showers
84 
85