2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
6 BFieldCacheZR::invalidate()
12 BFieldCacheZR::setRange(double zmin, double zmax, double rmin, double rmax)
18 m_invz = 1.0 / (zmax - zmin);
19 m_invr = 1.0 / (rmax - rmin);
21 // set the field values at each corner (rescale for current scale factor)
23 BFieldCacheZR::setField(int i, const BFieldVectorZR& field, double scaleFactor)
25 m_field[0][i] = scaleFactor * field[0];
26 m_field[1][i] = scaleFactor * field[1];
29 BFieldCacheZR::inside(double z, double r) const
31 return (z >= m_zmin && z <= m_zmax && r >= m_rmin && r <= m_rmax);