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) {
90 Weight0 = right.Weight0;
93 if (theParticle !=0)
delete theParticle;
96 if (right.theParticle !=0 ) {
98 numberOfParticle += 1;
99 theTail = theParticle;
102 numberOfParticle += 1;
108 if (nextVertex !=0 )
delete nextVertex;
111 if (right.nextVertex !=0 ) {
113 tailVertex = nextVertex;
128 {
return (
this==&right); }
131 {
return (
this!=&right); }
135 if( i >= 0 && i < numberOfParticle ) {
137 for(
G4int j=0; j<i; j++ ){
138 if( particle == 0 )
return 0;
139 particle = particle->
GetNext();
153 <<
" Weight " << Weight0 <<
G4endl;
154 if(userInfo!=0) userInfo->
Print();
155 G4cout <<
" -- Primary particles :: "
156 <<
" # of primaries =" << numberOfParticle <<
G4endl;
157 if( theParticle != 0) theParticle->
Print();
158 if (nextVertex !=0 ) {
G4PrimaryVertex & operator=(const G4PrimaryVertex &right)
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()
G4int operator!=(const G4PrimaryVertex &right) const