Skip to content
Snippets Groups Projects
Commit 1d21e430 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

MagFieldElements: fix uninit members

parent 9a21a926
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
//
......@@ -21,8 +21,6 @@
class BFieldCacheZR
{
public:
// default constructor sets unphysical boundaries, so that inside() will fail
BFieldCacheZR();
// invalidate this cache, so that inside() will fail
void invalidate();
// set the z, r range that defines the bin
......@@ -40,9 +38,10 @@ public:
double* ATH_RESTRICT deriv = nullptr) const;
private:
double m_zmin, m_zmax; // bin range in z
double m_rmin, m_rmax; // bin range in r
double m_invz, m_invr; // 1/(bin size) in z, r
// default unphysical boundaries, so that inside() will fail
double m_zmin{0}, m_zmax{-1}; // bin range in z
double m_rmin{0}, m_rmax{-1}; // bin range in r
double m_invz{-1}, m_invr{-1}; // 1/(bin size) in z, r
double m_field[2][4]; // (Bz,Br) at 4 corners of the bin
};
#include "MagFieldElements/BFieldCacheZR.icc"
......
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
inline BFieldCacheZR::BFieldCacheZR()
: m_zmin(0.0)
, m_zmax(-1.0)
, m_rmin(0.0)
, m_rmax(-1.0)
, m_invz(-1.0)
, m_invr(-1.0)
{}
inline void
BFieldCacheZR::invalidate()
{
......
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
/*
......@@ -60,7 +60,7 @@ private:
// look-up table and related variables
std::array<std::vector<int>, 2> m_LUT;
std::array<double, 2> m_invUnit; // inverse unit size in the LUT
int m_zoff;
int m_zoff{0};
};
#include "MagFieldElements/BFieldMeshZR.icc"
......
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