From 94c27feed238f1b6f44bda243feb18e0be66604b Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Fri, 25 Sep 2015 09:24:41 +0000 Subject: [PATCH] DDG4.py Output2ROOT: Only add '.root' extension if it is not already present. Consistent with lcio output --- DDG4/python/DDG4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py index 4bdddce30..8dbc0c815 100644 --- a/DDG4/python/DDG4.py +++ b/DDG4/python/DDG4.py @@ -431,7 +431,7 @@ class Simple: evt_root = EventAction(self.kernel,'Geant4Output2ROOT/'+name) evt_root.HandleMCTruth = mc_truth evt_root.Control = True - evt_root.Output = output+'.root' + evt_root.Output = output + '' if output.endswith('.root') else '.root' evt_root.enableUI() self.kernel.eventAction().add(evt_root) return evt_root -- GitLab