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

A set of particle coordinates including energy and weight. More...

#include <BDSParticleCoordsFull.hh>

Inheritance diagram for BDSParticleCoordsFull:
Inheritance graph
Collaboration diagram for BDSParticleCoordsFull:
Collaboration graph

Public Member Functions

 BDSParticleCoordsFull (G4double xIn, G4double yIn, G4double zIn, G4double xpIn, G4double ypIn, G4double zpIn, G4double tIn, G4double sIn, G4double totalEnergyIn, G4double weightIn)
 
 BDSParticleCoordsFull (const BDSParticleCoords &localIn, G4double sIn, G4double totalEnergyIn, G4double weightIn)
 
virtual void Print (std::ostream &out) const
 Actual print out method so it can be called from a derived class. More...
 
- Public Member Functions inherited from BDSParticleCoords
 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 s
 TODO - remove this. Unused. S (global) is calculated from S0 + z. More...
 
G4double totalEnergy
 
G4double weight
 
- Data Fields inherited from BDSParticleCoords
G4double x
 
G4double y
 
G4double z
 
G4double xp
 
G4double yp
 
G4double zp
 
G4double T
 

Friends

std::ostream & operator<< (std::ostream &out, BDSParticleCoordsFull const &p)
 Output stream. More...
 

Detailed Description

A set of particle coordinates including energy and weight.

Author
Laurie Nevay

Definition at line 34 of file BDSParticleCoordsFull.hh.

Constructor & Destructor Documentation

◆ BDSParticleCoordsFull() [1/3]

BDSParticleCoordsFull::BDSParticleCoordsFull ( )

Definition at line 24 of file BDSParticleCoordsFull.cc.

◆ BDSParticleCoordsFull() [2/3]

BDSParticleCoordsFull::BDSParticleCoordsFull ( G4double  xIn,
G4double  yIn,
G4double  zIn,
G4double  xpIn,
G4double  ypIn,
G4double  zpIn,
G4double  tIn,
G4double  sIn,
G4double  totalEnergyIn,
G4double  weightIn 
)

Definition at line 30 of file BDSParticleCoordsFull.cc.

◆ BDSParticleCoordsFull() [3/3]

BDSParticleCoordsFull::BDSParticleCoordsFull ( const BDSParticleCoords localIn,
G4double  sIn,
G4double  totalEnergyIn,
G4double  weightIn 
)

Definition at line 46 of file BDSParticleCoordsFull.cc.

◆ ~BDSParticleCoordsFull()

virtual BDSParticleCoordsFull::~BDSParticleCoordsFull ( )
inlinevirtual

Definition at line 53 of file BDSParticleCoordsFull.hh.

Member Function Documentation

◆ Print()

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

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

Reimplemented from BDSParticleCoords.

Definition at line 62 of file BDSParticleCoordsFull.cc.

References BDSParticleCoords::Print(), and s.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Output stream.

Definition at line 56 of file BDSParticleCoordsFull.cc.

Field Documentation

◆ s

G4double BDSParticleCoordsFull::s

TODO - remove this. Unused. S (global) is calculated from S0 + z.

Definition at line 61 of file BDSParticleCoordsFull.hh.

Referenced by BDSHepMC3Reader::HepMC2G4(), Print(), and BDSROOTSamplerReader::ReadSingleEvent().

◆ totalEnergy

G4double BDSParticleCoordsFull::totalEnergy

Definition at line 62 of file BDSParticleCoordsFull.hh.

◆ weight

G4double BDSParticleCoordsFull::weight

Definition at line 63 of file BDSParticleCoordsFull.hh.


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