Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ExN04Field Class Reference

#include <Doxymodules_eventgenerator.h>

Inheritance diagram for ExN04Field:
G4MagneticField G4Field

Public Member Functions

 ExN04Field ()
 
 ~ExN04Field ()
 
virtual void GetFieldValue (const double Point[3], double *Bfield) const
 

Private Attributes

G4double fBz
 
G4double frmax_sq
 
G4double fzmax
 

Detailed Description

Definition at line 42 of file Doxymodules_eventgenerator.h.

Constructor & Destructor Documentation

◆ ExN04Field()

ExN04Field::ExN04Field ( )

Definition at line 35 of file ExN04Field.cc.

37{
38 fBz = 3.0*tesla;
39 frmax_sq = sqr(50.*cm);
40 fzmax = 100.*cm;
41}
G4double fzmax
Definition ExN04Field.hh:47
G4double fBz
Definition ExN04Field.hh:45
G4double frmax_sq
Definition ExN04Field.hh:46

◆ ~ExN04Field()

ExN04Field::~ExN04Field ( )

Definition at line 44 of file ExN04Field.cc.

45{
46}

Member Function Documentation

◆ GetFieldValue()

void ExN04Field::GetFieldValue ( const double  Point[3],
double *  Bfield 
) const
virtual

Definition at line 49 of file ExN04Field.cc.

50{
51 Bfield[0] = 0.;
52 Bfield[1] = 0.;
53 if ( std::abs(Point[2]) < fzmax &&
54 (sqr(Point[0])+sqr(Point[1])) < frmax_sq ) {
55 Bfield[2] = fBz;
56 } else {
57 Bfield[2] = 0.;
58 }
59}

Member Data Documentation

◆ fBz

G4double ExN04Field::fBz
private

Definition at line 45 of file ExN04Field.hh.

◆ frmax_sq

G4double ExN04Field::frmax_sq
private

Definition at line 46 of file ExN04Field.hh.

◆ fzmax

G4double ExN04Field::fzmax
private

Definition at line 47 of file ExN04Field.hh.


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

Applications | User Support | Publications | Collaboration