37 G4int nMeson(0), nBaryon(0), npi0(0), ngamma(0), nLepton(0);
95 std::vector<G4HadSecondary>
buffer;
96 G4int cMeson(0), cBaryon(0), cpi0(0), cgamma(0), cLepton(0);
110 if(++cBaryon==randomBaryon)
113 weight = baryonWeight;
118 if(++cLepton==randomLepton)
121 weight = leptonWeight;
126 if(++cgamma==randomGamma)
129 weight = gammaWeight;
134 if(++cpi0==randomPi0)
142 if(++cMeson==randomMeson)
145 weight = mesonWeight;
150 buffer.push_back(*aSecTrack);
G4double GetWeight() const
G4HadSecondary * GetSecondary(size_t i)
G4HadFinalStateStatus GetStatusChange() const
virtual G4HadFinalState * Bias(G4HadFinalState *result)
static const G4double emax
G4ParticleDefinition * GetDefinition() const
G4int GetBaryonNumber() const
G4int GetNumberOfSecondaries() const
G4double G4ParticleHPJENDLHEData::G4double result
G4int GetLeptonNumber() const
G4DynamicParticle * GetParticle()
G4double GetKineticEnergy() const
static G4PionZero * PionZero()
G4double GetEnergyChange() const
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)