#include <Doxymodules_field.h>
Public Member Functions | |
F04SimpleSolenoid (G4double, G4double, G4LogicalVolume *, G4ThreeVector) | |
Default constructor. | |
~F04SimpleSolenoid () override=default | |
Destructor. | |
G4double | GetLength () override |
GetLength() returns the length of the solenoid. | |
G4double | GetWidth () override |
GetWidth() returns the solenoid diameter. | |
G4double | GetHeight () override |
GetHeight() returns the solenoid diameter. | |
void | SetFringeZ (G4double z) |
SetFringeZ(G4double) sets the solenoid fringe field z-length. | |
G4double | GetFringeZ () |
GetFringeZ() returns the solenoid fringe field z-length. | |
G4bool | IsOutside (G4ThreeVector &local) const |
IsOutside() returns true when outside the solenoid. | |
G4bool | IsWithin (G4ThreeVector &local) const |
IsWithin() returns true when inside the solenoid. | |
void | AddFieldValue (const G4double point[4], G4double field[6]) const override |
AddFieldValue() adds the field for this solenoid into field[]. | |
Public Member Functions inherited from F04ElementField | |
F04ElementField (const G4ThreeVector, G4LogicalVolume *) | |
Constructor. | |
void | Construct () |
the actual implementation constructs the F04ElementField | |
virtual | ~F04ElementField ()=default |
Destructor. | |
void | SetMaxStep (G4double stp) |
SetMaxStep(G4double) sets the max. step size. | |
G4double | GetMaxStep () |
GetMaxStep() returns the max. step size. | |
void | SetColor (G4String c) |
SetColor(G4String) sets the color. | |
G4String | GetColor () |
GetColor() returns the color. | |
void | SetGlobalPoint (const G4double point[4]) |
SetGlobalPoint() ensures that the point is within the global bounding box of this ElementField's global coordinates. | |
bool | IsInBoundingBox (const G4double point[4]) const |
IsInBoundingBox() returns true if the point is within the global bounding box - global coordinates. | |
Private Attributes | |
G4double | fBfield = 0. |
G4double | fFringeZ = 0. |
G4double | fFieldLength = 0. |
G4double | fFieldRadius = 0. |
Additional Inherited Members | |
Static Public Member Functions inherited from F04ElementField | |
static G4VisAttributes * | GetVisAttribute (G4String color) |
GetVisAttribute() returns the appropriate G4VisAttributes. | |
Protected Attributes inherited from F04ElementField | |
G4LogicalVolume * | fVolume = nullptr |
G4AffineTransform | fGlobal2local |
Definition at line 116 of file Doxymodules_field.h.
F04SimpleSolenoid::F04SimpleSolenoid | ( | G4double | Bz, |
G4double | fz, | ||
G4LogicalVolume * | lv, | ||
G4ThreeVector | c | ||
) |
Default constructor.
Definition at line 41 of file F04SimpleSolenoid.cc.
|
overridedefault |
Destructor.
|
inlineoverridevirtual |
GetLength() returns the length of the solenoid.
Implements F04ElementField.
Definition at line 54 of file F04SimpleSolenoid.hh.
|
inlineoverridevirtual |
GetWidth() returns the solenoid diameter.
Implements F04ElementField.
Definition at line 57 of file F04SimpleSolenoid.hh.
|
inlineoverridevirtual |
GetHeight() returns the solenoid diameter.
Implements F04ElementField.
Definition at line 60 of file F04SimpleSolenoid.hh.
|
inline |
SetFringeZ(G4double) sets the solenoid fringe field z-length.
Definition at line 63 of file F04SimpleSolenoid.hh.
|
inline |
GetFringeZ() returns the solenoid fringe field z-length.
Definition at line 66 of file F04SimpleSolenoid.hh.
G4bool F04SimpleSolenoid::IsOutside | ( | G4ThreeVector & | local | ) | const |
IsOutside() returns true when outside the solenoid.
Definition at line 74 of file F04SimpleSolenoid.cc.
G4bool F04SimpleSolenoid::IsWithin | ( | G4ThreeVector & | local | ) | const |
IsWithin() returns true when inside the solenoid.
Definition at line 84 of file F04SimpleSolenoid.cc.
|
overridevirtual |
AddFieldValue() adds the field for this solenoid into field[].
point[] is in global coordinates.
Implements F04ElementField.
Definition at line 53 of file F04SimpleSolenoid.cc.
|
private |
Definition at line 80 of file F04SimpleSolenoid.hh.
|
private |
Definition at line 82 of file F04SimpleSolenoid.hh.
|
private |
Definition at line 84 of file F04SimpleSolenoid.hh.
|
private |
Definition at line 85 of file F04SimpleSolenoid.hh.