From b7af7238cf536ea26b66d40398e0998fe0859c94 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Tue, 19 Jul 2022 09:11:24 +0200
Subject: [PATCH] Remove compiler errors

---
 DDG4/lcio/LCIOSDTestActions.cpp  | 4 ++--
 DDG4/plugins/Geant4SDActions.cpp | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/DDG4/lcio/LCIOSDTestActions.cpp b/DDG4/lcio/LCIOSDTestActions.cpp
index 421c82094..3e7d4e026 100644
--- a/DDG4/lcio/LCIOSDTestActions.cpp
+++ b/DDG4/lcio/LCIOSDTestActions.cpp
@@ -74,7 +74,7 @@ namespace  Tests {
       Base::end(hce);
     }
     /// G4VSensitiveDetector interface: Method for generating hit(s) using the G4Step object.
-    virtual bool process(G4Step* step, G4TouchableHistory* history)  override   {
+    virtual bool process(const G4Step* step, G4TouchableHistory* history)  override   {
       return Base::process(step,history);
     }
     /// GFlash/FastSim interface: Method for generating hit(s) using the G4Step object.
@@ -106,7 +106,7 @@ namespace  Tests {
   }
 
   /// Method for generating hit(s) using the information of G4Step object.
-  template <> bool Geant4SensitiveAction<LcioTestTracker>::process(G4Step* step,G4TouchableHistory* /*hist*/ ) {
+  template <> bool Geant4SensitiveAction<LcioTestTracker>::process(const G4Step* step,G4TouchableHistory* /*hist*/ ) {
     Geant4StepHandler h(step);
 
     Position prePos    = h.prePos();
diff --git a/DDG4/plugins/Geant4SDActions.cpp b/DDG4/plugins/Geant4SDActions.cpp
index b87c0cd21..6189182c0 100644
--- a/DDG4/plugins/Geant4SDActions.cpp
+++ b/DDG4/plugins/Geant4SDActions.cpp
@@ -542,11 +542,11 @@ namespace dd4hep {
       }
       void update(const Geant4StepHandler& h) {
         post.storePoint(h.step, h.post);
-	update_collected_hit(h.preTouchable(), std::move(h.avgPositionG4())); // Compute cellID
+	update_collected_hit(h.preTouchable(), h.avgPositionG4()); // Compute cellID
       }
       void update(const Geant4FastSimHandler& h)   {
         post.storePoint(h.spot);
-	update_collected_hit(h.touchable(), std::move(h.avgPositionG4()));       // Compute cellID
+	update_collected_hit(h.touchable(), h.avgPositionG4());       // Compute cellID
       }
 
       /// Clear collected information and restart for new hit
-- 
GitLab