Skip to content

Commit 06570d5

Browse files
Merge pull request #888 from SBNSoftware/bugfix/linyan_g4bnb_v1_1_1
Update g4bnb versions & add back the bypassed version check
2 parents da97ccd + 8c17663 commit 06570d5

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

sbndcode/LArSoftConfigurations/gen/genie_sbnd.fcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ sbnd_flux_g4bnb_1_0_0_fhc: {
236236
FluxType: "dk2nu"
237237
DetectorLocation: "SBND"
238238
FluxCopyMethod: "DIRECT"
239-
FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/G4BNB/v1.1.0/fhc/a/"
239+
FluxSearchPaths: "/cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/G4BNB/v1.1.1/fhc/a/"
240240
FluxFiles: [ "NuBeam_production_BooNE_50m_I174000A_*.dk2nu.root" ]
241241
}
242242

@@ -385,7 +385,7 @@ sbnd_genie_simple_rockbox: {
385385
# As we are changing the FV we need to recalculate the maximum path lengths
386386
# This file was generated by running with:
387387
# GeomScan: "flux: 10000 1.1 1"
388-
GeomScan: "file: GENIE/sbnd_rock_maxpathlength_fluxG4_gdmlv02_06.xml"
388+
GeomScan: "file: GENIE/sbnd_rock_maxpathlength_fluxG4v1.1.1_gdmlv02_06.xml"
389389
}
390390

391391
# Rotated bucket configuration

test/GENIE/check_genie_geom_scan.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
pset_geom_scan = pset['physics']['producers']['generator']['GeomScan']
99

10-
geom_scan_flux_config = pset_geom_scan.split('flux')[1][:2]
10+
geom_scan_flux_config = pset_geom_scan.split('fluxG4v')[1][:5]
1111
geom_scan_gdml_version = pset_geom_scan.split('gdml')[1][:6]
1212

1313
print('Using GeomScan file:', pset_geom_scan)
@@ -22,18 +22,18 @@
2222
pset_flux = pset['physics']['producers']['generator']['FluxSearchPaths']
2323
print('Using:', pset_flux, pset_gdml)
2424

25-
#flux_config = pset_flux.split('config')[1][0]
25+
flux_config = pset_flux.split('G4BNB/v')[1][:5]
2626
gdml_version = pset_gdml.split('sbnd_')[1][:6]
2727

2828
print('\t -> gdml version:', gdml_version)
29-
#print('\t -> flux configuration:', flux_config)
29+
print('\t -> flux configuration:', flux_config)
3030

3131
#
3232
# Check that the two are the same, if not, need to regenerate the GeomScan file
3333
#
3434
message = 'Please regenerate the GeomScan file. Instructions are in fcl file make_genie_geomscan_file_sbnd.fcl.'
3535

36-
#assert geom_scan_flux_config == flux_config, f"Have you updated/changed the flux files? {message}"
36+
assert geom_scan_flux_config == flux_config, f"Have you updated/changed the flux files? {message}"
3737

3838
assert geom_scan_gdml_version == gdml_version, f"Have you updated/changed the GDML file? {message}"
3939

ups/product_deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ end_qualifier_list
326326
####################################
327327
table_fragment_begin
328328
# currently, XML pandora files are installed in 'scripts':
329-
pathPrepend(GDK2NUFLUXXML, /cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/G4BNB/v1.1.0/GNuMIFlux.xml)
329+
pathPrepend(GDK2NUFLUXXML, /cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash/fluxFiles/bnb/G4BNB/GNuMIFlux.xml)
330330
pathPrepend(FW_SEARCH_PATH, ${SBNDCODE_DIR}/scripts)
331331
pathPrepend(FW_SEARCH_PATH, ${SBND_DATA_DIR}/CalibrationDatabase)
332332
pathPrepend(FW_SEARCH_PATH, /cvmfs/sbnd.osgstorage.org/pnfs/fnal.gov/usr/sbnd/persistent/stash)

0 commit comments

Comments
 (0)