Belle II Software  release-05-02-19
BFieldComponentConstant.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Andreas Moll *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef BFIELDCOMPONENTCONSTANT_H
12 #define BFIELDCOMPONENTCONSTANT_H
13 
14 #include <geometry/bfieldmap/BFieldComponentAbs.h>
15 
16 namespace Belle2 {
27  class BFieldComponentConstant : public BFieldComponentAbs {
28 
29  public:
30 
32  BFieldComponentConstant() = default;
33 
35  virtual ~BFieldComponentConstant() = default;
36 
43  virtual B2Vector3D calculate(const B2Vector3D& point) const override;
44 
51  void setMagneticFieldValues(double x, double y, double z, double rmax, double zmin, double zmax);
52 
53  private:
55  double m_magneticField[3] {0};
57  double maxRadius4BField{0};
59  double minZ4BField{0};
61  double maxZ4BField{0};
62 
63  };
64 
66 } //end of namespace Belle2
67 
68 #endif /* BFIELDCOMPONENTCONSTANT_H */
Belle2::BFieldComponentConstant::setMagneticFieldValues
void setMagneticFieldValues(double x, double y, double z, double rmax, double zmin, double zmax)
Sets the values for the homogeneous magnetic field vector.
Definition: BFieldComponentConstant.cc:24
Belle2::BFieldComponentConstant::m_magneticField
double m_magneticField[3]
The values for the homogeneous magnetic field vector.
Definition: BFieldComponentConstant.h:63
Belle2::BFieldComponentConstant::calculate
virtual B2Vector3D calculate(const B2Vector3D &point) const override
Calculates the magnetic field vector at the specified space point.
Definition: BFieldComponentConstant.cc:16
Belle2::B2Vector3< double >
Belle2::BFieldComponentConstant::minZ4BField
double minZ4BField
The values for the minimum z position for the homogeneous field.
Definition: BFieldComponentConstant.h:67
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BFieldComponentConstant::~BFieldComponentConstant
virtual ~BFieldComponentConstant()=default
The BFieldComponentConstant destructor.
Belle2::BFieldComponentConstant::BFieldComponentConstant
BFieldComponentConstant()=default
The BFieldComponentConstant constructor.
Belle2::BFieldComponentConstant::maxZ4BField
double maxZ4BField
The values for the maximum z position for the homogeneous field.
Definition: BFieldComponentConstant.h:69
Belle2::BFieldComponentConstant::maxRadius4BField
double maxRadius4BField
The values for the maximum radius for the homogeneous field.
Definition: BFieldComponentConstant.h:65