diff --git a/Detectors/FastSim/src/FastSimModel.cxx b/Detectors/FastSim/src/FastSimModel.cxx index 56de788834a90..2237d0cd5e69c 100644 --- a/Detectors/FastSim/src/FastSimModel.cxx +++ b/Detectors/FastSim/src/FastSimModel.cxx @@ -129,7 +129,7 @@ void FastSimModel::DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep) const G4VSolid* envelopeSolid = touchable->GetVolume(level)->GetLogicalVolume()->GetSolid(); input.exitDistance = envelopeSolid->DistanceToOut(toLocal.TransformPoint(position), - toLocal.TransformAxis(direction)) / + toLocal.TransformAxis(direction)) / CLHEP::cm; const std::vector outgoing = sample(input); diff --git a/Detectors/FastSim/src/G4FastSimulation.cxx b/Detectors/FastSim/src/G4FastSimulation.cxx index c9024bc294da5..6349084fdf04d 100644 --- a/Detectors/FastSim/src/G4FastSimulation.cxx +++ b/Detectors/FastSim/src/G4FastSimulation.cxx @@ -40,8 +40,7 @@ std::vector split(const std::string& value, char sep) //_____________________________________________________________________________ G4FastSimulation::G4FastSimulation(std::vector models, const std::string& envelope, double minEnergyGeV) - : TG4VUserFastSimulation(), mModels(std::move(models)), mEnvelope(envelope), - mMinEnergy(minEnergyGeV) + : TG4VUserFastSimulation(), mModels(std::move(models)), mEnvelope(envelope), mMinEnergy(minEnergyGeV) { // Only the model itself can be declared here: this constructor runs before the // geometry exists, so the regions cannot be derived yet. They are set later by