54#ifndef G4PrimaryParticle_hh
55#define G4PrimaryParticle_hh 1
97 inline void*
operator new(std::size_t);
98 inline void operator delete(
void* aPrimaryParticle);
189void* G4PrimaryParticle::operator
new(std::size_t)
199void G4PrimaryParticle::operator
delete(
void* aPrimaryParticle)
238 if (mass<0.)
return kinE;
239 else return std::sqrt(kinE*(kinE+2.*mass));
280 if (mass<0.)
return kinE;
281 else return kinE+mass;
287 if (mass<0.) kinE = eTot;
288 else kinE = eTot - mass;
312 return daughterParticle;
392 if (nextParticle ==
nullptr) { nextParticle = np; }
393 else { nextParticle->
SetNext(np); }
399 nextParticle =
nullptr;
405 if(daughterParticle ==
nullptr) { daughterParticle = np; }
406 else { daughterParticle->
SetNext(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