Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ElectricFieldModel Class Reference

#include <G4ElectricFieldModel.hh>

+ Inheritance diagram for G4ElectricFieldModel:

Public Member Functions

 G4ElectricFieldModel (G4int nDataPointsPerHalfExtent=3, Representation representation=Representation::fullArrow, G4int arrow3DLineSegmentsPerCircle=6, const G4VisExtent &extentForField=G4VisExtent(), const std::vector< G4PhysicalVolumesSearchScene::Findings > &pvFindings=std::vector< G4PhysicalVolumesSearchScene::Findings >())
 
virtual ~G4ElectricFieldModel ()
 
- Public Member Functions inherited from G4VFieldModel
 G4VFieldModel (const G4String &typeOfField, const G4String &symbol="", const G4VisExtent &extentForField=G4VisExtent(), const std::vector< G4PhysicalVolumesSearchScene::Findings > &pvFindings=std::vector< G4PhysicalVolumesSearchScene::Findings >(), G4int nDataPointsPerHalfScene=10, Representation representation=Representation::fullArrow, G4int arrow3DLineSegmentsPerCircle=6)
 
virtual ~G4VFieldModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &sceneHandler)
 
- Public Member Functions inherited from G4VModel
 G4VModel (const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)=0
 
const G4ModelingParametersGetModelingParameters () const
 
const G4StringGetType () const
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtentGetExtent () const
 
const G4StringGetGlobalDescription () const
 
const G4StringGetGlobalTag () const
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetExtent (const G4VisExtent &)
 
void SetType (const G4String &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
virtual G4bool Validate (G4bool warn=true)
 

Protected Member Functions

virtual void GetFieldAtLocation (const G4Field *field, const G4Point3D &position, G4double time, G4Point3D &result) const
 
virtual void GetFieldAtLocation (const G4Field *field, const G4Point3D &position, G4double time, G4Point3D &result) const =0
 

Additional Inherited Members

- Public Types inherited from G4VFieldModel
enum  Representation { fullArrow , lightArrow }
 
- Protected Attributes inherited from G4VModel
G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
const G4ModelingParametersfpMP
 

Detailed Description

Definition at line 41 of file G4ElectricFieldModel.hh.

Constructor & Destructor Documentation

◆ G4ElectricFieldModel()

G4ElectricFieldModel::G4ElectricFieldModel ( G4int  nDataPointsPerHalfExtent = 3,
Representation  representation = Representation::fullArrow,
G4int  arrow3DLineSegmentsPerCircle = 6,
const G4VisExtent extentForField = G4VisExtent(),
const std::vector< G4PhysicalVolumesSearchScene::Findings > &  pvFindings = std::vector<G4PhysicalVolumesSearchScene::Findings>() 
)
inline

Definition at line 45 of file G4ElectricFieldModel.hh.

53 ("Electric","E", extentForField, pvFindings,
54 nDataPointsPerHalfExtent, representation, arrow3DLineSegmentsPerCircle)
55 {}

◆ ~G4ElectricFieldModel()

virtual G4ElectricFieldModel::~G4ElectricFieldModel ( )
inlinevirtual

Definition at line 57 of file G4ElectricFieldModel.hh.

57{;}

Member Function Documentation

◆ GetFieldAtLocation()

void G4ElectricFieldModel::GetFieldAtLocation ( const G4Field field,
const G4Point3D position,
G4double  time,
G4Point3D result 
) const
protectedvirtual

Implements G4VFieldModel.

Definition at line 42 of file G4ElectricFieldModel.cc.

44 {
45 if (!field) return; // No action if no field
46
47 G4double xyzt[4] = { position.x(), position.y(), position.z(), time };
48 G4double BEvals[6] = {0.}; // Field returns {Bx,By,Bz,Ex,Ey,Ez}
49 field->GetFieldValue(xyzt, BEvals);
50
51 result.set(BEvals[3], BEvals[4], BEvals[5]);
52 return;
53}
double G4double
Definition: G4Types.hh:83
virtual void GetFieldValue(const G4double Point[4], G4double *fieldArr) const =0
void set(T x1, T y1, T z1)

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