2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 inline BFieldZone::BFieldZone(int id,
13 : BFieldMesh<short>(zmin, zmax, rmin, rmax, phimin, phimax, scale)
18 BFieldZone::appendCond(const BFieldCond& cond)
20 m_cond.push_back(cond);
25 BFieldZone::addBiotSavart(const double* ATH_RESTRICT xyz,
26 double* ATH_RESTRICT B,
27 double* ATH_RESTRICT deriv) const
29 for (unsigned i = 0; i < m_cond.size(); i++) {
30 m_cond[i].addBiotSavart(1, xyz, B, deriv);
35 BFieldZone::id() const
41 BFieldZone::ncond() const
46 inline const BFieldCond&
47 BFieldZone::cond(int i) const
52 inline const std::vector<BFieldCond>*
53 BFieldZone::condVector() const
59 BFieldZone::memSize() const
61 return BFieldMesh<short>::memSize() + sizeof(int) +
62 sizeof(BFieldCond) * m_cond.capacity();
66 BFieldZone::adjustMin(int i, double x)
69 m_mesh[i].front() = x;
73 BFieldZone::adjustMax(int i, double x)