102 typedef std::vector<G4SPPartonInfo *>::const_iterator iter;
108 for (i=thePartonInfo.begin() ; i!=thePartonInfo.end(); i++)
110 sum += (*i)->GetProbability();
115 quark = (*i)->GetDiQuark();
116 diQuark = (*i)->GetQuark();
120 quark = (*i)->GetQuark();
121 diQuark = (*i)->GetDiQuark();
132 typedef std::vector<G4SPPartonInfo *>::const_iterator iter;
135 for (i=thePartonInfo.begin() ; i!=thePartonInfo.end(); i++)
137 if (std::abs((*i)->GetQuark()) == std::abs(quark))
139 sum += (*i)->GetProbability();
144 for (i=thePartonInfo.begin() ; i!=thePartonInfo.end(); i++) {
145 if (std::abs((*i)->GetQuark()) == std::abs(quark))
147 running += (*i)->GetProbability();
148 if (running/sum >= random)
150 diQuark = (*i)->GetDiQuark();
G4int GetPDGEncoding() const
static G4ParticleTable * GetParticleTable()