#include <G4NeutronHPFieldPoint.hh>
Public Member Functions | |
G4NeutronHPFieldPoint () | |
G4NeutronHPFieldPoint (G4int n) | |
void | operator= (const G4NeutronHPFieldPoint &aSet) |
~G4NeutronHPFieldPoint () | |
void | InitY (G4int n) |
G4int | GetDepth () const |
G4double | GetX () const |
G4double | GetY (G4int i) const |
void | SetX (G4double e) |
void | SetY (G4int i, G4double x) |
void | SetData (G4double e, G4int i, G4double x) |
Definition at line 34 of file G4NeutronHPFieldPoint.hh.
G4NeutronHPFieldPoint::G4NeutronHPFieldPoint | ( | ) | [inline] |
G4NeutronHPFieldPoint::G4NeutronHPFieldPoint | ( | G4int | n | ) |
Definition at line 33 of file G4NeutronHPFieldPoint.cc.
00034 { 00035 nP = n; 00036 X = 0; 00037 Y = new G4double[nP]; 00038 for (G4int i=0; i<nP; i++) Y[i]=0.; 00039 }
G4NeutronHPFieldPoint::~G4NeutronHPFieldPoint | ( | ) |
G4int G4NeutronHPFieldPoint::GetDepth | ( | ) | const [inline] |
Definition at line 53 of file G4NeutronHPFieldPoint.hh.
Referenced by G4NeutronHPField::Dump(), and operator=().
G4double G4NeutronHPFieldPoint::GetX | ( | ) | const [inline] |
Definition at line 54 of file G4NeutronHPFieldPoint.hh.
Referenced by G4NeutronHPField::GetEnergy(), G4NeutronHPField::GetX(), G4NeutronHPField::GetY(), and operator=().
Definition at line 55 of file G4NeutronHPFieldPoint.hh.
Referenced by G4NeutronHPField::GetY(), and operator=().
void G4NeutronHPFieldPoint::InitY | ( | G4int | n | ) |
Definition at line 57 of file G4NeutronHPFieldPoint.cc.
Referenced by G4NeutronHPField::InitY().
00058 { 00059 nP = n; 00060 X=0; 00061 Y = new G4double[nP]; 00062 for (G4int i=0; i<nP; i++) Y[i]=0.; 00063 }
void G4NeutronHPFieldPoint::operator= | ( | const G4NeutronHPFieldPoint & | aSet | ) |
Definition at line 41 of file G4NeutronHPFieldPoint.cc.
References GetDepth(), GetX(), and GetY().
00042 { 00043 if(&aSet!=this) 00044 { 00045 X = aSet.GetX(); 00046 delete [] Y; 00047 Y = new G4double[aSet.GetDepth()]; 00048 for(G4int i=0; i<aSet.GetDepth(); i++) Y[i] = aSet.GetY(i); 00049 } 00050 }
Definition at line 60 of file G4NeutronHPFieldPoint.hh.
Referenced by G4NeutronHPField::G4NeutronHPField(), and G4NeutronHPField::SetData().
void G4NeutronHPFieldPoint::SetX | ( | G4double | e | ) | [inline] |
Definition at line 57 of file G4NeutronHPFieldPoint.hh.
Referenced by G4NeutronHPField::SetEnergy(), and G4NeutronHPField::SetX().