When I run my code on my local tier 3, it works fine.
On the grid, it prints errors related to being unable to correctly load dictionaries, then segfaults.
The output on the grid is at https://gist.github.com/beojan/c5ef14f472798e40ba3aacf1d41f0488
I load LCG 96, then set PATH and LD_LIBRARY_PATH to include my build directory. Do any other environment variables need to be set?
EDIT: The local output is (albeit for three datasets rather than one):
[2019-07-26 15:21:54 (+01:00)] [8645] [info] No trigger-list provided, using default trigger list
Error in <TCling::RegisterModule>: cannot find dictionary module libdictionary_rdict.pcm
[2019-07-26 15:21:55 (+01:00)] [8645] [info] MC Run. Found 3 DSID(s) in input.
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Normalizing to 1 /fb
[2019-07-26 15:21:55 (+01:00)] [8645] [info] DSID: 450259 -- MadGraph.2.6.1+Herwig7.7.1.3+EvtGen.1.6.0
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Cross-section: 2359.4 fb
[2019-07-26 15:21:55 (+01:00)] [8645] [info] K factor: 1
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Generator filter efficiency: 0.3392
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Sum of weights: 3.73e+05
[2019-07-26 15:21:55 (+01:00)] [8645] [info] DSID: 450253 -- MadGraph.2.6.1+Herwig7.7.1.3+EvtGen.1.6.0
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Cross-section: 336430 fb
[2019-07-26 15:21:55 (+01:00)] [8645] [info] K factor: 1
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Generator filter efficiency: 0.3392
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Sum of weights: 9.05e+07
[2019-07-26 15:21:55 (+01:00)] [8645] [info] DSID: 450258 -- MadGraph.2.6.1+Herwig7.7.1.3+EvtGen.1.6.0
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Cross-section: 4797.7 fb
[2019-07-26 15:21:55 (+01:00)] [8645] [info] K factor: 1
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Generator filter efficiency: 0.3392
[2019-07-26 15:21:55 (+01:00)] [8645] [info] Sum of weights: 9.12e+05
[2019-07-26 15:21:57 (+01:00)] [8645] [info] Writing to scalar2-bdt.root
[2019-07-26 15:22:01 (+01:00)] [8645] [info] Writing TTree - sig...
[2019-07-26 15:22:03 (+01:00)] [8645] [info] Writing TTree - fullmassplane...
[2019-07-26 15:22:07 (+01:00)] [8645] [info] Writing TTree - control...
[2019-07-26 15:22:08 (+01:00)] [8645] [info] Writing TTree - sideband...
[2019-07-26 15:22:09 (+01:00)] [8645] [info] Writing TTree - leptop_muon...
[2019-07-26 15:22:09 (+01:00)] [8645] [info] Writing TTree - leptop_hadron...
[2019-07-26 15:22:09 (+01:00)] [8645] [info] Writing TTree - hadtop...
[2019-07-26 15:22:09 (+01:00)] [8645] [info] Writing TTree - top_multijet...
[2019-07-26 15:22:14 (+01:00)] [8645] [info] Writing cutflows
[2019-07-26 15:22:14 (+01:00)] [8645] [info] Written 2 tag cutflow
[2019-07-26 15:22:14 (+01:00)] [8645] [info] Written 4 tag cutflow
ROOT Version: 6.18
Platform: LCG 96 on CC7
Compiler: GCC 8.2