From 62aa6e18132db1bcddd3a9b31de252daf8621e8c Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Thu, 16 Feb 2017 19:03:59 +0100 Subject: [PATCH] TrackerWeightedAction: Fix defaults which caused an empty hit to be stored which broke the MCHistory --- DDG4/plugins/Geant4TrackerWeightedSD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/plugins/Geant4TrackerWeightedSD.cpp b/DDG4/plugins/Geant4TrackerWeightedSD.cpp index 22676ab1b..9d76e316c 100644 --- a/DDG4/plugins/Geant4TrackerWeightedSD.cpp +++ b/DDG4/plugins/Geant4TrackerWeightedSD.cpp @@ -86,7 +86,7 @@ namespace DD4hep { double mean_time = 0.0; double step_length = 0.0; double e_cut = 0.0; - int current = 0; + int current = -1; int parent = 0; int combined = 0; int hit_position_type = POSITION_MIDDLE; -- GitLab