Geant4
10.01
|
#include <G4SPSRandomGenerator.hh>
Public Member Functions | |
G4SPSRandomGenerator () | |
~G4SPSRandomGenerator () | |
void | SetXBias (G4ThreeVector) |
void | SetYBias (G4ThreeVector) |
void | SetZBias (G4ThreeVector) |
void | SetThetaBias (G4ThreeVector) |
void | SetPhiBias (G4ThreeVector) |
void | SetEnergyBias (G4ThreeVector) |
void | SetPosThetaBias (G4ThreeVector) |
void | SetPosPhiBias (G4ThreeVector) |
G4double | GenRandX () |
G4double | GenRandY () |
G4double | GenRandZ () |
G4double | GenRandTheta () |
G4double | GenRandPhi () |
G4double | GenRandEnergy () |
G4double | GenRandPosTheta () |
G4double | GenRandPosPhi () |
void | SetIntensityWeight (G4double weight) |
G4double | GetBiasWeight () |
void | ReSetHist (G4String) |
void | SetVerbosity (G4int a) |
Definition at line 145 of file G4SPSRandomGenerator.hh.
G4SPSRandomGenerator::G4SPSRandomGenerator | ( | ) |
Definition at line 66 of file G4SPSRandomGenerator.cc.
References bweights, EnergyBias, G4MUTEXINIT, IPDFEnergyBias, IPDFPhiBias, IPDFPosPhiBias, IPDFPosThetaBias, IPDFThetaBias, IPDFXBias, IPDFYBias, IPDFZBias, mutex, PhiBias, PosPhiBias, PosThetaBias, ThetaBias, verbosityLevel, XBias, YBias, and ZBias.
G4SPSRandomGenerator::~G4SPSRandomGenerator | ( | ) |
Definition at line 93 of file G4SPSRandomGenerator.cc.
References G4MUTEXDESTROY, and mutex.
G4double G4SPSRandomGenerator::GenRandEnergy | ( | ) |
Definition at line 529 of file G4SPSRandomGenerator.cc.
References bweights, EnergyBias, EnergyBiasH, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFEnergyBias, IPDFEnergyBiasH, mutex, G4TemplateAutoLock< M, L, U >::unlock(), verbosityLevel, and ZeroPhysVector.
Referenced by G4SPSEneDistribution::GenArbPointEnergies(), G4SPSEneDistribution::GenEpnHistEnergies(), G4SPSEneDistribution::GenerateBbodyEnergies(), G4SPSEneDistribution::GenerateBiasPowEnergies(), G4SPSEneDistribution::GenerateBremEnergies(), G4SPSEneDistribution::GenerateCdgEnergies(), G4SPSEneDistribution::GenerateExpEnergies(), G4SPSEneDistribution::GenerateLinearEnergies(), G4SPSEneDistribution::GeneratePowEnergies(), and G4SPSEneDistribution::GenUserHistEnergies().
G4double G4SPSRandomGenerator::GenRandPhi | ( | ) |
Definition at line 472 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFPhiBias, IPDFPhiBiasH, mutex, PhiBias, PhiBiasH, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.
Referenced by G4SPSAngDistribution::GenerateCosineLawFlux(), G4SPSAngDistribution::GenerateIsotropicFlux(), and G4SPSAngDistribution::GenerateUserDefFlux().
G4double G4SPSRandomGenerator::GenRandPosPhi | ( | ) |
Definition at line 648 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFPosPhiBias, IPDFPosPhiBiasH, mutex, PosPhiBias, PosPhiBiasH, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.
Referenced by G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandPosTheta | ( | ) |
Definition at line 587 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFPosThetaBias, IPDFPosThetaBiasH, mutex, PosThetaBias, PosThetaBiasH, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.
Referenced by G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandTheta | ( | ) |
Definition at line 412 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFThetaBias, IPDFThetaBiasH, mutex, ThetaBias, ThetaBiasH, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.
Referenced by G4SPSAngDistribution::GenerateCosineLawFlux(), G4SPSAngDistribution::GenerateIsotropicFlux(), and G4SPSAngDistribution::GenerateUserDefFlux().
G4double G4SPSRandomGenerator::GenRandX | ( | ) |
Definition at line 235 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFXBias, IPDFXBiasH, mutex, G4TemplateAutoLock< M, L, U >::unlock(), verbosityLevel, XBias, and XBiasH.
Referenced by G4SPSPosDistribution::GeneratePointsInBeam(), G4SPSPosDistribution::GeneratePointsInPlane(), G4SPSPosDistribution::GeneratePointsInVolume(), and G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandY | ( | ) |
Definition at line 299 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFYBias, IPDFYBiasH, mutex, G4TemplateAutoLock< M, L, U >::unlock(), verbosityLevel, YBias, and YBiasH.
Referenced by G4SPSPosDistribution::GeneratePointsInBeam(), G4SPSPosDistribution::GeneratePointsInPlane(), G4SPSPosDistribution::GeneratePointsInVolume(), and G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandZ | ( | ) |
Definition at line 355 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFZBias, IPDFZBiasH, mutex, G4TemplateAutoLock< M, L, U >::unlock(), verbosityLevel, ZBias, and ZBiasH.
Referenced by G4SPSPosDistribution::GeneratePointsInVolume(), and G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GetBiasWeight | ( | ) |
Definition at line 182 of file G4SPSRandomGenerator.cc.
References bweights, and mutex.
Referenced by G4SingleParticleSource::GeneratePrimaryVertex().
void G4SPSRandomGenerator::ReSetHist | ( | G4String | atype | ) |
Definition at line 196 of file G4SPSRandomGenerator.cc.
References EnergyBias, EnergyBiasH, G4cout, G4endl, IPDFEnergyBias, IPDFEnergyBiasH, IPDFPhiBias, IPDFPhiBiasH, IPDFPosPhiBias, IPDFPosPhiBiasH, IPDFPosThetaBias, IPDFPosThetaBiasH, IPDFThetaBias, IPDFThetaBiasH, IPDFXBias, IPDFXBiasH, IPDFYBias, IPDFYBiasH, IPDFZBias, IPDFZBiasH, mutex, PhiBias, PhiBiasH, PosPhiBias, PosPhiBiasH, PosThetaBias, PosThetaBiasH, ThetaBias, ThetaBiasH, XBias, XBiasH, YBias, YBiasH, ZBias, ZBiasH, and ZeroPhysVector.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetEnergyBias | ( | G4ThreeVector | input | ) |
Definition at line 150 of file G4SPSRandomGenerator.cc.
References EnergyBias, EnergyBiasH, G4PhysicsOrderedFreeVector::InsertValues(), and mutex.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetIntensityWeight | ( | G4double | weight | ) |
Definition at line 177 of file G4SPSRandomGenerator.cc.
References bweights, and mutex.
Referenced by G4GeneralParticleSourceData::IntensityNormalise().
void G4SPSRandomGenerator::SetPhiBias | ( | G4ThreeVector | input | ) |
Definition at line 141 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, PhiBias, and PhiBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetPosPhiBias | ( | G4ThreeVector | input | ) |
Definition at line 168 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, PosPhiBias, and PosPhiBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetPosThetaBias | ( | G4ThreeVector | input | ) |
Definition at line 159 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, PosThetaBias, and PosThetaBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetThetaBias | ( | G4ThreeVector | input | ) |
Definition at line 132 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, ThetaBias, and ThetaBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetVerbosity | ( | G4int | a | ) |
Definition at line 189 of file G4SPSRandomGenerator.cc.
References a, mutex, and verbosityLevel.
void G4SPSRandomGenerator::SetXBias | ( | G4ThreeVector | input | ) |
Definition at line 105 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, XBias, and XBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetYBias | ( | G4ThreeVector | input | ) |
Definition at line 114 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, YBias, and YBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetZBias | ( | G4ThreeVector | input | ) |
Definition at line 123 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, ZBias, and ZBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
private |
Definition at line 211 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), GenRandPhi(), GenRandPosPhi(), GenRandPosTheta(), GenRandTheta(), GenRandX(), GenRandY(), GenRandZ(), GetBiasWeight(), and SetIntensityWeight().
|
private |
Definition at line 199 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), ReSetHist(), and SetEnergyBias().
|
private |
Definition at line 200 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), ReSetHist(), and SetEnergyBias().
|
private |
Definition at line 199 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), and ReSetHist().
|
private |
Definition at line 201 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), and ReSetHist().
|
private |
Definition at line 196 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPhi(), and ReSetHist().
|
private |
Definition at line 198 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPhi(), and ReSetHist().
|
private |
Definition at line 205 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosPhi(), and ReSetHist().
|
private |
Definition at line 207 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosPhi(), and ReSetHist().
|
private |
Definition at line 202 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosTheta(), and ReSetHist().
|
private |
Definition at line 204 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosTheta(), and ReSetHist().
|
private |
Definition at line 193 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandTheta(), and ReSetHist().
|
private |
Definition at line 195 of file G4SPSRandomGenerator.hh.
Referenced by GenRandTheta(), and ReSetHist().
|
private |
Definition at line 184 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandX(), and ReSetHist().
|
private |
Definition at line 186 of file G4SPSRandomGenerator.hh.
Referenced by GenRandX(), and ReSetHist().
|
private |
Definition at line 187 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandY(), and ReSetHist().
|
private |
Definition at line 189 of file G4SPSRandomGenerator.hh.
Referenced by GenRandY(), and ReSetHist().
|
private |
Definition at line 190 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandZ(), and ReSetHist().
|
private |
Definition at line 192 of file G4SPSRandomGenerator.hh.
Referenced by GenRandZ(), and ReSetHist().
|
private |
Definition at line 218 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), GenRandPhi(), GenRandPosPhi(), GenRandPosTheta(), GenRandTheta(), GenRandX(), GenRandY(), GenRandZ(), GetBiasWeight(), ReSetHist(), SetEnergyBias(), SetIntensityWeight(), SetPhiBias(), SetPosPhiBias(), SetPosThetaBias(), SetThetaBias(), SetVerbosity(), SetXBias(), SetYBias(), SetZBias(), and ~G4SPSRandomGenerator().
|
private |
Definition at line 196 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPhi(), ReSetHist(), and SetPhiBias().
|
private |
Definition at line 197 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPhi(), ReSetHist(), and SetPhiBias().
|
private |
Definition at line 205 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosPhi(), ReSetHist(), and SetPosPhiBias().
|
private |
Definition at line 206 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosPhi(), ReSetHist(), and SetPosPhiBias().
|
private |
Definition at line 202 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosTheta(), ReSetHist(), and SetPosThetaBias().
|
private |
Definition at line 203 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosTheta(), ReSetHist(), and SetPosThetaBias().
|
private |
Definition at line 193 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandTheta(), ReSetHist(), and SetThetaBias().
|
private |
Definition at line 194 of file G4SPSRandomGenerator.hh.
Referenced by GenRandTheta(), ReSetHist(), and SetThetaBias().
|
private |
Definition at line 214 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), GenRandPhi(), GenRandPosPhi(), GenRandPosTheta(), GenRandTheta(), GenRandX(), GenRandY(), GenRandZ(), and SetVerbosity().
|
private |
Definition at line 184 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandX(), ReSetHist(), and SetXBias().
|
private |
Definition at line 185 of file G4SPSRandomGenerator.hh.
Referenced by GenRandX(), ReSetHist(), and SetXBias().
|
private |
Definition at line 187 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandY(), ReSetHist(), and SetYBias().
|
private |
Definition at line 188 of file G4SPSRandomGenerator.hh.
Referenced by GenRandY(), ReSetHist(), and SetYBias().
|
private |
Definition at line 190 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandZ(), ReSetHist(), and SetZBias().
|
private |
Definition at line 191 of file G4SPSRandomGenerator.hh.
Referenced by GenRandZ(), ReSetHist(), and SetZBias().
|
private |
Definition at line 216 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), and ReSetHist().