G4NeutronHPFieldPoint Class Reference

#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)


Detailed Description

Definition at line 34 of file G4NeutronHPFieldPoint.hh.


Constructor & Destructor Documentation

G4NeutronHPFieldPoint::G4NeutronHPFieldPoint (  )  [inline]

Definition at line 38 of file G4NeutronHPFieldPoint.hh.

00039   {
00040     X = 0;
00041     nP = 0;
00042     Y = 0;
00043   }

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 (  ) 

Definition at line 52 of file G4NeutronHPFieldPoint.cc.

00053   {
00054     delete [] Y;
00055   }


Member Function Documentation

G4int G4NeutronHPFieldPoint::GetDepth (  )  const [inline]

Definition at line 53 of file G4NeutronHPFieldPoint.hh.

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

00053 {return nP;}

G4double G4NeutronHPFieldPoint::GetX (  )  const [inline]

Definition at line 54 of file G4NeutronHPFieldPoint.hh.

Referenced by G4NeutronHPField::GetEnergy(), G4NeutronHPField::GetX(), G4NeutronHPField::GetY(), and operator=().

00054 {return X;}

G4double G4NeutronHPFieldPoint::GetY ( G4int  i  )  const [inline]

Definition at line 55 of file G4NeutronHPFieldPoint.hh.

Referenced by G4NeutronHPField::GetY(), and operator=().

00055 {return Y[i];}

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   }

void G4NeutronHPFieldPoint::SetData ( G4double  e,
G4int  i,
G4double  x 
) [inline]

Definition at line 60 of file G4NeutronHPFieldPoint.hh.

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

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

void G4NeutronHPFieldPoint::SetX ( G4double  e  )  [inline]

Definition at line 57 of file G4NeutronHPFieldPoint.hh.

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

00057 {X = e;}

void G4NeutronHPFieldPoint::SetY ( G4int  i,
G4double  x 
) [inline]

Definition at line 58 of file G4NeutronHPFieldPoint.hh.

Referenced by G4NeutronHPField::SetY().

00058 {Y[i] = x;}


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:38 2013 for Geant4 by  doxygen 1.4.7