Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Examples/Algorithms/Geant4/src/MagneticFieldWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ ActsExamples::ProcessCode TrackTruthMatcher::execute(
}
const bool truthMatched =
static_cast<double>(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="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down