VMC Examples Version 6.6
Loading...
Searching...
No Matches
GarfieldParticle Class Reference

#include <GarfieldPhysics.h>

Public Member Functions

 GarfieldParticle (std::string particleName, double ekin_eV, double time, double x_cm, double y_cm, double z_cm, double dx, double dy, double dz)
 
 ~GarfieldParticle ()
 
std::string getParticleName ()
 
double getX_mm ()
 
double getY_mm ()
 
double getZ_mm ()
 
double getEkin_MeV ()
 
double getTime ()
 
double getDX ()
 
double getDY ()
 
double getDZ ()
 

Private Attributes

std::string fParticleName
 
double fEkin_MeV
 
double fTime
 
double fx_mm
 
double fy_mm
 
double fz_mm
 
double fdx
 
double fdy
 
double fdz
 

Detailed Description

Definition at line 48 of file GarfieldPhysics.h.

Constructor & Destructor Documentation

◆ GarfieldParticle()

GarfieldParticle::GarfieldParticle ( std::string particleName,
double ekin_eV,
double time,
double x_cm,
double y_cm,
double z_cm,
double dx,
double dy,
double dz )
inline

Definition at line 51 of file GarfieldPhysics.h.

53 : fParticleName(particleName),
54 fEkin_MeV(ekin_eV / 1000000),
55 fTime(time),
56 fx_mm(10 * x_cm),
57 fy_mm(10 * y_cm),
58 fz_mm(10 * z_cm),
59 fdx(dx),
60 fdy(dy),
61 fdz(dz)
62 {}
std::string fParticleName

◆ ~GarfieldParticle()

GarfieldParticle::~GarfieldParticle ( )
inline

Definition at line 63 of file GarfieldPhysics.h.

63{};

Member Function Documentation

◆ getParticleName()

std::string GarfieldParticle::getParticleName ( )
inline

Definition at line 65 of file GarfieldPhysics.h.

65{ return fParticleName; }

◆ getX_mm()

double GarfieldParticle::getX_mm ( )
inline

Definition at line 66 of file GarfieldPhysics.h.

66{ return fx_mm; }

◆ getY_mm()

double GarfieldParticle::getY_mm ( )
inline

Definition at line 67 of file GarfieldPhysics.h.

67{ return fy_mm; }

◆ getZ_mm()

double GarfieldParticle::getZ_mm ( )
inline

Definition at line 68 of file GarfieldPhysics.h.

68{ return fz_mm; }

◆ getEkin_MeV()

double GarfieldParticle::getEkin_MeV ( )
inline

Definition at line 69 of file GarfieldPhysics.h.

69{ return fEkin_MeV; }

◆ getTime()

double GarfieldParticle::getTime ( )
inline

Definition at line 70 of file GarfieldPhysics.h.

70{ return fTime; }

◆ getDX()

double GarfieldParticle::getDX ( )
inline

Definition at line 71 of file GarfieldPhysics.h.

71{ return fdx; }

◆ getDY()

double GarfieldParticle::getDY ( )
inline

Definition at line 72 of file GarfieldPhysics.h.

72{ return fdy; }

◆ getDZ()

double GarfieldParticle::getDZ ( )
inline

Definition at line 73 of file GarfieldPhysics.h.

73{ return fdz; }

Member Data Documentation

◆ fParticleName

std::string GarfieldParticle::fParticleName
private

Definition at line 76 of file GarfieldPhysics.h.

◆ fEkin_MeV

double GarfieldParticle::fEkin_MeV
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fTime

double GarfieldParticle::fTime
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fx_mm

double GarfieldParticle::fx_mm
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fy_mm

double GarfieldParticle::fy_mm
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fz_mm

double GarfieldParticle::fz_mm
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fdx

double GarfieldParticle::fdx
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fdy

double GarfieldParticle::fdy
private

Definition at line 77 of file GarfieldPhysics.h.

◆ fdz

double GarfieldParticle::fdz
private

Definition at line 77 of file GarfieldPhysics.h.


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