BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Data Fields | Friends
BDSParticleCoords Class Reference

A set of particle coordinates. More...

#include <BDSParticleCoords.hh>

Inheritance diagram for BDSParticleCoords:
Inheritance graph
Collaboration diagram for BDSParticleCoords:
Collaboration graph

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. More...
 
BDSParticleCoords ApplyOffset (const G4ThreeVector &offset) const
 Apply an offset to the spatial coordinates only and return a copy. More...
 
void AddOffset (const G4ThreeVector &offset)
 Apply an offset to the spatial coordinates only - assignment. More...
 
virtual void Print (std::ostream &out) const
 Actual print out method so it can be called from a derived class. More...
 
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. More...
 

Detailed Description

A set of particle coordinates.

Author
Laurie Nevay

Definition at line 34 of file BDSParticleCoords.hh.

Constructor & Destructor Documentation

◆ BDSParticleCoords() [1/3]

BDSParticleCoords::BDSParticleCoords ( )

Definition at line 28 of file BDSParticleCoords.cc.

◆ BDSParticleCoords() [2/3]

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() [3/3]

BDSParticleCoords::BDSParticleCoords ( G4ThreeVector  pos,
G4ThreeVector  mom,
G4double  tIn 
)

Definition at line 54 of file BDSParticleCoords.cc.

◆ ~BDSParticleCoords()

virtual BDSParticleCoords::~BDSParticleCoords ( )
inlinevirtual

Definition at line 49 of file BDSParticleCoords.hh.

Member Function Documentation

◆ AddOffset()

void BDSParticleCoords::AddOffset ( const G4ThreeVector &  offset)

Apply an offset to the spatial coordinates only - assignment.

Definition at line 89 of file BDSParticleCoords.cc.

Referenced by BDSROOTSamplerReader::ReadSingleEvent().

Here is the caller graph for this function:

◆ ApplyOffset()

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

Here is the caller graph for this function:

◆ ApplyTransform()

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

Here is the caller graph for this function:

◆ Momentum()

G4ThreeVector BDSParticleCoords::Momentum ( ) const
inline

Definition at line 67 of file BDSParticleCoords.hh.

◆ Position()

G4ThreeVector BDSParticleCoords::Position ( ) const
inline

Definition at line 66 of file BDSParticleCoords.hh.

◆ Print()

void BDSParticleCoords::Print ( std::ostream &  out) const
virtual

Actual print out method so it can be called from a derived class.

Reimplemented in BDSParticleCoordsFull.

Definition at line 102 of file BDSParticleCoords.cc.

Referenced by BDSParticleCoordsFull::Print().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
BDSParticleCoords const &  p 
)
friend

Output stream.

Definition at line 96 of file BDSParticleCoords.cc.

Field Documentation

◆ T

G4double BDSParticleCoords::T

Definition at line 75 of file BDSParticleCoords.hh.

◆ x

G4double BDSParticleCoords::x

Definition at line 69 of file BDSParticleCoords.hh.

◆ xp

G4double BDSParticleCoords::xp

Definition at line 72 of file BDSParticleCoords.hh.

◆ y

G4double BDSParticleCoords::y

Definition at line 70 of file BDSParticleCoords.hh.

◆ yp

G4double BDSParticleCoords::yp

Definition at line 73 of file BDSParticleCoords.hh.

◆ z

G4double BDSParticleCoords::z

Definition at line 71 of file BDSParticleCoords.hh.

◆ zp

G4double BDSParticleCoords::zp

Definition at line 74 of file BDSParticleCoords.hh.


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