BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Private Attributes | Friends
BDSParticle Class Reference

a particle definition More...

#include <BDSParticle.hh>

Collaboration diagram for BDSParticle:
Collaboration graph

Public Member Functions

 BDSParticle (G4double x, G4double y, G4double z, G4double xp, G4double yp, G4double zp, G4double totalEnergyIn, G4double globalTimeIn=0.0, G4double weightIn=1., G4int trackIDIn=-1, G4int parentIDIn=-1)
 
 BDSParticle (G4ThreeVector pos, G4ThreeVector mom, G4double totalEnergyIn, G4double globalTimeIn=0.0, G4double weightIn=1., G4int trackIDIn=-1, G4int parentIDIn=-1)
 
G4double GetX () const
 
G4double GetY () const
 
G4double GetZ () const
 
G4double GetXp () const
 
G4double GetYp () const
 
G4double GetZp () const
 
G4double GetTotalEnergy () const
 
G4double GetT () const
 
G4double GetWeight () const
 
G4int GetTrackID () const
 
G4int GetParentID () const
 

Private Attributes

G4ThreeVector position
 position
 
G4ThreeVector momentum
 momentum
 
G4double totalEnergy
 energy
 
G4double T
 time since event began (global time)
 
G4double weight
 weight
 
G4int trackID
 track ID
 
G4int parentID
 track ID of parent
 

Friends

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

Detailed Description

a particle definition

This class keeps information about a particle's parameters. It is mainly used for output

Author
Jochem Snuverink

Definition at line 36 of file BDSParticle.hh.


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