Geant4  10.02.p02
G4SPSEneDistribution Class Reference

Andrea Dotti Feb 2015 Important: This is a shared class between threads. More...

#include <G4SPSEneDistribution.hh>

+ Collaboration diagram for G4SPSEneDistribution:

Classes

struct  threadLocal_t
 

Public Member Functions

 G4SPSEneDistribution ()
 
 ~G4SPSEneDistribution ()
 
void SetEnergyDisType (G4String)
 
G4String GetEnergyDisType ()
 
void SetEmin (G4double)
 
G4double GetEmin ()
 
G4double GetArbEmin ()
 
void SetEmax (G4double)
 
G4double GetEmax ()
 
G4double GetArbEmax ()
 
void SetMonoEnergy (G4double)
 
void SetAlpha (G4double)
 
void SetBiasAlpha (G4double)
 
void SetTemp (G4double)
 
void SetBeamSigmaInE (G4double)
 
void SetEzero (G4double)
 
void SetGradient (G4double)
 
void SetInterCept (G4double)
 
void UserEnergyHisto (G4ThreeVector)
 
void ArbEnergyHisto (G4ThreeVector)
 
void ArbEnergyHistoFile (G4String)
 
void EpnEnergyHisto (G4ThreeVector)
 
void InputEnergySpectra (G4bool)
 
void InputDifferentialSpectra (G4bool)
 
void ArbInterpolate (G4String)
 
G4String GetIntType ()
 
void Calculate ()
 
void SetBiasRndm (G4SPSRandomGenerator *a)
 
void ReSetHist (G4String)
 
void SetVerbosity (G4int a)
 
G4double GetWeight ()
 
G4double GetMonoEnergy ()
 
G4double GetSE ()
 
G4double Getalpha ()
 
G4double GetEzero ()
 
G4double GetTemp ()
 
G4double Getgrad ()
 
G4double Getcept ()
 
G4PhysicsOrderedFreeVector GetUserDefinedEnergyHisto ()
 
G4PhysicsOrderedFreeVector GetArbEnergyHisto ()
 
G4double GenerateOne (G4ParticleDefinition *)
 
G4double GetProbability (G4double)
 

Private Member Functions

void LinearInterpolation ()
 
void LogInterpolation ()
 
void ExpInterpolation ()
 
void SplineInterpolation ()
 
void CalculateCdgSpectrum ()
 
void CalculateBbodySpectrum ()
 
void GenerateMonoEnergetic ()
 
void GenerateBiasPowEnergies ()
 
void GenerateGaussEnergies ()
 
void GenerateBremEnergies ()
 
void GenerateBbodyEnergies ()
 
void GenerateCdgEnergies ()
 
void GenUserHistEnergies ()
 
void GenEpnHistEnergies ()
 
void GenArbPointEnergies ()
 
void GenerateExpEnergies (G4bool)
 
void GenerateLinearEnergies (G4bool)
 
void GeneratePowEnergies (G4bool)
 
void ConvertEPNToEnergy ()
 
void InitHists ()
 

Private Attributes

G4String EnergyDisType
 
G4double weight
 
G4double MonoEnergy
 
G4double SE
 
G4double Emin
 
G4double Emax
 
G4double alpha
 
G4double Ezero
 
G4double Temp
 
G4double biasalpha
 
G4double grad
 
G4double cept
 
G4double prob_norm
 
G4bool Biased
 
G4bool EnergySpec
 
G4bool DiffSpec
 
G4PhysicsOrderedFreeVector UDefEnergyH
 
G4PhysicsOrderedFreeVector IPDFEnergyH
 
G4bool IPDFEnergyExist
 
G4bool IPDFArbExist
 
G4bool Epnflag
 
G4PhysicsOrderedFreeVector ArbEnergyH
 
G4PhysicsOrderedFreeVector IPDFArbEnergyH
 
G4PhysicsOrderedFreeVector EpnEnergyH
 
G4double CDGhist [3]
 
std::vector< G4double > * BBHist
 
std::vector< G4double > * Bbody_x
 
G4bool histInit
 
G4bool histCalcd
 
G4String IntType
 
G4doubleArb_grad
 
G4doubleArb_cept
 
G4bool Arb_grad_cept_flag
 
G4doubleArb_alpha
 
G4doubleArb_Const
 
G4bool Arb_alpha_Const_flag
 
G4doubleArb_ezero
 
G4bool Arb_ezero_flag
 
G4double ArbEmin
 
G4double ArbEmax
 
G4double particle_energy
 
G4SPSRandomGeneratoreneRndm
 
G4int verbosityLevel
 
G4PhysicsOrderedFreeVector ZeroPhysVector
 
std::vector
< G4DataInterpolation * > 
SplineInt
 
G4DataInterpolationSplinetemp
 
G4Mutex mutex
 
G4Cache< threadLocal_tthreadLocalData
 

Detailed Description

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 171 of file G4SPSEneDistribution.hh.

Constructor & Destructor Documentation

G4SPSEneDistribution::~G4SPSEneDistribution ( )

Member Function Documentation

void G4SPSEneDistribution::ArbEnergyHisto ( G4ThreeVector  input)

Definition at line 341 of file G4SPSEneDistribution.cc.

References ArbEnergyH, G4cout, G4endl, G4PhysicsOrderedFreeVector::InsertValues(), mutex, and verbosityLevel.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::ArbEnergyHistoFile ( G4String  filename)

Definition at line 355 of file G4SPSEneDistribution.cc.

References ArbEnergyH, FatalException, G4Exception(), G4PhysicsOrderedFreeVector::InsertValues(), and mutex.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::ArbInterpolate ( G4String  IType)

Definition at line 519 of file G4SPSEneDistribution.cc.

References ArbEmax, ArbEmin, ArbEnergyH, EnergyDisType, ExpInterpolation(), FatalException, G4Exception(), G4PhysicsOrderedFreeVector::GetMaxLowEdgeEnergy(), G4PhysicsOrderedFreeVector::GetMinLowEdgeEnergy(), IntType, LinearInterpolation(), LogInterpolation(), mutex, and SplineInterpolation().

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::Calculate ( )

Definition at line 387 of file G4SPSEneDistribution.cc.

References CalculateBbodySpectrum(), CalculateCdgSpectrum(), EnergyDisType, histInit, InitHists(), and mutex.

Referenced by GenerateBbodyEnergies(), and G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::CalculateBbodySpectrum ( )
private

Definition at line 465 of file G4SPSEneDistribution.cc.

References BBHist, Bbody_x, c2, Temp, and threadLocalData.

Referenced by Calculate().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::CalculateCdgSpectrum ( )
private

Definition at line 414 of file G4SPSEneDistribution.cc.

References CDGhist, keV, and threadLocalData.

Referenced by Calculate().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::ConvertEPNToEnergy ( )
private

Definition at line 1630 of file G4SPSEneDistribution.cc.

References G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, EpnEnergyH, Epnflag, FatalException, G4cout, G4endl, G4Exception(), G4ParticleDefinition::GetBaryonNumber(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), JustWarning, G4SPSEneDistribution::threadLocal_t::particle_definition, threadLocalData, and UDefEnergyH.

Referenced by GenEpnHistEnergies().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::EpnEnergyHisto ( G4ThreeVector  input)

Definition at line 370 of file G4SPSEneDistribution.cc.

References Emax, EpnEnergyH, Epnflag, G4cout, G4endl, G4PhysicsOrderedFreeVector::InsertValues(), mutex, threadLocalData, and verbosityLevel.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::ExpInterpolation ( )
private

Definition at line 816 of file G4SPSEneDistribution.cc.

References Arb_Const, Arb_ezero, Arb_ezero_flag, ArbEnergyH, DiffSpec, EnergySpec, FatalException, G4cout, G4endl, G4Exception(), G4PhysicsVector::GetLowEdgeEnergy(), G4ParticleDefinition::GetPDGMass(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFArbEnergyH, JustWarning, G4PhysicsVector::ScaleVector(), threadLocalData, and verbosityLevel.

Referenced by ArbInterpolate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenArbPointEnergies ( )
private
void G4SPSEneDistribution::GenEpnHistEnergies ( )
private

Definition at line 1578 of file G4SPSEneDistribution.cc.

References ConvertEPNToEnergy(), eneRndm, Epnflag, G4cout, G4endl, G4SPSRandomGenerator::GenRandEnergy(), G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFEnergyExist, IPDFEnergyH, G4TemplateAutoLock< M, L, U >::lock(), mutex, threadLocalData, UDefEnergyH, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateBbodyEnergies ( )
private

Definition at line 1286 of file G4SPSEneDistribution.cc.

References BBHist, Bbody_x, Calculate(), eneRndm, G4cout, G4endl, G4SPSRandomGenerator::GenRandEnergy(), histCalcd, G4TemplateAutoLock< M, L, U >::lock(), mutex, threadLocalData, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateBiasPowEnergies ( )
private

Definition at line 1146 of file G4SPSEneDistribution.cc.

References biasalpha, emax, G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, eneRndm, G4cout, G4endl, G4SPSRandomGenerator::GenRandEnergy(), GetProbability(), CLHEP::normal(), G4SPSEneDistribution::threadLocal_t::particle_energy, threadLocalData, verbosityLevel, and G4SPSEneDistribution::threadLocal_t::weight.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateBremEnergies ( )
private

Definition at line 1213 of file G4SPSEneDistribution.cc.

References G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, eneRndm, FatalException, G4cout, G4endl, G4Exception(), G4SPSRandomGenerator::GenRandEnergy(), G4SPSEneDistribution::threadLocal_t::particle_energy, Temp, threadLocalData, and verbosityLevel.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateCdgEnergies ( )
private

Definition at line 1356 of file G4SPSEneDistribution.cc.

References CDGhist, G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, eneRndm, G4cout, G4endl, G4SPSRandomGenerator::GenRandEnergy(), keV, G4SPSEneDistribution::threadLocal_t::particle_energy, threadLocalData, and verbosityLevel.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateExpEnergies ( G4bool  bArb = false)
private

Definition at line 1190 of file G4SPSEneDistribution.cc.

References G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, eneRndm, G4SPSEneDistribution::threadLocal_t::Ezero, G4cout, G4endl, G4UniformRand, G4SPSRandomGenerator::GenRandEnergy(), G4SPSEneDistribution::threadLocal_t::particle_energy, threadLocalData, and verbosityLevel.

Referenced by GenArbPointEnergies(), and GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateGaussEnergies ( )
private

Definition at line 1043 of file G4SPSEneDistribution.cc.

References MonoEnergy, SE, G4INCL::DeJongSpin::shoot(), and threadLocalData.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateLinearEnergies ( G4bool  bArb = false)
private

Definition at line 1050 of file G4SPSEneDistribution.cc.

References G4SPSEneDistribution::threadLocal_t::cept, G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, eneRndm, G4cout, G4endl, G4UniformRand, G4SPSRandomGenerator::GenRandEnergy(), G4SPSEneDistribution::threadLocal_t::grad, G4SPSEneDistribution::threadLocal_t::particle_energy, threadLocalData, and verbosityLevel.

Referenced by GenArbPointEnergies(), and GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenerateMonoEnergetic ( )
private

Definition at line 1038 of file G4SPSEneDistribution.cc.

References MonoEnergy, and threadLocalData.

Referenced by GenerateOne().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GeneratePowEnergies ( G4bool  bArb = false)
private

Definition at line 1107 of file G4SPSEneDistribution.cc.

References G4SPSEneDistribution::threadLocal_t::alpha, G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, eneRndm, G4cout, G4endl, G4UniformRand, G4SPSRandomGenerator::GenRandEnergy(), G4SPSEneDistribution::threadLocal_t::particle_energy, threadLocalData, and verbosityLevel.

Referenced by GenArbPointEnergies(), and GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::GenUserHistEnergies ( )
private

Definition at line 1405 of file G4SPSEneDistribution.cc.

References DiffSpec, G4PhysicsOrderedFreeVector::DumpValues(), EnergySpec, eneRndm, FatalException, G4cout, G4endl, G4Exception(), G4SPSRandomGenerator::GenRandEnergy(), G4PhysicsOrderedFreeVector::GetEnergy(), G4PhysicsVector::GetLowEdgeEnergy(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFEnergyExist, IPDFEnergyH, JustWarning, mutex, particle_energy, threadLocalData, UDefEnergyH, G4TemplateAutoLock< M, L, U >::unlock(), and verbosityLevel.

Referenced by GenerateOne().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4SPSEneDistribution::Getalpha ( )

Definition at line 289 of file G4SPSEneDistribution.cc.

References threadLocalData.

G4double G4SPSEneDistribution::GetArbEmax ( )

Definition at line 192 of file G4SPSEneDistribution.cc.

References ArbEmax, and mutex.

G4double G4SPSEneDistribution::GetArbEmin ( )

Definition at line 186 of file G4SPSEneDistribution.cc.

References ArbEmin, and mutex.

G4PhysicsOrderedFreeVector G4SPSEneDistribution::GetArbEnergyHisto ( )

Definition at line 321 of file G4SPSEneDistribution.cc.

References ArbEnergyH, and mutex.

G4double G4SPSEneDistribution::Getcept ( )

Definition at line 310 of file G4SPSEneDistribution.cc.

References threadLocalData.

G4double G4SPSEneDistribution::GetEmax ( )

Definition at line 204 of file G4SPSEneDistribution.cc.

References threadLocalData.

G4double G4SPSEneDistribution::GetEmin ( )

Definition at line 181 of file G4SPSEneDistribution.cc.

References threadLocalData.

G4String G4SPSEneDistribution::GetEnergyDisType ( )

Definition at line 169 of file G4SPSEneDistribution.cc.

References EnergyDisType, and mutex.

Referenced by UltraPrimaryGeneratorAction::GeneratePrimaries(), and G4GeneralParticleSource::ListSource().

+ Here is the caller graph for this function:

G4double G4SPSEneDistribution::GetEzero ( )

Definition at line 294 of file G4SPSEneDistribution.cc.

References threadLocalData.

G4double G4SPSEneDistribution::Getgrad ( )

Definition at line 305 of file G4SPSEneDistribution.cc.

References threadLocalData.

G4String G4SPSEneDistribution::GetIntType ( )

Definition at line 254 of file G4SPSEneDistribution.cc.

References IntType, and mutex.

G4double G4SPSEneDistribution::GetMonoEnergy ( )

Definition at line 277 of file G4SPSEneDistribution.cc.

References MonoEnergy, and mutex.

G4double G4SPSEneDistribution::GetProbability ( G4double  ene)

Definition at line 1798 of file G4SPSEneDistribution.cc.

References alpha, G4SPSEneDistribution::threadLocal_t::alpha, ArbEnergyH, G4SPSEneDistribution::threadLocal_t::cept, G4SPSEneDistribution::threadLocal_t::Emax, G4SPSEneDistribution::threadLocal_t::Emin, EnergyDisType, G4SPSEneDistribution::threadLocal_t::Ezero, G4cout, G4endl, G4SPSEneDistribution::threadLocal_t::grad, prob_norm, threadLocalData, and G4PhysicsVector::Value().

Referenced by GenerateBiasPowEnergies().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4SPSEneDistribution::GetSE ( )

Definition at line 283 of file G4SPSEneDistribution.cc.

References mutex, and SE.

G4double G4SPSEneDistribution::GetTemp ( )

Definition at line 299 of file G4SPSEneDistribution.cc.

References mutex, and Temp.

G4PhysicsOrderedFreeVector G4SPSEneDistribution::GetUserDefinedEnergyHisto ( )

Definition at line 315 of file G4SPSEneDistribution.cc.

References mutex, and UDefEnergyH.

G4double G4SPSEneDistribution::GetWeight ( )

Definition at line 272 of file G4SPSEneDistribution.cc.

References threadLocalData.

Referenced by G4SingleParticleSource::GeneratePrimaryVertex().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::InitHists ( )
private

Definition at line 405 of file G4SPSEneDistribution.cc.

References BBHist, Bbody_x, and histInit.

Referenced by Calculate().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::InputDifferentialSpectra ( G4bool  value)

Definition at line 511 of file G4SPSEneDistribution.cc.

References DiffSpec, G4cout, G4endl, mutex, and verbosityLevel.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::InputEnergySpectra ( G4bool  value)

Definition at line 503 of file G4SPSEneDistribution.cc.

References EnergySpec, G4cout, G4endl, mutex, and verbosityLevel.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::LinearInterpolation ( )
private

Definition at line 541 of file G4SPSEneDistribution.cc.

References Arb_cept, Arb_grad, Arb_grad_cept_flag, ArbEnergyH, DiffSpec, G4PhysicsOrderedFreeVector::DumpValues(), EnergySpec, FatalException, G4cout, G4endl, G4Exception(), G4PhysicsVector::GetLowEdgeEnergy(), G4ParticleDefinition::GetPDGMass(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFArbEnergyH, G4PhysicsVector::ScaleVector(), threadLocalData, and verbosityLevel.

Referenced by ArbInterpolate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::LogInterpolation ( )
private

Definition at line 674 of file G4SPSEneDistribution.cc.

References Arb_alpha, Arb_alpha_Const_flag, Arb_Const, Arb_ezero, ArbEnergyH, DiffSpec, EnergySpec, FatalException, G4cout, G4endl, G4Exception(), G4PhysicsVector::GetLowEdgeEnergy(), G4ParticleDefinition::GetPDGMass(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFArbEnergyH, G4PhysicsVector::ScaleVector(), threadLocalData, and verbosityLevel.

Referenced by ArbInterpolate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::ReSetHist ( G4String  atype)

Definition at line 1696 of file G4SPSEneDistribution.cc.

References ArbEnergyH, Emax, Emin, EpnEnergyH, G4cout, G4endl, IPDFArbEnergyH, IPDFArbExist, IPDFEnergyExist, IPDFEnergyH, mutex, UDefEnergyH, and ZeroPhysVector.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetAlpha ( G4double  alp)

Definition at line 219 of file G4SPSEneDistribution.cc.

References alpha, mutex, and threadLocalData.

Referenced by G4AdjointPrimaryGenerator::G4AdjointPrimaryGenerator(), and G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetBeamSigmaInE ( G4double  e)

Definition at line 215 of file G4SPSEneDistribution.cc.

References mutex, and SE.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetBiasAlpha ( G4double  alp)

Definition at line 225 of file G4SPSEneDistribution.cc.

References biasalpha, Biased, and mutex.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetBiasRndm ( G4SPSRandomGenerator a)

Definition at line 260 of file G4SPSEneDistribution.cc.

References a, eneRndm, and mutex.

Referenced by G4SingleParticleSource::G4SingleParticleSource().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetEmax ( G4double  ema)

Definition at line 198 of file G4SPSEneDistribution.cc.

References Emax, mutex, and threadLocalData.

Referenced by G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), and G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetEmin ( G4double  emi)

Definition at line 175 of file G4SPSEneDistribution.cc.

References Emin, mutex, and threadLocalData.

Referenced by G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), and G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetEnergyDisType ( G4String  DisType)

Definition at line 148 of file G4SPSEneDistribution.cc.

References ArbEnergyH, EnergyDisType, EpnEnergyH, IPDFArbEnergyH, IPDFArbExist, IPDFEnergyExist, IPDFEnergyH, mutex, UDefEnergyH, and ZeroPhysVector.

Referenced by ExExChPrimaryGeneratorAction::ExExChPrimaryGeneratorAction(), G4AdjointPrimaryGenerator::G4AdjointPrimaryGenerator(), G4GeneralParticleSourceMessenger::SetNewValue(), and UltraActionInitializer::UltraActionInitializer().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetEzero ( G4double  eze)

Definition at line 236 of file G4SPSEneDistribution.cc.

References Ezero, mutex, and threadLocalData.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetGradient ( G4double  gr)

Definition at line 242 of file G4SPSEneDistribution.cc.

References grad, mutex, and threadLocalData.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetInterCept ( G4double  c)

Definition at line 248 of file G4SPSEneDistribution.cc.

References cept, mutex, and threadLocalData.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetMonoEnergy ( G4double  menergy)

Definition at line 210 of file G4SPSEneDistribution.cc.

References MonoEnergy, and mutex.

Referenced by ExExChPrimaryGeneratorAction::ExExChPrimaryGeneratorAction(), G4GeneralParticleSourceMessenger::SetNewValue(), and UltraActionInitializer::UltraActionInitializer().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetTemp ( G4double  tem)

Definition at line 231 of file G4SPSEneDistribution.cc.

References mutex, and Temp.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SetVerbosity ( G4int  a)

Definition at line 266 of file G4SPSEneDistribution.cc.

References a, mutex, and verbosityLevel.

Referenced by G4SingleParticleSource::SetVerbosity().

+ Here is the caller graph for this function:

void G4SPSEneDistribution::SplineInterpolation ( )
private

Definition at line 932 of file G4SPSEneDistribution.cc.

References ArbEnergyH, G4DataInterpolation::CubicSplineInterpolation(), DiffSpec, EnergySpec, FatalException, G4cout, G4endl, G4Exception(), G4PhysicsVector::GetLowEdgeEnergy(), G4ParticleDefinition::GetPDGMass(), G4PhysicsVector::GetVectorLength(), G4PhysicsOrderedFreeVector::InsertValues(), IPDFArbEnergyH, G4PhysicsVector::ScaleVector(), SplineInt, Splinetemp, threadLocalData, and verbosityLevel.

Referenced by ArbInterpolate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SPSEneDistribution::UserEnergyHisto ( G4ThreeVector  input)

Definition at line 327 of file G4SPSEneDistribution.cc.

References Emax, G4cout, G4endl, G4PhysicsOrderedFreeVector::InsertValues(), mutex, threadLocalData, UDefEnergyH, and verbosityLevel.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4SPSEneDistribution::alpha
private
G4double* G4SPSEneDistribution::Arb_alpha
private
G4bool G4SPSEneDistribution::Arb_alpha_Const_flag
private
G4double* G4SPSEneDistribution::Arb_cept
private
G4double* G4SPSEneDistribution::Arb_Const
private
G4double* G4SPSEneDistribution::Arb_ezero
private
G4bool G4SPSEneDistribution::Arb_ezero_flag
private
G4double* G4SPSEneDistribution::Arb_grad
private
G4bool G4SPSEneDistribution::Arb_grad_cept_flag
private
G4double G4SPSEneDistribution::ArbEmax
private
G4double G4SPSEneDistribution::ArbEmin
private
std::vector<G4double>* G4SPSEneDistribution::BBHist
private
std::vector<G4double>* G4SPSEneDistribution::Bbody_x
private
G4double G4SPSEneDistribution::biasalpha
private
G4bool G4SPSEneDistribution::Biased
private

Definition at line 269 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), GenerateOne(), and SetBiasAlpha().

G4double G4SPSEneDistribution::CDGhist[3]
private

Definition at line 280 of file G4SPSEneDistribution.hh.

Referenced by CalculateCdgSpectrum(), and GenerateCdgEnergies().

G4double G4SPSEneDistribution::cept
private

Definition at line 267 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), GenerateOne(), and SetInterCept().

G4double G4SPSEneDistribution::Emax
private
G4double G4SPSEneDistribution::Emin
private

Definition at line 263 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), GenerateOne(), ReSetHist(), and SetEmin().

G4String G4SPSEneDistribution::EnergyDisType
private
G4PhysicsOrderedFreeVector G4SPSEneDistribution::EpnEnergyH
private
G4bool G4SPSEneDistribution::Epnflag
private

Definition at line 276 of file G4SPSEneDistribution.hh.

Referenced by ConvertEPNToEnergy(), EpnEnergyHisto(), and GenEpnHistEnergies().

G4double G4SPSEneDistribution::Ezero
private

Definition at line 264 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), GenerateOne(), and SetEzero().

G4double G4SPSEneDistribution::grad
private

Definition at line 267 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), GenerateOne(), and SetGradient().

G4bool G4SPSEneDistribution::histCalcd
private

Definition at line 287 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), and GenerateBbodyEnergies().

G4bool G4SPSEneDistribution::histInit
private

Definition at line 286 of file G4SPSEneDistribution.hh.

Referenced by Calculate(), G4SPSEneDistribution(), and InitHists().

G4String G4SPSEneDistribution::IntType
private
G4bool G4SPSEneDistribution::IPDFArbExist
private

Definition at line 276 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), ReSetHist(), and SetEnergyDisType().

G4bool G4SPSEneDistribution::IPDFEnergyExist
private
G4PhysicsOrderedFreeVector G4SPSEneDistribution::IPDFEnergyH
private
G4double G4SPSEneDistribution::MonoEnergy
private
G4double G4SPSEneDistribution::particle_energy
private

Definition at line 304 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), and GenUserHistEnergies().

G4double G4SPSEneDistribution::prob_norm
private

Definition at line 268 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), and GetProbability().

G4double G4SPSEneDistribution::SE
private
std::vector<G4DataInterpolation*> G4SPSEneDistribution::SplineInt
private
G4DataInterpolation* G4SPSEneDistribution::Splinetemp
private

Definition at line 314 of file G4SPSEneDistribution.hh.

Referenced by SplineInterpolation().

G4double G4SPSEneDistribution::Temp
private
G4double G4SPSEneDistribution::weight
private

Definition at line 259 of file G4SPSEneDistribution.hh.

Referenced by G4SPSEneDistribution(), and GenerateOne().

G4PhysicsOrderedFreeVector G4SPSEneDistribution::ZeroPhysVector
private

Definition at line 311 of file G4SPSEneDistribution.hh.

Referenced by ReSetHist(), and SetEnergyDisType().


The documentation for this class was generated from the following files: