54#ifndef G4PrimaryParticle_hh
55#define G4PrimaryParticle_hh 1
94 inline void*
operator new(std::size_t);
95 inline void operator delete(
void* aPrimaryParticle);
182inline void* G4PrimaryParticle::operator
new(std::size_t)
190inline void G4PrimaryParticle::operator
delete(
void* aPrimaryParticle)
222 if (mass < 0.)
return kinE;
223 return std::sqrt(kinE * (kinE + 2. * mass));
258 if (mass < 0.)
return kinE;
287 return daughterParticle;
352 if (nextParticle ==
nullptr) {
362 nextParticle =
nullptr;
367 if (daughterParticle ==
nullptr) {
368 daughterParticle = np;
G4PART_DLL G4Allocator< G4PrimaryParticle > *& aPrimaryParticleAllocator()
CLHEP::Hep3Vector G4ThreeVector
void SetPDGcode(G4int Pcode)
G4double GetTotalEnergy() const
G4double GetWeight() const
void SetTotalEnergy(G4double eTot)
G4double GetCharge() const
void SetG4code(const G4ParticleDefinition *Gcode)
G4double GetKineticEnergy() const
G4bool operator==(const G4PrimaryParticle &right) const
void SetCharge(G4double chg)
G4VUserPrimaryParticleInformation * GetUserInformation() const
G4double GetProperTime() const
const G4ThreeVector & GetMomentumDirection() const
void SetPolarization(const G4ThreeVector &pol)
void SetTrackID(G4int id)
void SetNext(G4PrimaryParticle *np)
G4ThreeVector GetPolarization() const
G4PrimaryParticle * GetNext() const
G4PrimaryParticle & operator=(const G4PrimaryParticle &right)
void SetKineticEnergy(G4double eKin)
G4bool operator!=(const G4PrimaryParticle &right) const
void SetWeight(G4double w)
void Set4Momentum(G4double px, G4double py, G4double pz, G4double E)
void SetMomentum(G4double px, G4double py, G4double pz)
G4double GetTotalMomentum() const
void SetMomentumDirection(const G4ThreeVector &p)
G4ThreeVector GetMomentum() const
void SetMass(G4double mas)
void SetProperTime(G4double t)
void SetUserInformation(G4VUserPrimaryParticleInformation *anInfo)
void SetParticleDefinition(const G4ParticleDefinition *pdef)
void SetDaughter(G4PrimaryParticle *np)
G4PrimaryParticle * GetDaughter() const
virtual ~G4PrimaryParticle()
const G4ParticleDefinition * GetParticleDefinition() const
G4ParticleDefinition * GetG4code() const