diff --git a/Examples/Algorithms/Geant4/src/MagneticFieldWrapper.cpp b/Examples/Algorithms/Geant4/src/MagneticFieldWrapper.cpp index 3963e57092d..9fe5d4ec3dc 100644 --- a/Examples/Algorithms/Geant4/src/MagneticFieldWrapper.cpp +++ b/Examples/Algorithms/Geant4/src/MagneticFieldWrapper.cpp @@ -37,7 +37,11 @@ void MagneticFieldWrapper::GetFieldValue(const G4double Point[4], convertLength * Point[2]}, bCache); if (!fieldRes.ok()) { - ACTS_ERROR("Field lookup error: " << fieldRes.error()); + if (fabs(Point[0]) < 2000 && fabs(Point[1]) < 2000 && fabs(Point[2]) < 5000) + ACTS_ERROR("Field lookup error: " << fieldRes.error() + << convertLength * Point[0] << " " + << convertLength * Point[1] << " " + << convertLength * Point[2]); return; } // Get the field now diff --git a/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/TrackTruthMatcher.cpp b/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/TrackTruthMatcher.cpp index 5366aadf1af..4c70258dc25 100644 --- a/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/TrackTruthMatcher.cpp +++ b/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/TrackTruthMatcher.cpp @@ -111,9 +111,8 @@ ActsExamples::ProcessCode TrackTruthMatcher::execute( } const bool truthMatched = static_cast(nMajorityHits) / - (abs(eta < 1.5 ? (nParticleTruthHits > 11 ? 11 : nParticleTruthHits) - : nParticleTruthHits)) >= - m_cfg.matchingRatio; + (abs(eta) < 1.5 ? (nParticleTruthHits > 13 ? 13 : nParticleTruthHits) + : nParticleTruthHits) >= m_cfg.matchingRatio; // ### IA: ACTS_DEBUG("nMajorityHits=" diff --git a/Examples/Detectors/Geant4Detector/src/GdmlDetectorConstruction.cpp b/Examples/Detectors/Geant4Detector/src/GdmlDetectorConstruction.cpp index b617cf687b6..08ba3418e7c 100644 --- a/Examples/Detectors/Geant4Detector/src/GdmlDetectorConstruction.cpp +++ b/Examples/Detectors/Geant4Detector/src/GdmlDetectorConstruction.cpp @@ -27,7 +27,7 @@ G4VPhysicalVolume* GdmlDetectorConstruction::Construct() { if (m_world == nullptr) { G4GDMLParser parser; // TODO how to handle errors - parser.Read(m_path); + parser.Read(m_path, false); // IA: // <- validation OFF m_world = parser.GetWorldVolume(); // Create regions