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);
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4int GetLeptonNumber() const
G4int GetBaryonNumber() const