mcc12_gen_protoDune_beam_cosmics.fcl
Go to the documentation of this file.
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"
6 
7 process_name: SinglesGen
8 
9 services:
10 {
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
18 }
19 
20 #Start each new event with an empty event.
21 source:
22 {
23  module_type: EmptyEvent
24  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
25  maxEvents: 1000000
26  firstRun: 1 # Run number to use for this file
27  firstEvent: 1 # number of first event in the file
28 }
29 
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.
33 physics:
34 {
35 
36  producers:
37  {
38  generator: @local::protodune_beam
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
44  }
45 
46 
47  #define the producer and filter modules for this path, order matters,
48  #filters reject all following items. see lines starting physics.producers below
49  simulate: [ generator, cosmicgenerator, ar39, ar42, kr85, rn222 ]
50 
51  #define the output stream, there could be more than one if using filters
52  stream1: [ out1 ]
53 
54  #trigger_paths is a keyword and contains the paths that modify the art::event,
55  #ie filters and producers
56  trigger_paths: [simulate]
57 
58  #end_paths is a keyword and contains the paths that do not modify the art::Event,
59  #ie analyzers and output streams. these all run simultaneously
60  end_paths: [stream1]
61 }
62 
63 #block to define where the output goes. if you defined a filter in the physics
64 #block and put it in the trigger_paths then you need to put a SelectEvents: {SelectEvents: [XXX]}
65 #entry in the output stream you want those to go to, where XXX is the label of the filter module(s)
66 outputs:
67 {
68  out1:
69  {
70  module_type: RootOutput
71  fileName: "gensingle_protoDUNE.root" #default file name, can override from command line with -o or --output
72  dataTier: "generated"
73  compressionLevel: 1
74  }
75 }
76 
77 #Set generator parameters
78 #Corresponds to beam window at center of left TPC
79 
80 # Specific to the GEANT H4 Beam simulation by Nikos and paths at CERN
81 physics.producers.generator.GoodParticleTreeName: "NTuples/GoodParticle"
82 #physics.producers.generator.AllParticlesTreeName: "Detector/NP04front"
83 physics.producers.generator.AllParticlesTreeName: "Detector/NP04front" # Background particles should fire from here
84 physics.producers.generator.StartEvent: 0
85 # Set the beam position and direction to fire the particles in the desired way
86 #physics.producers.generator.BeamX: 7.966 # In cm, taken from protoDUNE_gensingle.fcl
87 #physics.producers.generator.BeamX: 5.55 # In cm, based on studies of the beam pipe position
88 #physics.producers.generator.BeamY: 460.84
89 #physics.producers.generator.BeamZ: -191.60
90 physics.producers.generator.BeamX: 8.905247 # In cm
91 physics.producers.generator.BeamY: 461.749224
92 physics.producers.generator.BeamZ: -196.11
93 physics.producers.generator.BeamThetaShift: 0.0114276
94 physics.producers.generator.BeamPhiShift: -0.0761654
95 # Specific rotations for the good particles
96 physics.producers.generator.RotateXZ: 0.0
97 physics.producers.generator.RotateYZ: 0.0
98 # Rotations for the final beam monitors and background particles
99 #physics.producers.generator.RotateMonitorsXZ: -10.3 # [Degrees]
100 #physics.producers.generator.RotateMonitorsYZ: 11.7 # [Degrees]
101 # Jake Calcutt: Replacing these with angles for opposite order rotations
102 physics.producers.generator.RotateMonitorsXZ: -10.51372 # [Degrees]
103 physics.producers.generator.RotateMonitorsYZ: 11.50886 # [Degrees]
104 
105 # Jake Calcutt: Extra parameters for beam interface info
106 #physics.producers.generator.L1: 1.98
107 #physics.producers.generator.L2: 1.69472
108 #physics.producers.generator.L3: 2.11666
109 #physics.producers.generator.BeamBend: .12003
110 #
111 #physics.producers.generator.LMag: 2.1645
112 #physics.producers.generator.NominalP: 1.
113 #physics.producers.generator.B: 1.294817
114 
115 
116 # Overlay info
117 physics.producers.generator.ReadoutWindow: 4.0
118 
119 # We will set intensity and file name in the specific .fcl files for each momentum bin.
120