Geant4
10.02.p02
|
Andrea Dotti Feb 2015 Important: This is a shared class between threads. More...
#include <G4SPSRandomGenerator.hh>
Classes | |
struct | a_check |
struct | bweights_t |
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) |
Andrea Dotti Feb 2015 Important: This is a shared class between threads.
Only one thread should use the set-methods here. Note that this is exactly what is achieved using UI commands. If you use the set methods to set defaults in your application take care that only one thread is executing them. In addition take care of calling these methods before the run is started Do not use these setters during the event loop
Definition at line 156 of file G4SPSRandomGenerator.hh.
G4SPSRandomGenerator::G4SPSRandomGenerator | ( | ) |
Definition at line 73 of file G4SPSRandomGenerator.cc.
References 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 98 of file G4SPSRandomGenerator.cc.
References G4MUTEXDESTROY, and mutex.
G4double G4SPSRandomGenerator::GenRandEnergy | ( | ) |
Definition at line 568 of file G4SPSRandomGenerator.cc.
References bweights, EnergyBias, EnergyBiasH, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFEnergyBias, IPDFEnergyBiasH, local_IPDFEnergyBias, mutex, verbosityLevel, and w.
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 508 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFPhiBias, IPDFPhiBiasH, local_IPDFPhiBias, mutex, PhiBias, PhiBiasH, verbosityLevel, and w.
Referenced by G4SPSAngDistribution::GenerateCosineLawFlux(), G4SPSAngDistribution::GenerateIsotropicFlux(), and G4SPSAngDistribution::GenerateUserDefFlux().
G4double G4SPSRandomGenerator::GenRandPosPhi | ( | ) |
Definition at line 693 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFPosPhiBias, IPDFPosPhiBiasH, local_IPDFPosPhiBias, mutex, PosPhiBias, PosPhiBiasH, verbosityLevel, and w.
Referenced by G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandPosTheta | ( | ) |
Definition at line 629 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFPosThetaBias, IPDFPosThetaBiasH, local_IPDFPosThetaBias, mutex, PosThetaBias, PosThetaBiasH, verbosityLevel, and w.
Referenced by G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandTheta | ( | ) |
Definition at line 445 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFThetaBias, IPDFThetaBiasH, local_IPDFThetaBias, mutex, ThetaBias, ThetaBiasH, verbosityLevel, and w.
Referenced by G4SPSAngDistribution::GenerateCosineLawFlux(), G4SPSAngDistribution::GenerateIsotropicFlux(), and G4SPSAngDistribution::GenerateUserDefFlux().
G4double G4SPSRandomGenerator::GenRandX | ( | ) |
Definition at line 250 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFXBias, IPDFXBiasH, local_IPDFXBias, mutex, verbosityLevel, w, XBias, and XBiasH.
Referenced by G4SPSPosDistribution::GeneratePointsInBeam(), G4SPSPosDistribution::GeneratePointsInPlane(), G4SPSPosDistribution::GeneratePointsInVolume(), and G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandY | ( | ) |
Definition at line 327 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFYBias, IPDFYBiasH, local_IPDFYBias, mutex, verbosityLevel, w, YBias, and YBiasH.
Referenced by G4SPSPosDistribution::GeneratePointsInBeam(), G4SPSPosDistribution::GeneratePointsInPlane(), G4SPSPosDistribution::GeneratePointsInVolume(), and G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GenRandZ | ( | ) |
Definition at line 385 of file G4SPSRandomGenerator.cc.
References bweights, G4cout, G4endl, G4UniformRand, G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFZBias, IPDFZBiasH, local_IPDFZBias, mutex, verbosityLevel, w, ZBias, and ZBiasH.
Referenced by G4SPSPosDistribution::GeneratePointsInVolume(), and G4SPSPosDistribution::GeneratePointsOnSurface().
G4double G4SPSRandomGenerator::GetBiasWeight | ( | ) |
Definition at line 186 of file G4SPSRandomGenerator.cc.
Referenced by G4SingleParticleSource::GeneratePrimaryVertex().
void G4SPSRandomGenerator::ReSetHist | ( | G4String | atype | ) |
Definition at line 203 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, local_IPDFEnergyBias, local_IPDFPhiBias, local_IPDFPosPhiBias, local_IPDFPosThetaBias, local_IPDFThetaBias, local_IPDFXBias, local_IPDFYBias, local_IPDFZBias, mutex, PhiBias, PhiBiasH, PosPhiBias, PosPhiBiasH, PosThetaBias, PosThetaBiasH, ThetaBias, ThetaBiasH, XBias, XBiasH, YBias, YBiasH, ZBias, and ZBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetEnergyBias | ( | G4ThreeVector | input | ) |
Definition at line 155 of file G4SPSRandomGenerator.cc.
References EnergyBias, EnergyBiasH, G4PhysicsOrderedFreeVector::InsertValues(), and mutex.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetIntensityWeight | ( | G4double | weight | ) |
Definition at line 182 of file G4SPSRandomGenerator.cc.
References bweights.
Referenced by G4GeneralParticleSourceData::IntensityNormalise().
void G4SPSRandomGenerator::SetPhiBias | ( | G4ThreeVector | input | ) |
Definition at line 146 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, PhiBias, and PhiBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetPosPhiBias | ( | G4ThreeVector | input | ) |
Definition at line 173 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, PosPhiBias, and PosPhiBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetPosThetaBias | ( | G4ThreeVector | input | ) |
Definition at line 164 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, PosThetaBias, and PosThetaBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetThetaBias | ( | G4ThreeVector | input | ) |
Definition at line 137 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, ThetaBias, and ThetaBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetVerbosity | ( | G4int | a | ) |
Definition at line 193 of file G4SPSRandomGenerator.cc.
References a, mutex, and verbosityLevel.
void G4SPSRandomGenerator::SetXBias | ( | G4ThreeVector | input | ) |
Definition at line 110 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, XBias, and XBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetYBias | ( | G4ThreeVector | input | ) |
Definition at line 119 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, YBias, and YBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4SPSRandomGenerator::SetZBias | ( | G4ThreeVector | input | ) |
Definition at line 128 of file G4SPSRandomGenerator.cc.
References G4PhysicsOrderedFreeVector::InsertValues(), mutex, ZBias, and ZBiasH.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
private |
Definition at line 240 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), GenRandPhi(), GenRandPosPhi(), GenRandPosTheta(), GenRandTheta(), GenRandX(), GenRandY(), GenRandZ(), GetBiasWeight(), and SetIntensityWeight().
|
private |
Definition at line 222 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), ReSetHist(), and SetEnergyBias().
|
private |
Definition at line 223 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), ReSetHist(), and SetEnergyBias().
|
private |
Definition at line 222 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), and ReSetHist().
|
private |
Definition at line 224 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), and ReSetHist().
|
private |
Definition at line 218 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPhi(), and ReSetHist().
|
private |
Definition at line 220 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPhi(), and ReSetHist().
|
private |
Definition at line 230 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosPhi(), and ReSetHist().
|
private |
Definition at line 232 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosPhi(), and ReSetHist().
|
private |
Definition at line 226 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosTheta(), and ReSetHist().
|
private |
Definition at line 228 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosTheta(), and ReSetHist().
|
private |
Definition at line 214 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandTheta(), and ReSetHist().
|
private |
Definition at line 216 of file G4SPSRandomGenerator.hh.
Referenced by GenRandTheta(), and ReSetHist().
|
private |
Definition at line 202 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandX(), and ReSetHist().
|
private |
Definition at line 204 of file G4SPSRandomGenerator.hh.
Referenced by GenRandX(), and ReSetHist().
|
private |
Definition at line 206 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandY(), and ReSetHist().
|
private |
Definition at line 208 of file G4SPSRandomGenerator.hh.
Referenced by GenRandY(), and ReSetHist().
|
private |
Definition at line 210 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandZ(), and ReSetHist().
|
private |
Definition at line 212 of file G4SPSRandomGenerator.hh.
Referenced by GenRandZ(), and ReSetHist().
Definition at line 221 of file G4SPSRandomGenerator.hh.
Referenced by GenRandEnergy(), and ReSetHist().
Definition at line 217 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPhi(), and ReSetHist().
Definition at line 229 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosPhi(), and ReSetHist().
Definition at line 225 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosTheta(), and ReSetHist().
Definition at line 213 of file G4SPSRandomGenerator.hh.
Referenced by GenRandTheta(), and ReSetHist().
Definition at line 201 of file G4SPSRandomGenerator.hh.
Referenced by GenRandX(), and ReSetHist().
Definition at line 205 of file G4SPSRandomGenerator.hh.
Referenced by GenRandY(), and ReSetHist().
Definition at line 209 of file G4SPSRandomGenerator.hh.
Referenced by GenRandZ(), and ReSetHist().
|
private |
Definition at line 246 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), GenRandPhi(), GenRandPosPhi(), GenRandPosTheta(), GenRandTheta(), GenRandX(), GenRandY(), GenRandZ(), ReSetHist(), SetEnergyBias(), SetPhiBias(), SetPosPhiBias(), SetPosThetaBias(), SetThetaBias(), SetVerbosity(), SetXBias(), SetYBias(), SetZBias(), and ~G4SPSRandomGenerator().
|
private |
Definition at line 218 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPhi(), ReSetHist(), and SetPhiBias().
|
private |
Definition at line 219 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPhi(), ReSetHist(), and SetPhiBias().
|
private |
Definition at line 230 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosPhi(), ReSetHist(), and SetPosPhiBias().
|
private |
Definition at line 231 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosPhi(), ReSetHist(), and SetPosPhiBias().
|
private |
Definition at line 226 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandPosTheta(), ReSetHist(), and SetPosThetaBias().
|
private |
Definition at line 227 of file G4SPSRandomGenerator.hh.
Referenced by GenRandPosTheta(), ReSetHist(), and SetPosThetaBias().
|
private |
Definition at line 214 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandTheta(), ReSetHist(), and SetThetaBias().
|
private |
Definition at line 215 of file G4SPSRandomGenerator.hh.
Referenced by GenRandTheta(), ReSetHist(), and SetThetaBias().
|
private |
Definition at line 244 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandEnergy(), GenRandPhi(), GenRandPosPhi(), GenRandPosTheta(), GenRandTheta(), GenRandX(), GenRandY(), GenRandZ(), and SetVerbosity().
|
private |
Definition at line 202 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandX(), ReSetHist(), and SetXBias().
|
private |
Definition at line 203 of file G4SPSRandomGenerator.hh.
Referenced by GenRandX(), ReSetHist(), and SetXBias().
|
private |
Definition at line 206 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandY(), ReSetHist(), and SetYBias().
|
private |
Definition at line 207 of file G4SPSRandomGenerator.hh.
Referenced by GenRandY(), ReSetHist(), and SetYBias().
|
private |
Definition at line 210 of file G4SPSRandomGenerator.hh.
Referenced by G4SPSRandomGenerator(), GenRandZ(), ReSetHist(), and SetZBias().
|
private |
Definition at line 211 of file G4SPSRandomGenerator.hh.
Referenced by GenRandZ(), ReSetHist(), and SetZBias().