Belle II Software light-2406-ragdoll
BFieldComponentConstant.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <geometry/bfieldmap/BFieldComponentAbs.h>
12
13namespace Belle2 {
25
26 public:
27
30
32 virtual ~BFieldComponentConstant() = default;
33
40 virtual ROOT::Math::XYZVector calculate(const ROOT::Math::XYZVector& point) const override;
41
51 void setMagneticFieldValues(double x, double y, double z, double rmax, double zmin, double zmax);
52
53 private:
55 double m_magneticField[3] {0};
59 double minZ4BField{0};
61 double maxZ4BField{0};
62
63 };
64
66} //end of namespace Belle2
The BFieldComponentAbs class.
The BFieldComponentConstant class.
virtual ~BFieldComponentConstant()=default
The BFieldComponentConstant destructor.
double maxZ4BField
The values for the maximum z position for the homogeneous field.
double maxRadius4BField
The values for the maximum radius for the homogeneous field.
BFieldComponentConstant()=default
The BFieldComponentConstant constructor.
virtual ROOT::Math::XYZVector calculate(const ROOT::Math::XYZVector &point) const override
Calculates the magnetic field vector at the specified space point.
void setMagneticFieldValues(double x, double y, double z, double rmax, double zmin, double zmax)
Sets the values for the homogeneous magnetic field vector.
double m_magneticField[3]
The values for the homogeneous magnetic field vector.
double minZ4BField
The values for the minimum z position for the homogeneous field.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24