Geant4  10.01.p02
G4PrimaryParticle Class Reference

#include <G4PrimaryParticle.hh>

+ Collaboration diagram for G4PrimaryParticle:

Public Member Functions

void * operator new (size_t)
 
void operator delete (void *aStackedTrack)
 
 G4PrimaryParticle ()
 
 G4PrimaryParticle (G4int Pcode)
 
 G4PrimaryParticle (G4int Pcode, G4double px, G4double py, G4double pz)
 
 G4PrimaryParticle (G4int Pcode, G4double px, G4double py, G4double pz, G4double E)
 
 G4PrimaryParticle (const G4ParticleDefinition *Gcode)
 
 G4PrimaryParticle (const G4ParticleDefinition *Gcode, G4double px, G4double py, G4double pz)
 
 G4PrimaryParticle (const G4ParticleDefinition *Gcode, G4double px, G4double py, G4double pz, G4double E)
 
virtual ~G4PrimaryParticle ()
 
 G4PrimaryParticle (const G4PrimaryParticle &right)
 
G4PrimaryParticleoperator= (const G4PrimaryParticle &right)
 
G4int operator== (const G4PrimaryParticle &right) const
 
G4int operator!= (const G4PrimaryParticle &right) const
 
void Print () const
 
G4int GetPDGcode () const
 
void SetPDGcode (G4int Pcode)
 
G4ParticleDefinitionGetG4code () const
 
void SetG4code (const G4ParticleDefinition *Gcode)
 
const G4ParticleDefinitionGetParticleDefinition () const
 
void SetParticleDefinition (const G4ParticleDefinition *pdef)
 
G4double GetMass () const
 
void SetMass (G4double mas)
 
G4double GetCharge () const
 
void SetCharge (G4double chg)
 
G4double GetKineticEnergy () const
 
void SetKineticEnergy (G4double eKin)
 
const G4ThreeVectorGetMomentumDirection () const
 
void SetMomentumDirection (const G4ThreeVector &p)
 
G4double GetTotalMomentum () const
 
void Set4Momentum (G4double px, G4double py, G4double pz, G4double E)
 
G4double GetTotalEnergy () const
 
void SetTotalEnergy (G4double eTot)
 
G4ThreeVector GetMomentum () const
 
void SetMomentum (G4double px, G4double py, G4double pz)
 
G4double GetPx () const
 
G4double GetPy () const
 
G4double GetPz () const
 
G4PrimaryParticleGetNext () const
 
void SetNext (G4PrimaryParticle *np)
 
G4PrimaryParticleGetDaughter () const
 
void SetDaughter (G4PrimaryParticle *np)
 
G4int GetTrackID () const
 
void SetTrackID (G4int id)
 
G4ThreeVector GetPolarization () const
 
void SetPolarization (const G4ThreeVector &pol)
 
void SetPolarization (G4double px, G4double py, G4double pz)
 
G4double GetPolX () const
 
G4double GetPolY () const
 
G4double GetPolZ () const
 
G4double GetWeight () const
 
void SetWeight (G4double w)
 
G4double GetProperTime () const
 
void SetProperTime (G4double t)
 
G4VUserPrimaryParticleInformationGetUserInformation () const
 
void SetUserInformation (G4VUserPrimaryParticleInformation *anInfo)
 

Private Attributes

G4int PDGcode
 
const G4ParticleDefinitionG4code
 
G4ThreeVector direction
 
G4double kinE
 
G4PrimaryParticlenextParticle
 
G4PrimaryParticledaughterParticle
 
G4int trackID
 
G4double mass
 
G4double charge
 
G4double polX
 
G4double polY
 
G4double polZ
 
G4double Weight0
 
G4double properTime
 
G4VUserPrimaryParticleInformationuserInfo
 

Detailed Description

Definition at line 68 of file G4PrimaryParticle.hh.

Constructor & Destructor Documentation

G4PrimaryParticle::G4PrimaryParticle ( )

Definition at line 39 of file G4PrimaryParticle.cc.

Referenced by operator=().

+ Here is the caller graph for this function:

G4PrimaryParticle::G4PrimaryParticle ( G4int  Pcode)

Definition at line 47 of file G4PrimaryParticle.cc.

References charge, G4ParticleTable::FindParticle(), G4code, G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMass(), and mass.

+ Here is the call graph for this function:

G4PrimaryParticle::G4PrimaryParticle ( G4int  Pcode,
G4double  px,
G4double  py,
G4double  pz 
)

Definition at line 61 of file G4PrimaryParticle.cc.

References charge, G4ParticleTable::FindParticle(), G4code, G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMass(), mass, and SetMomentum().

+ Here is the call graph for this function:

G4PrimaryParticle::G4PrimaryParticle ( G4int  Pcode,
G4double  px,
G4double  py,
G4double  pz,
G4double  E 
)

Definition at line 77 of file G4PrimaryParticle.cc.

References charge, G4ParticleTable::FindParticle(), G4code, G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMass(), mass, and Set4Momentum().

+ Here is the call graph for this function:

G4PrimaryParticle::G4PrimaryParticle ( const G4ParticleDefinition Gcode)

Definition at line 93 of file G4PrimaryParticle.cc.

References charge, G4code, G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGEncoding(), G4ParticleDefinition::GetPDGMass(), mass, and PDGcode.

+ Here is the call graph for this function:

G4PrimaryParticle::G4PrimaryParticle ( const G4ParticleDefinition Gcode,
G4double  px,
G4double  py,
G4double  pz 
)

Definition at line 107 of file G4PrimaryParticle.cc.

References charge, G4code, G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGEncoding(), G4ParticleDefinition::GetPDGMass(), mass, PDGcode, and SetMomentum().

+ Here is the call graph for this function:

G4PrimaryParticle::G4PrimaryParticle ( const G4ParticleDefinition Gcode,
G4double  px,
G4double  py,
G4double  pz,
G4double  E 
)

Definition at line 123 of file G4PrimaryParticle.cc.

References charge, G4code, G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGEncoding(), G4ParticleDefinition::GetPDGMass(), mass, PDGcode, and Set4Momentum().

+ Here is the call graph for this function:

G4PrimaryParticle::~G4PrimaryParticle ( )
virtual

Definition at line 190 of file G4PrimaryParticle.cc.

References daughterParticle, nextParticle, and userInfo.

G4PrimaryParticle::G4PrimaryParticle ( const G4PrimaryParticle right)

Definition at line 139 of file G4PrimaryParticle.cc.

References right.

Member Function Documentation

G4double G4PrimaryParticle::GetCharge ( ) const
inline

Definition at line 200 of file G4PrimaryParticle.hh.

References charge.

Referenced by export_G4PrimaryParticle(), G4PrimaryTransformer::GenerateSingleTrack(), RE01Trajectory::RE01Trajectory(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the caller graph for this function:

G4PrimaryParticle * G4PrimaryParticle::GetDaughter ( ) const
inline

Definition at line 257 of file G4PrimaryParticle.hh.

References daughterParticle.

Referenced by G4PrimaryTransformer::GenerateSingleTrack(), RE01EventAction::PrintPrimary(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the caller graph for this function:

G4ParticleDefinition * G4PrimaryParticle::GetG4code ( ) const
inline

Definition at line 206 of file G4PrimaryParticle.hh.

References G4code.

Referenced by B5EventAction::EndOfEventAction(), RMC01AnalysisManager::EndOfEventForForwardSimulation(), export_G4PrimaryParticle(), G4PrimaryTransformer::GetDefinition(), RE01EventAction::PrintPrimary(), and RE01Trajectory::RE01Trajectory().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetKineticEnergy ( ) const
inline

Definition at line 248 of file G4PrimaryParticle.hh.

References kinE.

Referenced by G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetMass ( ) const
inline

Definition at line 197 of file G4PrimaryParticle.hh.

References mass.

Referenced by export_G4PrimaryParticle(), G4PrimaryTransformer::GenerateSingleTrack(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the caller graph for this function:

G4ThreeVector G4PrimaryParticle::GetMomentum ( ) const
inline

Definition at line 218 of file G4PrimaryParticle.hh.

References direction, and GetTotalMomentum().

Referenced by ExGflashEventAction::EndOfEventAction(), B5EventAction::EndOfEventAction(), RMC01AnalysisManager::EndOfEventForForwardSimulation(), export_G4PrimaryParticle(), G4AdjointPrimaryGeneratorAction::GeneratePrimaries(), G4PrimaryTransformer::GenerateSingleTrack(), RE01EventAction::PrintPrimary(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const G4ThreeVector & G4PrimaryParticle::GetMomentumDirection ( ) const
inline

Definition at line 221 of file G4PrimaryParticle.hh.

References direction.

Referenced by G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

G4PrimaryParticle * G4PrimaryParticle::GetNext ( ) const
inline

Definition at line 254 of file G4PrimaryParticle.hh.

References nextParticle.

Referenced by export_G4PrimaryParticle(), G4PrimaryTransformer::GenerateSingleTrack(), G4PrimaryTransformer::GenerateTracks(), G4PrimaryVertex::GetPrimary(), G4PrimaryVertex::operator=(), RE01EventAction::PrintPrimary(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the caller graph for this function:

const G4ParticleDefinition * G4PrimaryParticle::GetParticleDefinition ( ) const
inline

Definition at line 209 of file G4PrimaryParticle.hh.

References G4code.

G4int G4PrimaryParticle::GetPDGcode ( ) const
inline

Definition at line 203 of file G4PrimaryParticle.hh.

References PDGcode.

Referenced by export_G4PrimaryParticle(), G4PrimaryTransformer::GenerateSingleTrack(), G4PrimaryTransformer::GetDefinition(), RE01EventAction::PrintPrimary(), RE01Trajectory::RE01Trajectory(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the caller graph for this function:

G4ThreeVector G4PrimaryParticle::GetPolarization ( ) const
inline

Definition at line 263 of file G4PrimaryParticle.hh.

References polX, polY, and polZ.

Referenced by export_G4PrimaryParticle(), and G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetPolX ( ) const
inline

Definition at line 266 of file G4PrimaryParticle.hh.

References polX.

Referenced by export_G4PrimaryParticle(), and G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetPolY ( ) const
inline

Definition at line 269 of file G4PrimaryParticle.hh.

References polY.

Referenced by export_G4PrimaryParticle(), and G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetPolZ ( ) const
inline

Definition at line 272 of file G4PrimaryParticle.hh.

References polZ.

Referenced by export_G4PrimaryParticle(), and G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetProperTime ( ) const
inline

Definition at line 284 of file G4PrimaryParticle.hh.

References properTime.

Referenced by export_G4PrimaryParticle(), G4PrimaryTransformer::GenerateSingleTrack(), and G4PrimaryTransformer::SetDecayProducts().

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetPx ( ) const
inline

Definition at line 227 of file G4PrimaryParticle.hh.

References direction, and GetTotalMomentum().

Referenced by export_G4PrimaryParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetPy ( ) const
inline

Definition at line 230 of file G4PrimaryParticle.hh.

References direction, and GetTotalMomentum().

Referenced by export_G4PrimaryParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetPz ( ) const
inline

Definition at line 233 of file G4PrimaryParticle.hh.

References direction, and GetTotalMomentum().

Referenced by export_G4PrimaryParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4PrimaryParticle::GetTotalEnergy ( ) const
inline

Definition at line 236 of file G4PrimaryParticle.hh.

References kinE, and mass.

G4double G4PrimaryParticle::GetTotalMomentum ( ) const
inline

Definition at line 212 of file G4PrimaryParticle.hh.

References kinE, and mass.

Referenced by GetMomentum(), GetPx(), GetPy(), GetPz(), and Print().

+ Here is the caller graph for this function:

G4int G4PrimaryParticle::GetTrackID ( ) const
inline

Definition at line 260 of file G4PrimaryParticle.hh.

References trackID.

Referenced by export_G4PrimaryParticle(), and RE01EventAction::PrintPrimary().

+ Here is the caller graph for this function:

G4VUserPrimaryParticleInformation * G4PrimaryParticle::GetUserInformation ( ) const
inline

Definition at line 290 of file G4PrimaryParticle.hh.

References userInfo.

G4double G4PrimaryParticle::GetWeight ( ) const
inline

Definition at line 275 of file G4PrimaryParticle.hh.

References Weight0.

Referenced by export_G4PrimaryParticle(), and G4PrimaryTransformer::GenerateSingleTrack().

+ Here is the caller graph for this function:

void G4PrimaryParticle::operator delete ( void *  aStackedTrack)
inline

Definition at line 192 of file G4PrimaryParticle.hh.

References aPrimaryParticleAllocator.

void * G4PrimaryParticle::operator new ( size_t  )
inline

Definition at line 183 of file G4PrimaryParticle.hh.

References aPrimaryParticleAllocator.

G4int G4PrimaryParticle::operator!= ( const G4PrimaryParticle right) const

Definition at line 187 of file G4PrimaryParticle.cc.

G4PrimaryParticle & G4PrimaryParticle::operator= ( const G4PrimaryParticle right)

Definition at line 149 of file G4PrimaryParticle.cc.

References charge, daughterParticle, direction, G4code, G4PrimaryParticle(), kinE, mass, nextParticle, PDGcode, polX, polY, polZ, properTime, trackID, userInfo, and Weight0.

+ Here is the call graph for this function:

G4int G4PrimaryParticle::operator== ( const G4PrimaryParticle right) const

Definition at line 184 of file G4PrimaryParticle.cc.

void G4PrimaryParticle::Print ( void  ) const

Definition at line 260 of file G4PrimaryParticle.cc.

References charge, daughterParticle, direction, eplus, G4code, G4cout, G4endl, G4ParticleDefinition::GetParticleName(), GetTotalMomentum(), GeV, kinE, mass, nextParticle, ns, PDGcode, polX, polY, polZ, G4VUserPrimaryParticleInformation::Print(), Print(), properTime, userInfo, and Weight0.

Referenced by export_G4PrimaryParticle(), G4PrimaryVertex::Print(), and Print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryParticle::Set4Momentum ( G4double  px,
G4double  py,
G4double  pz,
G4double  E 
)

Definition at line 220 of file G4PrimaryParticle.cc.

References direction, G4code, G4ParticleDefinition::GetPDGMass(), kinE, and mass.

Referenced by G4PrimaryParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetCharge ( G4double  chg)
inline

Definition at line 316 of file G4PrimaryParticle.hh.

References charge.

Referenced by G4BlinePrimaryGeneratorAction::GeneratePrimaries(), DMXParticleSource::GeneratePrimaryVertex(), G4ParticleGun::GeneratePrimaryVertex(), and G4SingleParticleSource::GeneratePrimaryVertex().

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetDaughter ( G4PrimaryParticle np)
inline

Definition at line 304 of file G4PrimaryParticle.hh.

References daughterParticle, and SetNext().

Referenced by G4HEPEvtInterface::GeneratePrimaryVertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetG4code ( const G4ParticleDefinition Gcode)
inline

Definition at line 293 of file G4PrimaryParticle.hh.

References SetParticleDefinition().

+ Here is the call graph for this function:

void G4PrimaryParticle::SetKineticEnergy ( G4double  eKin)
inline

Definition at line 251 of file G4PrimaryParticle.hh.

References kinE.

Referenced by G4RTPrimaryGeneratorAction::GeneratePrimaries(), G4ParticleGun::GeneratePrimaryVertex(), G4SingleParticleSource::GeneratePrimaryVertex(), and G4RayShooter::Shoot().

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetMass ( G4double  mas)
inline

Definition at line 313 of file G4PrimaryParticle.hh.

References mass.

Referenced by G4RTPrimaryGeneratorAction::GeneratePrimaries(), G4BlinePrimaryGeneratorAction::GeneratePrimaries(), DMXParticleSource::GeneratePrimaryVertex(), G4ParticleGun::GeneratePrimaryVertex(), G4HEPEvtInterface::GeneratePrimaryVertex(), G4SingleParticleSource::GeneratePrimaryVertex(), and G4RayShooter::Shoot().

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetMomentum ( G4double  px,
G4double  py,
G4double  pz 
)

Definition at line 206 of file G4PrimaryParticle.cc.

References direction, G4code, G4ParticleDefinition::GetPDGMass(), kinE, and mass.

Referenced by G4PrimaryParticle(), and G4HEPEvtInterface::GeneratePrimaryVertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetMomentumDirection ( const G4ThreeVector p)
inline

Definition at line 224 of file G4PrimaryParticle.hh.

References direction.

Referenced by G4RTPrimaryGeneratorAction::GeneratePrimaries(), G4ParticleGun::GeneratePrimaryVertex(), G4SingleParticleSource::GeneratePrimaryVertex(), and G4RayShooter::Shoot().

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetNext ( G4PrimaryParticle np)
inline

Definition at line 298 of file G4PrimaryParticle.hh.

References nextParticle, and SetNext().

Referenced by SetDaughter(), SetNext(), and G4PrimaryVertex::SetPrimary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetParticleDefinition ( const G4ParticleDefinition pdef)

Definition at line 250 of file G4PrimaryParticle.cc.

References charge, G4code, G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGEncoding(), G4ParticleDefinition::GetPDGMass(), mass, and PDGcode.

Referenced by SetG4code().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetPDGcode ( G4int  Pcode)

Definition at line 240 of file G4PrimaryParticle.cc.

References charge, G4ParticleTable::FindParticle(), G4code, G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMass(), mass, and PDGcode.

+ Here is the call graph for this function:

void G4PrimaryParticle::SetPolarization ( const G4ThreeVector pol)
inline

Definition at line 326 of file G4PrimaryParticle.hh.

References polX, polY, and polZ.

Referenced by G4RTPrimaryGeneratorAction::GeneratePrimaries(), DMXParticleSource::GeneratePrimaryVertex(), G4ParticleGun::GeneratePrimaryVertex(), G4SingleParticleSource::GeneratePrimaryVertex(), and G4RayShooter::Shoot().

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetPolarization ( G4double  px,
G4double  py,
G4double  pz 
)
inline

Definition at line 319 of file G4PrimaryParticle.hh.

References polX, polY, and polZ.

void G4PrimaryParticle::SetProperTime ( G4double  t)
inline

Definition at line 281 of file G4PrimaryParticle.hh.

References properTime.

void G4PrimaryParticle::SetTotalEnergy ( G4double  eTot)
inline

Definition at line 242 of file G4PrimaryParticle.hh.

References kinE, and mass.

void G4PrimaryParticle::SetTrackID ( G4int  id)
inline

Definition at line 310 of file G4PrimaryParticle.hh.

References trackID.

Referenced by G4PrimaryTransformer::GenerateSingleTrack(), and G4EventManager::StackTracks().

+ Here is the caller graph for this function:

void G4PrimaryParticle::SetUserInformation ( G4VUserPrimaryParticleInformation anInfo)
inline

Definition at line 287 of file G4PrimaryParticle.hh.

References userInfo.

void G4PrimaryParticle::SetWeight ( G4double  w)
inline

Definition at line 278 of file G4PrimaryParticle.hh.

References Weight0.

Referenced by export_G4PrimaryParticle(), and G4SingleParticleSource::GeneratePrimaryVertex().

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4PrimaryParticle::charge
private
G4PrimaryParticle* G4PrimaryParticle::daughterParticle
private

Definition at line 164 of file G4PrimaryParticle.hh.

Referenced by GetDaughter(), operator=(), Print(), SetDaughter(), and ~G4PrimaryParticle().

G4ThreeVector G4PrimaryParticle::direction
private
G4PrimaryParticle* G4PrimaryParticle::nextParticle
private

Definition at line 163 of file G4PrimaryParticle.hh.

Referenced by GetNext(), operator=(), Print(), SetNext(), and ~G4PrimaryParticle().

G4int G4PrimaryParticle::PDGcode
private
G4double G4PrimaryParticle::polX
private

Definition at line 172 of file G4PrimaryParticle.hh.

Referenced by GetPolarization(), GetPolX(), operator=(), Print(), and SetPolarization().

G4double G4PrimaryParticle::polY
private

Definition at line 173 of file G4PrimaryParticle.hh.

Referenced by GetPolarization(), GetPolY(), operator=(), Print(), and SetPolarization().

G4double G4PrimaryParticle::polZ
private

Definition at line 174 of file G4PrimaryParticle.hh.

Referenced by GetPolarization(), GetPolZ(), operator=(), Print(), and SetPolarization().

G4double G4PrimaryParticle::properTime
private

Definition at line 176 of file G4PrimaryParticle.hh.

Referenced by GetProperTime(), operator=(), Print(), and SetProperTime().

G4int G4PrimaryParticle::trackID
private

Definition at line 166 of file G4PrimaryParticle.hh.

Referenced by GetTrackID(), operator=(), and SetTrackID().

G4VUserPrimaryParticleInformation* G4PrimaryParticle::userInfo
private
G4double G4PrimaryParticle::Weight0
private

Definition at line 175 of file G4PrimaryParticle.hh.

Referenced by GetWeight(), operator=(), Print(), and SetWeight().


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