#include <G4PrimaryParticle.hh>
|
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) |
|
G4PrimaryParticle & | operator= (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) |
|
G4ParticleDefinition * | GetG4code () const |
|
void | SetG4code (const G4ParticleDefinition *Gcode) |
|
const G4ParticleDefinition * | GetParticleDefinition () 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 G4ThreeVector & | GetMomentumDirection () 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 |
|
G4PrimaryParticle * | GetNext () const |
|
void | SetNext (G4PrimaryParticle *np) |
|
void | ClearNext () |
|
G4PrimaryParticle * | GetDaughter () 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) |
|
G4VUserPrimaryParticleInformation * | GetUserInformation () const |
|
void | SetUserInformation (G4VUserPrimaryParticleInformation *anInfo) |
|
Definition at line 68 of file G4PrimaryParticle.hh.
G4PrimaryParticle::G4PrimaryParticle |
( |
| ) |
|
Definition at line 39 of file G4PrimaryParticle.cc.
40 :PDGcode(0),G4code(0),
41 direction(0.,0.,1.),kinE(0.),
42 nextParticle(0),daughterParticle(0),trackID(-1),
43 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
44 Weight0(1.0),properTime(0.0),userInfo(0)
G4PrimaryParticle::G4PrimaryParticle |
( |
G4int |
Pcode | ) |
|
Definition at line 47 of file G4PrimaryParticle.cc.
49 direction(0.,0.,1.),kinE(0.),
50 nextParticle(0),daughterParticle(0),trackID(-1),
51 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
52 Weight0(1.0),properTime(0.0),userInfo(0)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
G4double GetPDGCharge() const
Definition at line 61 of file G4PrimaryParticle.cc.
64 direction(0.,0.,1.),kinE(0.),
65 nextParticle(0),daughterParticle(0),trackID(-1),
66 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
67 Weight0(1.0),properTime(0.0),userInfo(0)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
G4double GetPDGCharge() const
void SetMomentum(G4double px, G4double py, G4double pz)
Definition at line 77 of file G4PrimaryParticle.cc.
80 direction(0.,0.,1.),kinE(0.),
81 nextParticle(0),daughterParticle(0),trackID(-1),
82 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
83 Weight0(1.0),properTime(0.0),userInfo(0)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
void Set4Momentum(G4double px, G4double py, G4double pz, G4double E)
G4double GetPDGCharge() const
Definition at line 93 of file G4PrimaryParticle.cc.
94 :PDGcode(0),G4code(Gcode),
95 direction(0.,0.,1.),kinE(0.),
96 nextParticle(0),daughterParticle(0),trackID(-1),
97 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
98 Weight0(1.0),properTime(0.0),userInfo(0)
G4int GetPDGEncoding() const
G4double GetPDGMass() const
G4double GetPDGCharge() const
Definition at line 107 of file G4PrimaryParticle.cc.
109 :PDGcode(0),G4code(Gcode),
110 direction(0.,0.,1.),kinE(0.),
111 nextParticle(0),daughterParticle(0),trackID(-1),
112 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
113 Weight0(1.0),properTime(0.0),userInfo(0)
G4int GetPDGEncoding() const
G4double GetPDGMass() const
G4double GetPDGCharge() const
void SetMomentum(G4double px, G4double py, G4double pz)
Definition at line 123 of file G4PrimaryParticle.cc.
125 :PDGcode(0),G4code(Gcode),
126 direction(0.,0.,1.),kinE(0.),
127 nextParticle(0),daughterParticle(0),trackID(-1),
128 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
129 Weight0(1.0),properTime(0.0),userInfo(0)
G4int GetPDGEncoding() const
G4double GetPDGMass() const
void Set4Momentum(G4double px, G4double py, G4double pz, G4double E)
G4double GetPDGCharge() const
G4PrimaryParticle::~G4PrimaryParticle |
( |
| ) |
|
|
virtual |
Definition at line 190 of file G4PrimaryParticle.cc.
192 if(nextParticle != 0){
196 if(daughterParticle != 0){
197 delete daughterParticle;
Definition at line 139 of file G4PrimaryParticle.cc.
140 :PDGcode(0),G4code(0),
141 direction(0.,0.,1.),kinE(0.),
142 nextParticle(0),daughterParticle(0),trackID(-1),
143 mass(-1.),charge(0.),polX(0.),polY(0.),polZ(0.),
144 Weight0(1.0),properTime(0.0),userInfo(0)
void G4PrimaryParticle::ClearNext |
( |
| ) |
|
|
inline |
G4double G4PrimaryParticle::GetCharge |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetKineticEnergy |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetMass |
( |
| ) |
const |
|
inline |
const G4ThreeVector & G4PrimaryParticle::GetMomentumDirection |
( |
| ) |
const |
|
inline |
G4int G4PrimaryParticle::GetPDGcode |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetPolX |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetPolY |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetPolZ |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetProperTime |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetPx |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetPy |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetPz |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetTotalEnergy |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetTotalMomentum |
( |
| ) |
const |
|
inline |
Definition at line 213 of file G4PrimaryParticle.hh.
215 if (mass<0.)
return kinE;
216 else return std::sqrt(kinE*(kinE+2.*mass));
G4int G4PrimaryParticle::GetTrackID |
( |
| ) |
const |
|
inline |
G4double G4PrimaryParticle::GetWeight |
( |
| ) |
const |
|
inline |
void G4PrimaryParticle::operator delete |
( |
void * |
aStackedTrack | ) |
|
|
inline |
Definition at line 193 of file G4PrimaryParticle.hh.
G4PART_DLL G4ThreadLocal G4Allocator< G4PrimaryParticle > * aPrimaryParticleAllocator
void * G4PrimaryParticle::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 184 of file G4PrimaryParticle.hh.
G4PART_DLL G4ThreadLocal G4Allocator< G4PrimaryParticle > * aPrimaryParticleAllocator
Definition at line 149 of file G4PrimaryParticle.cc.
151 if (
this != &right) {
152 PDGcode = right.PDGcode;
153 G4code = right.G4code;
154 direction = right.direction;
156 if (nextParticle !=0)
delete nextParticle;
157 if ( right.nextParticle ==0 ){
162 if (daughterParticle !=0)
delete daughterParticle;
163 if ( right.daughterParticle ==0 ){
164 daughterParticle = 0;
168 trackID = right.trackID;
170 charge = right.charge;
174 Weight0 = right.Weight0;
175 properTime = right.properTime;
void G4PrimaryParticle::Print |
( |
| ) |
const |
Definition at line 260 of file G4PrimaryParticle.cc.
262 G4cout <<
"==== PDGcode " << PDGcode <<
" Particle name ";
278 G4cout <<
" Polarization ( "
285 G4cout <<
" PreAssigned proper decay time : " << properTime/
ns <<
" [ns] " <<
G4endl;
287 if(userInfo != 0) { userInfo->
Print(); }
288 if(daughterParticle != 0) {
290 daughterParticle->
Print();
292 if(nextParticle != 0) {
293 nextParticle->
Print();
G4double GetTotalMomentum() const
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static constexpr double eplus
virtual void Print() const =0
static constexpr double GeV
Definition at line 220 of file G4PrimaryParticle.cc.
222 G4double pmom = std::sqrt(px*px+py*py+pz*pz);
224 direction.
setX(px/pmom);
225 direction.
setY(py/pmom);
226 direction.
setZ(pz/pmom);
230 mass = std::sqrt(mas2);
235 E = std::sqrt(pmom*pmom+mass*mass);
G4double GetPDGMass() const
Definition at line 310 of file G4PrimaryParticle.hh.
312 if(daughterParticle == 0) { daughterParticle = np; }
313 else { daughterParticle->
SetNext(np); }
void SetNext(G4PrimaryParticle *np)
Definition at line 206 of file G4PrimaryParticle.cc.
208 if ((mass<0.)&&(G4code!=0)){
211 G4double pmom = std::sqrt(px*px+py*py+pz*pz);
213 direction.
setX(px/pmom);
214 direction.
setY(py/pmom);
215 direction.
setZ(pz/pmom);
217 kinE = std::sqrt(px*px+py*py+pz*pz+mass*mass)-mass;
G4double GetPDGMass() const
Definition at line 299 of file G4PrimaryParticle.hh.
301 if (nextParticle == 0) { nextParticle = np; }
302 else { nextParticle->
SetNext(np); }
void SetNext(G4PrimaryParticle *np)
Definition at line 250 of file G4PrimaryParticle.cc.
254 PDGcode = Gcode->GetPDGEncoding();
G4double GetPDGMass() const
G4double GetPDGCharge() const
void G4PrimaryParticle::SetPDGcode |
( |
G4int |
Pcode | ) |
|
Definition at line 240 of file G4PrimaryParticle.cc.
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
G4double GetPDGCharge() const
void G4PrimaryParticle::SetTrackID |
( |
G4int |
id | ) |
|
|
inline |
The documentation for this class was generated from the following files: