TrajectoryPoint Struct Reference

List of all members.


Detailed Description

struct TrajectoryPoint represents one point on the trajectory of a MacroParticle.

Global coordinates. pos={x,y,z,t}, v={Vx,Vy,Vz} [Vx=dx/dt, ...].

A consistency check is available because successive points on the trajectory can be differenced to get the velocity, which can be compared to both points' values of v[].

Public Member Functions

 TrajectoryPoint (const G4double _pos[4], const G4double _v[3])

Public Attributes

G4double pos [4]
G4double v [3]


Constructor & Destructor Documentation

TrajectoryPoint::TrajectoryPoint ( const G4double  _pos[4],
const G4double  _v[3] 
) [inline]

References pos, and v.

00048                 { pos[0]=_pos[0]; pos[1]=_pos[1]; pos[2]=_pos[2];
00049                   pos[3]=_pos[3]; v[0]=_v[0]; v[1]=_v[1]; v[2]=_v[2]; }


Member Data Documentation

G4double TrajectoryPoint::pos[4]

Referenced by TrajectoryPoint().

G4double TrajectoryPoint::v[3]

Referenced by TrajectoryPoint().


The documentation for this struct was generated from the following file:
g4beamline