Skip to content
Snippets Groups Projects
Commit 42734e40 authored by R D Schaffer's avatar R D Schaffer
Browse files

see mismatch with zone lookup and zone->inside check for muons. Try only for...

see mismatch with zone lookup and zone->inside check for muons. Try only for solenoid for the moment, until mismatch is understood.
parent a3e7e27e
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,9 @@ inline bool
MagField::AtlasFieldCache::fillFieldCache(double z, double r, double phi)
{
// Get a new zone from the map ONLY if we are no longer in the current zone
if (!m_zone3d || !m_zone3d->inside( z, r, phi )) {
// (see problems outside soleniod for this logic, try for the moment to only optimize for solenoid,
// id = 7000. RDS 2021/12)
if (!m_zone3d || m_zone3d->id() != 7000 || !m_zone3d->inside( z, r, phi )) {
// search for the zone
m_zone3d = m_fieldMap ? m_fieldMap->findBFieldZone(z, r, phi) : nullptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment