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);
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetEnergyChange() const
G4HadFinalStateStatus GetStatusChange() const
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
virtual G4HadFinalState * Bias(G4HadFinalState *result)
G4DynamicParticle * GetParticle()
G4double GetWeight() const
G4int GetLeptonNumber() const
G4int GetBaryonNumber() const
static G4PionZero * PionZero()