diff --git a/DDG4/lcio/LCIOSDTestActions.cpp b/DDG4/lcio/LCIOSDTestActions.cpp index 421c820945eaa0d616b0529454c866ca8e802de3..3e7d4e02664c3f41229a2c123e93964856ec6598 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 b87c0cd2137f01f106ba33452ba86443b18634d4..6189182c0eec63c1118eb6d020d4eb311b4aad72 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