From 0ed5e351490731f9dfd8738e6c4933c77d843cbd Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Fri, 27 Jan 2017 10:53:28 +0100
Subject: [PATCH] DDSim: Change default tracker action to
 Geant4TrackerWeightedAction

This is the more sensible default and needed by the track reconstruction. Avoid problems when people don't use steering files
Parameters set for Geant4TrackerWeightedAction are the defaults
---
 DDSim/Helper/Action.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DDSim/Helper/Action.py b/DDSim/Helper/Action.py
index 5732da340..2252840e0 100644
--- a/DDSim/Helper/Action.py
+++ b/DDSim/Helper/Action.py
@@ -8,7 +8,7 @@ class Action( ConfigHelper ):
   The default tracker and calorimeter actions can be set with
 
   >>> SIM = DD4hepSimulation()
-  >>> SIM.action.tracker = "Geant4TrackerAction"
+  >>> SIM.action.tracker = ('Geant4TrackerWeightedAction', {'HitPositionCombination': 2, 'CollectSingleDeposits': False})
   >>> SIM.action.calo    = "Geant4CalorimeterAction"
 
   for specific subdetectors specific sensitive detectors can be set based on pattern matching
@@ -24,7 +24,7 @@ class Action( ConfigHelper ):
   """
   def __init__( self ):
     super(Action, self).__init__()
-    self._tracker = 'Geant4TrackerAction'
+    self._tracker = ('Geant4TrackerWeightedAction', {'HitPositionCombination': 2, 'CollectSingleDeposits': False})
     self._calo = 'Geant4ScintillatorCalorimeterAction'
     self._mapActions = dict()
 
-- 
GitLab