protoDUNE_gensingle_beam.fcl
Go to the documentation of this file.
1 #include "services_dune.fcl"
2 #include "protodunebeam.fcl"
3 
4 process_name: H4BeamGen
5 
6 services:
7 {
8  # Load the service that manages root files for histograms.
9 # TFileService: { fileName: "gensingle_beam_protoDUNE_hist.root" }
10  TimeTracker: {}
11  RandomNumberGenerator: {} #ART native random number generator
12  FileCatalogMetadata: @local::art_file_catalog_mc
13  @table::protodune_simulation_services
14 
15  TFileService: { #closeFileFast: true
16  fileName: "beamevent_hist.root" #can be overridden by '-T'
17  }
18 
19 }
20 
21 #Start each new event with an empty event.
22 source:
23 {
24  module_type: EmptyEvent
25  timestampPlugin: { plugin_type: "GeneratedEventTimestamp" }
26  maxEvents: 100
27  firstRun: 1 # Run number to use for this file
28  firstEvent: 1 # number of first event in the file
29 }
30 
31 physics:
32 {
33  producers:
34  {
35  generator: @local::protodune_beam
36  rns: { module_type: "RandomNumberSaver" }
37  }
38  simulate: [ rns, generator ]
39  stream1: [ out1 ]
40  trigger_paths: [simulate]
41  end_paths: [stream1]
42 }
43 
44 outputs:
45 {
46  out1:
47  {
48  module_type: RootOutput
49  fileName: "genBeam_protoDUNE.root" #default file name, can override from command line with -o or --output
50  dataTier: "generated"
51  compressionLevel: 1
52  }
53 }
54 
55 # Specific to the GEANT H4 Beam simulation by Nikos and paths at CERN
56 #physics.producers.generator.FileName: "/mnt/nas00/scratch/h4/with_mu_halo_wo_shielding/H4_TILT22_APR_TARGSEC_ROTCENT_FTFP_BERT_7GeV_6M_reduced.root"
57 physics.producers.generator.FileName: "/pnfs/dune/persistent/dunepro/beam_data/simulation/mcc10/H4_v34b_1GeV_-27.7_10M_1.root"
58 physics.producers.generator.GoodParticleTreeName: "NTuples/GoodParticle"
59 physics.producers.generator.AllParticlesTreeName: "Detector/NP04FieldCage"
60 physics.producers.generator.StartEvent: 0
61 # Set the beam position and direction to fire the particles in the desired way
62 physics.producers.generator.BeamX: 7.966 # In cm, taken from protoDUNE_gensingle.fcl
63 physics.producers.generator.BeamY: 460.84
64 physics.producers.generator.BeamZ: -191.60
65 
66 physics.producers.generator.RotateXZ: -11.844 # In degrees, taken from protoDUNE_gensingle.fcl
67 physics.producers.generator.RotateYZ: 11.107