38 :X0(0.),Y0(0.),Z0(0.),
T0(0.),theParticle(0),theTail(0),
39 nextVertex(0),tailVertex(0),numberOfParticle(0),Weight0(1.0),userInfo(0)
45 :X0(x0),Y0(y0),Z0(z0),
T0(t0),theParticle(0),theTail(0),
46 nextVertex(0),tailVertex(0),numberOfParticle(0),Weight0(1.0),userInfo(0)
51 :
T0(t0),theParticle(0),theTail(0),
52 nextVertex(0),tailVertex(0),numberOfParticle(0),Weight0(1.0),userInfo(0)
60 :theParticle(0),theTail(0),
61 nextVertex(0),tailVertex(0),userInfo(0)
63 numberOfParticle = right.numberOfParticle;
69 if(theParticle != 0) {
74 theNext = thisPrimary->
GetNext();
97 Weight0 = right.Weight0;
100 if (theParticle !=0)
delete theParticle;
103 if (right.theParticle !=0 ) {
105 numberOfParticle += 1;
106 theTail = theParticle;
109 numberOfParticle += 1;
115 if (nextVertex !=0 )
delete nextVertex;
118 if (right.nextVertex !=0 ) {
120 tailVertex = nextVertex;
135 {
return (
this==&right); }
138 {
return (
this!=&right); }
142 if( i >= 0 && i < numberOfParticle ) {
144 for(
G4int j=0; j<i; j++ ){
145 if( particle == 0 )
return 0;
146 particle = particle->
GetNext();
160 <<
" Weight " << Weight0 <<
G4endl;
161 if(userInfo!=0) userInfo->
Print();
162 G4cout <<
" -- Primary particles :: "
163 <<
" # of primaries =" << numberOfParticle <<
G4endl;
164 if( theParticle != 0) theParticle->
Print();
165 if (nextVertex !=0 ) {
G4PrimaryVertex & operator=(const G4PrimaryVertex &right)
static constexpr double mm
G4PART_DLL G4ThreadLocal G4Allocator< G4PrimaryVertex > * aPrimaryVertexAllocator
G4int operator==(const G4PrimaryVertex &right) const
G4PrimaryParticle * GetPrimary(G4int i=0) const
G4GLOB_DLL std::ostream G4cout
G4PrimaryVertex * GetNext() const
G4PrimaryParticle * GetNext() const
virtual ~G4PrimaryVertex()
static const G4double T0[78]
G4int operator!=(const G4PrimaryVertex &right) const