From 58aa19bb7aac21a4e49f0b43520f580f08db95af Mon Sep 17 00:00:00 2001
From: David Blyth <dblyth@anl.gov>
Date: Mon, 7 May 2018 18:07:43 +0000
Subject: [PATCH] Bug fix: Geant4FieldTrackingSetup: fixed incorrect callback
 for Geant4FieldTrackingConstruction

Previously was overloading operator(), now is constructField()
---
 DDG4/plugins/Geant4FieldTrackingSetup.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/DDG4/plugins/Geant4FieldTrackingSetup.cpp b/DDG4/plugins/Geant4FieldTrackingSetup.cpp
index 82f110563..26eabed83 100644
--- a/DDG4/plugins/Geant4FieldTrackingSetup.cpp
+++ b/DDG4/plugins/Geant4FieldTrackingSetup.cpp
@@ -112,8 +112,8 @@ namespace dd4hep {
       /// Default destructor
       virtual ~Geant4FieldTrackingConstruction() {}
 
-      /// Phase action callback
-      void operator()();
+      /// Detector construction callback
+      void constructField(Geant4DetectorConstructionContext *ctxt);
 
     };
   }    // End namespace sim
@@ -284,8 +284,8 @@ Geant4FieldTrackingConstruction::Geant4FieldTrackingConstruction(Geant4Context*
   declareProperty("largest_step",       largest_step = -1.0);
 }
 
-/// Post-track action callback
-void Geant4FieldTrackingConstruction::operator()()   {
+/// Detector construction callback
+void Geant4FieldTrackingConstruction::constructField(Geant4DetectorConstructionContext *) {
   execute(context()->detectorDescription());
   printout( INFO, "FieldSetup", "Geant4 magnetic field tracking configured.");
   printout( INFO, "FieldSetup", "G4MagIntegratorStepper:%s G4Mag_EqRhs:%s",
-- 
GitLab