50 fCache.
Get().theCurrentMultiplicity = 0;
60 fCache.
Get().theCurrentMultiplicity = 0;
65 multi =
G4int(mean+0.0001);
69 if ( theMassCode == 0 )
72 if (
G4int ( mean ) == mean )
85 G4cout <<
" MULTIPLICITY MULTIPLIED " << multi <<
" " << theMassCode <<
G4endl;
90 multi = imulti +
G4int(radnf < mean-imulti);
101 G4cout <<
"G4ParticleHPProduct::GetMultiplicity " << theMassCode <<
" " << theMass <<
" multi " << multi <<
" mean " << mean <<
G4endl;
106 fCache.
Get().theCurrentMultiplicity =
static_cast<G4int>(mean);
114 if(theDist == 0) {
return 0; }
128 if( std::getenv(
"G4PHPTEST") )
131 G4cout << multi <<
" " << i <<
" @@@ G4ParticleHPProduct::Sample " << anEnergy <<
" Mass " << theMassCode <<
" " << theMass <<
G4endl;
134 tmp = theDist->
Sample(anEnergy, theMassCode, theMass);
135 if(tmp != 0) { result->push_back(tmp); }
145 tmp = theDist->
Sample(anEnergy, theMassCode, theMass);
G4long G4Poisson(G4double mean)
std::vector< G4ReactionProduct * > G4ReactionProductVector
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
const G4String & GetParticleName() const
G4ReactionProductVector * Sample(G4double anEnergy, G4int nParticles)
G4int GetMultiplicity(G4double anEnergy)
G4double GetY(G4double x)
G4double GetKineticEnergy() const
const G4ParticleDefinition * GetDefinition() const
void SetProjectileRP(G4ReactionProduct *aIncidentParticleRP)
virtual void ClearHistories()
virtual G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass)=0
void SetTarget(G4ReactionProduct *aTarget)