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