Belle II Software development
BFieldFrameworkInterface Class Reference

Simple BFieldComponent to just wrap the existing BFieldMap with the new BFieldManager. More...

#include <BFieldFrameworkInterface.h>

Inheritance diagram for BFieldFrameworkInterface:
MagneticFieldComponent

Public Member Functions

 BFieldFrameworkInterface ()
 this component is exclusive: ignore all others
 
virtual bool inside (const ROOT::Math::XYZVector &) const final override
 everything is inside this component
 
virtual ROOT::Math::XYZVector getField (const ROOT::Math::XYZVector &position) const final override
 and we return the values from the exsiting BFieldMap
 
void setExclusive (bool exclusive)
 set the state of the exclusive flag
 
bool isExclusive () const
 returns whether the field is set to exclusive mode
 
 ClassDef (MagneticFieldComponent, 1)
 ROOT Dictionary.
 

Private Attributes

bool m_exclusive {false}
 whether or not the component is exclusive
 

Detailed Description

Simple BFieldComponent to just wrap the existing BFieldMap with the new BFieldManager.

Definition at line 21 of file BFieldFrameworkInterface.h.

Constructor & Destructor Documentation

◆ BFieldFrameworkInterface()

this component is exclusive: ignore all others

Definition at line 24 of file BFieldFrameworkInterface.h.

MagneticFieldComponent(bool exclusive)
Constructor.

Member Function Documentation

◆ getField()

virtual ROOT::Math::XYZVector getField ( const ROOT::Math::XYZVector &  position) const
inlinefinaloverridevirtual

and we return the values from the exsiting BFieldMap

Implements MagneticFieldComponent.

Definition at line 28 of file BFieldFrameworkInterface.h.

29 {
30 return BFieldMap::Instance().getBField(position) * Unit::T;
31 }
static BFieldMap & Instance()
Static method to get a reference to the BFieldMap instance.
Definition: BFieldMap.cc:15
static const double T
[tesla]
Definition: Unit.h:120
ROOT::Math::XYZVector getBField(const ROOT::Math::XYZVector &point) const
Returns the magnetic field of the Belle II detector at the specified space point.
Definition: BFieldMap.h:106

◆ inside()

virtual bool inside ( const ROOT::Math::XYZVector &  ) const
inlinefinaloverridevirtual

everything is inside this component

Implements MagneticFieldComponent.

Definition at line 26 of file BFieldFrameworkInterface.h.

26{ return true; }

◆ isExclusive()

bool isExclusive ( ) const
inlineinherited

returns whether the field is set to exclusive mode

Definition at line 39 of file MagneticFieldComponent.h.

39{ return m_exclusive; }
bool m_exclusive
whether or not the component is exclusive

◆ setExclusive()

void setExclusive ( bool  exclusive)
inlineinherited

set the state of the exclusive flag

Definition at line 37 of file MagneticFieldComponent.h.

37{ m_exclusive = exclusive; }

Member Data Documentation

◆ m_exclusive

bool m_exclusive {false}
privateinherited

whether or not the component is exclusive

Definition at line 51 of file MagneticFieldComponent.h.


The documentation for this class was generated from the following file: