From f09b86a442d47f2d58c6870a04054ea04414646a Mon Sep 17 00:00:00 2001 From: Marco Del Tutto Date: Fri, 27 Oct 2017 08:19:21 -0500 Subject: [PATCH 1/2] bug fix when reading pdg code from database --- Modules/UBXSec_module.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/UBXSec_module.cc b/Modules/UBXSec_module.cc index b99b63c2..9168ed27 100644 --- a/Modules/UBXSec_module.cc +++ b/Modules/UBXSec_module.cc @@ -646,6 +646,7 @@ void UBXSec::produce(art::Event & e) { if (mc_par.StatusCode() != 1) continue; n_genie_particles ++; const TParticlePDG* par_pdg = _database_pdg->GetParticle(mc_par.PdgCode()); + if (!par_pdg) continue; if (par_pdg->Charge() == 0) continue; n_genie_particles_charged ++; } From 3c84438775876e8d497979dc07f5e300936e859c Mon Sep 17 00:00:00 2001 From: Marco Del Tutto Date: Fri, 27 Oct 2017 08:19:31 -0500 Subject: [PATCH 2/2] xml update --- Utils/xml/run_grid_ubxsec_data_extbnb_group2.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/xml/run_grid_ubxsec_data_extbnb_group2.xml b/Utils/xml/run_grid_ubxsec_data_extbnb_group2.xml index eec4377f..ca5139e3 100644 --- a/Utils/xml/run_grid_ubxsec_data_extbnb_group2.xml +++ b/Utils/xml/run_grid_ubxsec_data_extbnb_group2.xml @@ -42,7 +42,7 @@ mdeltutt_prod_reco2_extbnb_v9_mcc8_group2 15 - /pnfs/uboone/scratch/users/mdeltutt/&release;/ubxsec_&ubxsec_version;_data_extbnb_group2; + /pnfs/uboone/scratch/users/mdeltutt/&release;/ubxsec_&ubxsec_version;_data_extbnb_group2 &PNFSpath;grid_workdir_ubxsec_data_extbnb_group2 30 ubana