Skip to content

Commit c0afc14

Browse files
Merge pull request #854 from SBNSoftware/feature/mdeltutt_g4bnb
Adopt G4BNB v1.1.0 Flux Files
2 parents ff12f23 + 93c689a commit c0afc14

26 files changed

Lines changed: 357 additions & 10 deletions
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
#include "CAFMaker.fcl"
2+
3+
#include "services_sbnd.fcl"
4+
#include "geometry_sbnd.fcl"
5+
#include "simulationservices_sbnd.fcl"
6+
7+
#include "larproperties.fcl"
8+
#include "backtrackerservice.fcl"
9+
#include "detectorproperties_sbnd.fcl"
10+
#include "particleinventoryservice.fcl"
11+
#include "photonbacktrackerservice.fcl"
12+
#include "mccheatermodules.fcl"
13+
14+
15+
#include "cafmaker_common_defs.fcl"
16+
#include "eventweight_genie_systtools.fcl"
17+
18+
process_name: CAFmaker
19+
20+
services:
21+
{
22+
# Load the service that manages root files for histograms.
23+
# scheduler: {wantTracer : false wantSummary : false}
24+
TimeTracker: {}
25+
RandomNumberGenerator: {} #ART native random number generator
26+
TFileService: { fileName: "fullchain_production_hist_prod5.root" closeFileFast: false }
27+
# scheduler: { wantTracer: false wantSummary: true }
28+
message: { debugModules: ["*"] destinations: { debugmsg:{type: "cout" threshold: "INFO"} } }
29+
TimeTracker: { printSummary: true }
30+
# # @table::standard_services
31+
32+
WireReadout: @local::sbnd_wire_readout
33+
GeometryConfigurationWriter: {}
34+
Geometry: @local::sbnd_geo
35+
AuxDetGeometry: @local::sbnd_auxdetgeo
36+
LArPropertiesService: @local::standard_properties
37+
DetectorClocksService: @local::sbnd_services.DetectorClocksService
38+
DetectorPropertiesService: @local::sbnd_detproperties
39+
ChannelStatusService: @local::sbnd_channelstatus
40+
ParticleInventoryService: @local::sbnd_particleinventoryservice
41+
BackTrackerService: @local::sbnd_backtrackerservice
42+
SpaceCharge: @local::sbnd_spacecharge
43+
NuRandomService: {
44+
policy: perEvent
45+
}
46+
}
47+
48+
# services.IFBeam: {}
49+
# services.BackTracker: @local::standard_backtracker
50+
51+
# Define and configure some modules to do work on each event.
52+
# First modules are defined; they are scheduled later.
53+
# Modules are grouped by type.
54+
physics:
55+
{
56+
producers: {
57+
58+
@table::cafmaker_common_producers
59+
systtools: @local::sbn_systtools
60+
cafmaker: @local::standard_cafmaker
61+
62+
}
63+
filters: {
64+
}
65+
analyzers: {
66+
}
67+
68+
runprod: [ rns
69+
, systtools
70+
, fluxweight
71+
, cafmaker
72+
]
73+
74+
stream1: [ ]
75+
trigger_paths: [ runprod ]
76+
end_paths: [ stream1 ]
77+
}
78+
79+
# Overwrite weight_functions label:
80+
physics.producers.fluxweight.weight_functions: @local::physics.producers.fluxweight.weight_functions_flux
81+
82+
physics.producers.cafmaker.SystWeightLabels: [ "systtools", "fluxweight" ]
83+
84+
# Blinding not needed for MC
85+
physics.producers.cafmaker.CreateBlindedCAF: false
86+
87+
# Save GENIE event record for MC
88+
# Turn this to false for data CAFMaker
89+
# More details can be found in here: https://sbn-docdb.fnal.gov/cgi-bin/sso/ShowDocument?docid=36869
90+
physics.producers.cafmaker.SaveGENIEEventRecord: true
91+
92+
physics.producers.cafmaker.FillTrueParticles: true
93+
physics.producers.cafmaker.FillHits: false
94+
physics.producers.cafmaker.FillTrackCaloTruth: false
95+
physics.producers.cafmaker.FillHitsAllSlices: false
96+
physics.producers.cafmaker.FillHitsNeutrinoSlices: false
97+
98+
99+

sbndcode/JobConfigurations/standard/gen/genie/other_flux_config/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ add_subdirectory(flux_confige)
55
add_subdirectory(flux_configf)
66
add_subdirectory(flux_configg)
77
add_subdirectory(flux_configh)
8+
add_subdirectory(flux_configk)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
install_fhicl()
2+
3+
FILE(GLOB fcl_files *.fcl)
4+
install_source(EXTRAS ${fcl_files} )
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Simulates GENIE nue and anue neutrino interactions from the BNB beam
2+
# with the beam spill structure, inside the TPC volume
3+
# (with 10 cm padding on each side).
4+
5+
#include "prodgenie_intrnue_spill_tpc_sbnd.fcl"
6+
7+
physics.producers.generator: {
8+
@table::physics.producers.generator
9+
@table::sbnd_flux_bnb_nu_Kv1
10+
}
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "prodgenie_nu_spill_cryostat_sbnd.fcl"
2+
3+
physics.producers.generator: {
4+
@table::physics.producers.generator
5+
@table::sbnd_flux_bnb_nu_Kv1
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "prodgenie_nu_spill_tpc_fullosc_sbnd.fcl"
2+
3+
physics.producers.generator: {
4+
@table::physics.producers.generator
5+
@table::sbnd_flux_bnb_nu_Kv1
6+
}
7+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "prodgenie_nu_spill_tpc_nue_sbnd.fcl"
2+
3+
physics.producers.generator: {
4+
@table::physics.producers.generator
5+
@table::sbnd_flux_bnb_nu_Kv1
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "prodgenie_nu_spill_tpc_sbnd.fcl"
2+
3+
physics.producers.generator: {
4+
@table::physics.producers.generator
5+
@table::sbnd_flux_bnb_nu_Kv1
6+
}
7+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Simulates GENIE neutrino interactions from the BNB beam
2+
# with the beam spill structure, inside the TPC volume
3+
# (with a 10 cm padding on each side).
4+
5+
#include "prodgenie_nu_spill_cryostat_sbnd.fcl"
6+
7+
# Flux in beamdump mode
8+
#include "set_flux_beamdump.fcl"
9+
10+
# Interactions in the tpc only
11+
#include "set_genie_tpc.fcl"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Simulates GENIE neutrino interactions from the BNB beam
2+
# with the beam spill structure, inside the TPC volume
3+
# (with a 10 cm padding on each side).
4+
5+
#include "prodgenie_nu_spill_cryostat_sbnd.fcl"
6+
7+
# Flux in beamdump mode
8+
#include "set_flux_fhc_g4bnb.fcl"
9+
10+
# Interactions in the tpc only
11+
#include "set_genie_tpc.fcl"
12+
13+
# Fully oscillate the flux
14+
physics.producers.generator.MixerConfig: "map 12:14 -12:-14 14:12 -14:-12"

0 commit comments

Comments
 (0)