Geant4-11
Public Member Functions | Private Attributes
G4ParticleHPFieldPoint Class Reference

#include <G4ParticleHPFieldPoint.hh>

Public Member Functions

 G4ParticleHPFieldPoint ()
 
 G4ParticleHPFieldPoint (G4int n)
 
G4int GetDepth () const
 
G4double GetX () const
 
G4double GetY (G4int i) const
 
void InitY (G4int n)
 
void operator= (const G4ParticleHPFieldPoint &aSet)
 
void SetData (G4double e, G4int i, G4double x)
 
void SetX (G4double e)
 
void SetY (G4int i, G4double x)
 
 ~G4ParticleHPFieldPoint ()
 

Private Attributes

G4int nP
 
G4double X
 
G4doubleY
 

Detailed Description

Definition at line 34 of file G4ParticleHPFieldPoint.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPFieldPoint() [1/2]

G4ParticleHPFieldPoint::G4ParticleHPFieldPoint ( )
inline

Definition at line 38 of file G4ParticleHPFieldPoint.hh.

References nP, X, and Y.

◆ G4ParticleHPFieldPoint() [2/2]

G4ParticleHPFieldPoint::G4ParticleHPFieldPoint ( G4int  n)

Definition at line 35 of file G4ParticleHPFieldPoint.cc.

36 {
37 nP = n;
38 X = 0;
39 Y = new G4double[nP];
40 for (G4int i=0; i<nP; i++) Y[i]=0.;
41 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85

References CLHEP::detail::n, nP, X, and Y.

◆ ~G4ParticleHPFieldPoint()

G4ParticleHPFieldPoint::~G4ParticleHPFieldPoint ( )

Definition at line 54 of file G4ParticleHPFieldPoint.cc.

55 {
56 delete [] Y;
57 }

References Y.

Member Function Documentation

◆ GetDepth()

G4int G4ParticleHPFieldPoint::GetDepth ( ) const
inline

Definition at line 53 of file G4ParticleHPFieldPoint.hh.

53{return nP;}

References nP.

Referenced by G4ParticleHPField::Dump(), and operator=().

◆ GetX()

G4double G4ParticleHPFieldPoint::GetX ( ) const
inline

◆ GetY()

G4double G4ParticleHPFieldPoint::GetY ( G4int  i) const
inline

Definition at line 55 of file G4ParticleHPFieldPoint.hh.

55{return Y[i];}

References Y.

Referenced by G4ParticleHPField::Dump(), G4ParticleHPField::GetY(), and operator=().

◆ InitY()

void G4ParticleHPFieldPoint::InitY ( G4int  n)

Definition at line 59 of file G4ParticleHPFieldPoint.cc.

60 {
61 nP = n;
62 X=0;
63 Y = new G4double[nP];
64 for (G4int i=0; i<nP; i++) Y[i]=0.;
65 }

References CLHEP::detail::n, nP, X, and Y.

Referenced by G4ParticleHPField::InitY().

◆ operator=()

void G4ParticleHPFieldPoint::operator= ( const G4ParticleHPFieldPoint aSet)

Definition at line 43 of file G4ParticleHPFieldPoint.cc.

44 {
45 if(&aSet!=this)
46 {
47 X = aSet.GetX();
48 delete [] Y;
49 Y = new G4double[aSet.GetDepth()];
50 for(G4int i=0; i<aSet.GetDepth(); i++) Y[i] = aSet.GetY(i);
51 }
52 }
G4double GetY(G4int i) const

References GetDepth(), GetX(), GetY(), X, and Y.

◆ SetData()

void G4ParticleHPFieldPoint::SetData ( G4double  e,
G4int  i,
G4double  x 
)
inline

Definition at line 60 of file G4ParticleHPFieldPoint.hh.

60{X = e; Y[i] = x;}

References X, and Y.

Referenced by G4ParticleHPField::G4ParticleHPField(), and G4ParticleHPField::SetData().

◆ SetX()

void G4ParticleHPFieldPoint::SetX ( G4double  e)
inline

Definition at line 57 of file G4ParticleHPFieldPoint.hh.

57{X = e;}

References X.

Referenced by G4ParticleHPField::SetEnergy(), and G4ParticleHPField::SetX().

◆ SetY()

void G4ParticleHPFieldPoint::SetY ( G4int  i,
G4double  x 
)
inline

Definition at line 58 of file G4ParticleHPFieldPoint.hh.

58{Y[i] = x;}

References Y.

Referenced by G4ParticleHPField::SetY().

Field Documentation

◆ nP

G4int G4ParticleHPFieldPoint::nP
private

Definition at line 66 of file G4ParticleHPFieldPoint.hh.

Referenced by G4ParticleHPFieldPoint(), GetDepth(), and InitY().

◆ X

G4double G4ParticleHPFieldPoint::X
private

Definition at line 64 of file G4ParticleHPFieldPoint.hh.

Referenced by G4ParticleHPFieldPoint(), GetX(), InitY(), operator=(), SetData(), and SetX().

◆ Y

G4double* G4ParticleHPFieldPoint::Y
private

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