99 if (
Parton[0] != NULL )
return;
103 G4int stringStart, stringEnd;
129 return Parton[ PartonInd ];
140 return Parton[ PartonInd ];
163 G4int* bEnd )
const {
164 G4int absPDGcode = std::abs( PDGcode );
166 if ( absPDGcode < 1000 ) {
167 G4int heavy(0), light(0);
168 if(!((absPDGcode == 111)||(absPDGcode == 221)||(absPDGcode == 331)))
170 heavy = absPDGcode/100;
171 light = (absPDGcode % 100)/10;
174 if (PDGcode < 0 ) anti *= -1;
181 else {heavy = 2; light = -2;}
191 G4int j1000 = PDGcode/1000;
192 G4int j100 = (PDGcode % 1000)/100;
193 G4int j10 = (PDGcode % 100)/10;
196 if((j1000 == j100) && (j1000 == j10)) SuppresUUDDSS=1.;
205 if(( j100 == j10 ) && (
G4UniformRand() > SuppresUUDDSS ))
continue;
207 if( j100 == j10 ) {*bEnd =
Diquark( j100, j10, 1 );}
210 else {*bEnd =
Diquark( j100, j10, 1 );}
213 else if(random < 0.66667)
215 if(( j1000 == j10 ) && (
G4UniformRand() > SuppresUUDDSS ))
continue;
217 if( j1000 == j10 ) {*bEnd =
Diquark( j1000, j10, 1 );}
220 else {*bEnd =
Diquark( j1000, j10, 1 );}
225 if(( j1000 == j100 ) && (
G4UniformRand() > SuppresUUDDSS ))
continue;
227 if( j1000 == j100 ) {*bEnd =
Diquark( j1000, j100, 1 );}
230 else {*bEnd =
Diquark( j1000, j100, 1 );}
270 G4int diquarkPDG =
std::max( std::abs( aquark ), std::abs( bquark ) ) * 1000 +
271 std::min( std::abs( aquark ), std::abs( bquark ) ) * 100 +
273 return ( aquark > 0 && bquark > 0 ) ? diquarkPDG : -1*diquarkPDG;
void ChooseStringEnds(G4int PDGcode, G4int *aEnd, G4int *bEnd) const
G4Parton * GetNextParton()
G4int Diquark(G4int aquark, G4int bquark, G4int Spin) const
G4DiffractiveSplitableHadron()
G4int GetPDGEncoding() const
G4Parton * GetNextAntiParton()
void SetFirstParton(G4int PDGcode)
const G4ParticleDefinition * GetDefinition() const
void SetSecondParton(G4int PDGcode)
~G4DiffractiveSplitableHadron()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments