51 : X0(x0), Y0(y0), Z0(z0), T0(t0)
57 : X0(xyz0.x()), Y0(xyz0.y()), Z0(xyz0.z()), T0(t0)
70 if(theParticle !=
nullptr)
73 while(theNext !=
nullptr)
76 theNext = thisPrimary->
GetNext();
80 theParticle =
nullptr;
101 Weight0 = right.Weight0;
102 numberOfParticle = right.numberOfParticle;
104 if (theParticle !=
nullptr)
delete theParticle;
105 theParticle =
nullptr;
107 if (right.theParticle !=
nullptr )
110 theTail = theParticle;
112 while (np !=
nullptr)
119 if (nextVertex !=
nullptr )
delete nextVertex;
120 nextVertex =
nullptr;
121 tailVertex =
nullptr;
122 if (right.nextVertex !=
nullptr )
125 tailVertex = nextVertex;
127 while (nv !=
nullptr)
143 return (
this==&right);
149 return (
this!=&right);
155 if( i >= 0 && i < numberOfParticle )
158 for(
G4int j=0; j<i; ++j )
160 if( particle ==
nullptr )
return nullptr;
161 particle = particle->
GetNext();
179 <<
" Weight " << Weight0 <<
G4endl;
180 if(userInfo !=
nullptr) userInfo->
Print();
181 G4cout <<
" -- Primary particles :: "
182 <<
" # of primaries =" << numberOfParticle <<
G4endl;
183 if( theParticle !=
nullptr) theParticle->
Print();
184 if (nextVertex !=
nullptr )
G4Allocator< G4PrimaryVertex > *& aPrimaryVertexAllocator()
G4GLOB_DLL std::ostream G4cout
G4PrimaryParticle * GetNext() const
G4bool operator==(const G4PrimaryVertex &right) const
virtual ~G4PrimaryVertex()
G4PrimaryVertex * GetNext() const
G4PrimaryVertex & operator=(const G4PrimaryVertex &right)
G4bool operator!=(const G4PrimaryVertex &right) const
G4PrimaryParticle * GetPrimary(G4int i=0) const
#define G4ThreadLocalStatic