|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
A set of particle coordinates. More...
#include <BDSParticleCoords.hh>


Public Member Functions | |
| BDSParticleCoords (G4double xIn, G4double yIn, G4double zIn, G4double xpIn, G4double ypIn, G4double zpIn, G4double tIn) | |
| BDSParticleCoords (G4ThreeVector pos, G4ThreeVector mom, G4double tIn) | |
| BDSParticleCoords | ApplyTransform (const G4Transform3D &transform) const |
| Apply a transform to the coordinates and return a copy of them transformed. | |
| BDSParticleCoords | ApplyOffset (const G4ThreeVector &offset) const |
| Apply an offset to the spatial coordinates only and return a copy. | |
| void | AddOffset (const G4ThreeVector &offset, G4double offsetT=0) |
| Apply an offset to the spatial and T coordinates only - assignment. | |
| virtual void | Print (std::ostream &out) const |
| Actual print out method so it can be called from a derived class. | |
| G4ThreeVector | Position () const |
| G4ThreeVector | Momentum () const |
Data Fields | |
| G4double | x |
| G4double | y |
| G4double | z |
| G4double | xp |
| G4double | yp |
| G4double | zp |
| G4double | T |
Friends | |
| std::ostream & | operator<< (std::ostream &out, BDSParticleCoords const &p) |
| Output stream. | |
A set of particle coordinates.
Definition at line 34 of file BDSParticleCoords.hh.
| BDSParticleCoords::BDSParticleCoords | ( | ) |
Definition at line 28 of file BDSParticleCoords.cc.
| BDSParticleCoords::BDSParticleCoords | ( | G4double | xIn, |
| G4double | yIn, | ||
| G4double | zIn, | ||
| G4double | xpIn, | ||
| G4double | ypIn, | ||
| G4double | zpIn, | ||
| G4double | tIn | ||
| ) |
Definition at line 38 of file BDSParticleCoords.cc.
| BDSParticleCoords::BDSParticleCoords | ( | G4ThreeVector | pos, |
| G4ThreeVector | mom, | ||
| G4double | tIn | ||
| ) |
Definition at line 54 of file BDSParticleCoords.cc.
|
inlinevirtual |
Definition at line 49 of file BDSParticleCoords.hh.
| void BDSParticleCoords::AddOffset | ( | const G4ThreeVector & | offset, |
| G4double | offsetT = 0 |
||
| ) |
Apply an offset to the spatial and T coordinates only - assignment.
Definition at line 89 of file BDSParticleCoords.cc.
Referenced by BDSPrimaryGeneratorFileSampler::ReadSingleEvent().

| BDSParticleCoords BDSParticleCoords::ApplyOffset | ( | const G4ThreeVector & | offset | ) | const |
Apply an offset to the spatial coordinates only and return a copy.
Definition at line 81 of file BDSParticleCoords.cc.
Referenced by BDSLinkPrimaryGeneratorAction::GeneratePrimaries().

| BDSParticleCoords BDSParticleCoords::ApplyTransform | ( | const G4Transform3D & | transform | ) | const |
Apply a transform to the coordinates and return a copy of them transformed.
Definition at line 66 of file BDSParticleCoords.cc.
Referenced by BDSBunch::ApplyTransform(), and BDSLinkPrimaryGeneratorAction::GeneratePrimaries().

|
inline |
Definition at line 67 of file BDSParticleCoords.hh.
|
inline |
Definition at line 66 of file BDSParticleCoords.hh.
|
virtual |
Actual print out method so it can be called from a derived class.
Reimplemented in BDSParticleCoordsFull.
Definition at line 104 of file BDSParticleCoords.cc.
Referenced by BDSParticleCoordsFull::Print().

|
friend |
Output stream.
Definition at line 98 of file BDSParticleCoords.cc.
| G4double BDSParticleCoords::T |
Definition at line 75 of file BDSParticleCoords.hh.
| G4double BDSParticleCoords::x |
Definition at line 69 of file BDSParticleCoords.hh.
| G4double BDSParticleCoords::xp |
Definition at line 72 of file BDSParticleCoords.hh.
| G4double BDSParticleCoords::y |
Definition at line 70 of file BDSParticleCoords.hh.
| G4double BDSParticleCoords::yp |
Definition at line 73 of file BDSParticleCoords.hh.
| G4double BDSParticleCoords::z |
Definition at line 71 of file BDSParticleCoords.hh.
| G4double BDSParticleCoords::zp |
Definition at line 74 of file BDSParticleCoords.hh.