Belle II Software  release-05-02-19
BFieldComponentAbs.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 BFIELDCOMPONENTABS_H
12 #define BFIELDCOMPONENTABS_H
13 
14 #include <framework/geometry/B2Vector3.h>
15 
16 namespace Belle2 {
33  class BFieldComponentAbs {
34 
35  public:
36 
38  BFieldComponentAbs() = default;
39 
41  virtual ~BFieldComponentAbs() = default;
42 
48  virtual void initialize() {};
49 
62  virtual B2Vector3D calculate(const B2Vector3D& point) const = 0;
63 
69  virtual void terminate() {};
70 
71 
72  protected:
73 
74  private:
75 
76  };
77 
79 } //end of namespace Belle2
80 
81 #endif /* BFIELDCOMPONENTABS_H */
Belle2::BFieldComponentAbs::initialize
virtual void initialize()
Initializes the magnetic field component.
Definition: BFieldComponentAbs.h:56
Belle2::BFieldComponentAbs::~BFieldComponentAbs
virtual ~BFieldComponentAbs()=default
The BFieldComponentAbs destructor.
Belle2::B2Vector3< double >
Belle2::BFieldComponentAbs::BFieldComponentAbs
BFieldComponentAbs()=default
The BFieldComponentAbs constructor.
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BFieldComponentAbs::terminate
virtual void terminate()
Terminates the magnetic field component.
Definition: BFieldComponentAbs.h:77
Belle2::BFieldComponentAbs::calculate
virtual B2Vector3D calculate(const B2Vector3D &point) const =0
Calculates the magnetic field vector at the specified space point.