VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01LocalMagField Class Reference

Definition of a uniform magnetic field within a given region. More...

#include <A01LocalMagField.h>

Inheritance diagram for A01LocalMagField:

Public Member Functions

 A01LocalMagField (Double_t Bx, Double_t By, Double_t Bz)
 
 A01LocalMagField ()
 
virtual ~A01LocalMagField ()
 
virtual void Field (const Double_t *, Double_t *B)
 

Private Member Functions

 A01LocalMagField (const A01LocalMagField &)
 
A01LocalMagFieldoperator= (const A01LocalMagField &)
 

Private Attributes

Double_t fB [3]
 Magnetic field vector.
 

Detailed Description

Definition of a uniform magnetic field within a given region.

Date
Author
I. Hrivnacova; IPN, Orsay

Definition at line 29 of file A01LocalMagField.h.

Constructor & Destructor Documentation

◆ A01LocalMagField() [1/3]

A01LocalMagField::A01LocalMagField ( Double_t Bx,
Double_t By,
Double_t Bz )

Standard constructor

Parameters
BxThe x component of the field value (in kiloGauss)
ByThe y component of the field value (in kiloGauss)
BzThe z component of the field value (in kiloGauss)

Definition at line 26 of file A01LocalMagField.cxx.

27 : TVirtualMagField("A01 magnetic field")
28{
29 /// Standard constructor
30 /// \param Bx The x component of the field value (in kiloGauss)
31 /// \param By The y component of the field value (in kiloGauss)
32 /// \param Bz The z component of the field value (in kiloGauss)
33
34 fB[0] = Bx;
35 fB[1] = By;
36 fB[2] = Bz;
37}
Double_t fB[3]
Magnetic field vector.

◆ A01LocalMagField() [2/3]

A01LocalMagField::A01LocalMagField ( )

Default constructor

Definition at line 40 of file A01LocalMagField.cxx.

41{
42 /// Default constructor
43 fB[0] = 0.;
44 fB[1] = 0.;
45 fB[2] = 0.;
46}

◆ ~A01LocalMagField()

A01LocalMagField::~A01LocalMagField ( )
virtual

Destructor

Definition at line 49 of file A01LocalMagField.cxx.

50{
51 /// Destructor
52}

◆ A01LocalMagField() [3/3]

A01LocalMagField::A01LocalMagField ( const A01LocalMagField & )
private

Member Function Documentation

◆ Field()

void A01LocalMagField::Field ( const Double_t * ,
Double_t * B )
virtual

Fill in the field value B in the given position at x. The local field is uniform in the associated volume.

Parameters
BThe field value (in kiloGauss)

Definition at line 55 of file A01LocalMagField.cxx.

56{
57 /// Fill in the field value B in the given position at x.
58 /// The local field is uniform in the associated volume.
59 /// \param B The field value (in kiloGauss)
60
61 B[0] = fB[0];
62 B[1] = fB[1];
63 B[2] = fB[2];
64}

◆ operator=()

A01LocalMagField & A01LocalMagField::operator= ( const A01LocalMagField & )
private

Member Data Documentation

◆ fB

Double_t A01LocalMagField::fB[3]
private

Magnetic field vector.

Definition at line 42 of file A01LocalMagField.h.


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