From c3ca5430c8cedc56be8dc1e38312c4932b076706 Mon Sep 17 00:00:00 2001
From: Will Buttinger <william.buttinger@cern.ch>
Date: Thu, 30 Aug 2018 15:08:45 +0000
Subject: [PATCH] Update generatePRW_jobOptions.py - add the error handler,
 should be using this in the production jobs for safety.

Former-commit-id: 2ad4d4131fab83d7b40ea1ed026a194d66c852eb
---
 .../PileupReweighting/share/generatePRW_jobOptions.py          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PhysicsAnalysis/AnalysisCommon/PileupReweighting/share/generatePRW_jobOptions.py b/PhysicsAnalysis/AnalysisCommon/PileupReweighting/share/generatePRW_jobOptions.py
index 415ae2d07fb..65955658a94 100644
--- a/PhysicsAnalysis/AnalysisCommon/PileupReweighting/share/generatePRW_jobOptions.py
+++ b/PhysicsAnalysis/AnalysisCommon/PileupReweighting/share/generatePRW_jobOptions.py
@@ -1,5 +1,8 @@
 theApp.EvtMax=-1                                         #says how many events to run over. Set to -1 for all events
 
+#Include error handler for safety purposes
+theApp.CreateSvc += ["AthROOTErrorHandlerSvc"]
+
 #import AthenaPoolCnvSvc.ReadAthenaPool                   #sets up reading of POOL files (e.g. xAODs)
 import AthenaRootComps.ReadAthenaxAODHybrid
 svcMgr.EventSelector.AccessMode=1 #use class access mode ... I know it's wrong, but it should be ok just for the EventInfo information
-- 
GitLab