Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
Public 멤버 함수 | 정적 Public 멤버 함수 | Protected 속성 | Private 멤버 함수 | Private 속성 | 모든 멤버 목록
G4GeneralParticleSource 클래스 참조

#include <G4GeneralParticleSource.hh>

G4GeneralParticleSource에 대한 상속 다이어그램 :
G4VPrimaryGenerator

Public 멤버 함수

 G4GeneralParticleSource ()
 
 ~G4GeneralParticleSource ()
 
void GeneratePrimaryVertex (G4Event *)
 
G4int GetNumberofSource ()
 
void ListSource ()
 
void SetCurrentSourceto (G4int)
 
void SetCurrentSourceIntensity (G4double)
 
G4SingleParticleSourceGetCurrentSource () const
 
G4int GetCurrentSourceIndex () const
 
G4double GetCurrentSourceIntensity () const
 
void ClearAll ()
 
void AddaSource (G4double)
 
void DeleteaSource (G4int)
 
void SetVerbosity (G4int i)
 
void SetMultipleVertex (G4bool av)
 
void SetFlatSampling (G4bool av)
 
void SetParticleDefinition (G4ParticleDefinition *aParticleDefinition)
 
G4ParticleDefinitionGetParticleDefinition () const
 
void SetParticleCharge (G4double aCharge)
 
void SetParticlePolarization (G4ThreeVector aVal)
 
G4ThreeVector GetParticlePolarization () const
 
void SetParticleTime (G4double aTime)
 
G4double GetParticleTime () const
 
void SetNumberOfParticles (G4int i)
 
G4int GetNumberOfParticles () const
 
G4ThreeVector GetParticlePosition () const
 
G4ThreeVector GetParticleMomentumDirection () const
 
G4double GetParticleEnergy () const
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 

정적 Public 멤버 함수

static G4bool CheckVertexInsideWorld (const G4ThreeVector &pos)
 

Protected 속성

G4ThreeVector particle_position
 
G4double particle_time
 

Private 멤버 함수

void IntensityNormalization ()
 

Private 속성

G4bool normalised
 
G4GeneralParticleSourceMessengertheMessenger
 
G4GeneralParticleSourceDataGPSData
 

상세한 설명

Andrea Dotti Feb 2015 GPS messenger design requires some explanation for what distributions parameters are concerned : Each thread has its own GPS since primary generation is a user action. However to save memory the underlying structures that provide the GPS functionalities ( the G4SPS*Distribution classes and the G4SPSRandomGenerator class) are shared among threads. This implies that modifying parameters of sources requires some attention: 1- Only one thread should change source parameters. 2- Changing of parameters can happen only between runs, when is guaranteed that no thread is accessing them 2- UI commands require that even if messenger is instantiated in a thread the commands are executed in the master (this is possible since V10.1) The simplest solution is to use UI commands to change GPS parameters and avoid C++ APIs. If this is inevitable a simple solution is to instantiate an instance of G4GeneralParticleSource explicitly in the master thread (for example in G4VUserActionInitialization::BuildForMaster() and set the defaults parameter there).

G4GeneralParticleSource.hh 파일의 179 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

G4GeneralParticleSource::G4GeneralParticleSource ( )
G4GeneralParticleSource::~G4GeneralParticleSource ( )

G4GeneralParticleSource.cc 파일의 97 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceMessenger::Destroy(), theMessenger.

멤버 함수 문서화

void G4GeneralParticleSource::AddaSource ( G4double  aV)
G4bool G4VPrimaryGenerator::CheckVertexInsideWorld ( const G4ThreeVector pos)
staticinherited

G4VPrimaryGenerator.cc 파일의 45 번째 라인에서 정의되었습니다.

다음을 참조함 : G4TransportationManager::GetTransportationManager(), kInside.

void G4GeneralParticleSource::ClearAll ( )

G4GeneralParticleSource.cc 파일의 166 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::ClearSources(), GPSData, G4GeneralParticleSourceData::Normalised(), normalised.

다음에 의해서 참조됨 : G4GeneralParticleSourceMessenger::SetNewValue().

void G4GeneralParticleSource::DeleteaSource ( G4int  aV)
void G4GeneralParticleSource::GeneratePrimaryVertex ( G4Event evt)
virtual
G4SingleParticleSource* G4GeneralParticleSource::GetCurrentSource ( ) const
inline
G4int G4GeneralParticleSource::GetCurrentSourceIndex ( ) const
inline

G4GeneralParticleSource.hh 파일의 195 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::GetCurrentSourceIdx(), GPSData.

다음에 의해서 참조됨 : GetCurrentSourceIntensity(), G4GeneralParticleSourceMessenger::SetNewValue().

G4double G4GeneralParticleSource::GetCurrentSourceIntensity ( ) const
inline

G4GeneralParticleSource.hh 파일의 197 번째 라인에서 정의되었습니다.

다음을 참조함 : GetCurrentSourceIndex(), G4GeneralParticleSourceData::GetIntensity(), GPSData.

다음에 의해서 참조됨 : G4GeneralParticleSourceMessenger::SetNewValue().

G4int G4GeneralParticleSource::GetNumberOfParticles ( ) const
inline
G4int G4GeneralParticleSource::GetNumberofSource ( )
inline

G4GeneralParticleSource.hh 파일의 189 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::GetSourceVectorSize(), GPSData.

다음에 의해서 참조됨 : G4GeneralParticleSourceMessenger::SetNewValue().

G4ParticleDefinition* G4GeneralParticleSource::GetParticleDefinition ( ) const
inline
G4double G4GeneralParticleSource::GetParticleEnergy ( ) const
inline

G4GeneralParticleSource.hh 파일의 244 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticleEnergy(), GPSData.

다음에 의해서 참조됨 : UltraPrimaryGeneratorAction::GeneratePrimaries().

G4ThreeVector G4GeneralParticleSource::GetParticleMomentumDirection ( ) const
inline
G4ThreeVector G4GeneralParticleSource::GetParticlePolarization ( ) const
inline
G4ThreeVector G4VPrimaryGenerator::GetParticlePosition ( )
inlineinherited
G4ThreeVector G4GeneralParticleSource::GetParticlePosition ( ) const
inline
G4double G4VPrimaryGenerator::GetParticleTime ( )
inlineinherited

G4VPrimaryGenerator.hh 파일의 67 번째 라인에서 정의되었습니다.

다음을 참조함 : G4VPrimaryGenerator::particle_time.

다음에 의해서 참조됨 : export_G4ParticleGun(), G4ParticleGunMessenger::GetCurrentValue().

G4double G4GeneralParticleSource::GetParticleTime ( ) const
inline

G4GeneralParticleSource.hh 파일의 232 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticleTime(), GPSData.

void G4GeneralParticleSource::IntensityNormalization ( )
private
void G4GeneralParticleSource::ListSource ( )
void G4GeneralParticleSource::SetCurrentSourceIntensity ( G4double  aV)
void G4GeneralParticleSource::SetCurrentSourceto ( G4int  aV)
void G4GeneralParticleSource::SetFlatSampling ( G4bool  av)
inline

G4GeneralParticleSource.hh 파일의 211 번째 라인에서 정의되었습니다.

다음을 참조함 : GPSData, normalised, G4GeneralParticleSourceData::SetFlatSampling().

다음에 의해서 참조됨 : G4GeneralParticleSourceMessenger::SetNewValue().

void G4GeneralParticleSource::SetMultipleVertex ( G4bool  av)
inline

G4GeneralParticleSource.hh 파일의 207 번째 라인에서 정의되었습니다.

다음을 참조함 : GPSData, G4GeneralParticleSourceData::SetMultipleVertex().

다음에 의해서 참조됨 : G4GeneralParticleSourceMessenger::SetNewValue().

void G4GeneralParticleSource::SetNumberOfParticles ( G4int  i)
inline
void G4GeneralParticleSource::SetParticleCharge ( G4double  aCharge)
inline

G4GeneralParticleSource.hh 파일의 220 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::GetCurrentSource(), GPSData, G4SingleParticleSource::SetParticleCharge().

void G4GeneralParticleSource::SetParticleDefinition ( G4ParticleDefinition aParticleDefinition)
inline
void G4GeneralParticleSource::SetParticlePolarization ( G4ThreeVector  aVal)
inline
void G4VPrimaryGenerator::SetParticlePosition ( G4ThreeVector  aPosition)
inlineinherited

G4VPrimaryGenerator.hh 파일의 69 번째 라인에서 정의되었습니다.

다음을 참조함 : G4VPrimaryGenerator::particle_position.

다음에 의해서 참조됨 : B01PrimaryGeneratorAction::B01PrimaryGeneratorAction(), B02PrimaryGeneratorAction::B02PrimaryGeneratorAction(), B03PrimaryGeneratorAction::B03PrimaryGeneratorAction(), B3PrimaryGeneratorAction::B3PrimaryGeneratorAction(), B5PrimaryGeneratorAction::B5PrimaryGeneratorAction(), CCalPrimaryGeneratorAction::CCalPrimaryGeneratorAction(), ExP02PrimaryGeneratorAction::ExP02PrimaryGeneratorAction(), export_G4ParticleGun(), F01PrimaryGeneratorAction::F01PrimaryGeneratorAction(), F02PrimaryGeneratorAction::F02PrimaryGeneratorAction(), F03PrimaryGeneratorAction::F03PrimaryGeneratorAction(), F04PrimaryGeneratorAction::F04PrimaryGeneratorAction(), G01PrimaryGeneratorAction::G01PrimaryGeneratorAction(), G02PrimaryGeneratorAction::G02PrimaryGeneratorAction(), G03PrimaryGeneratorAction::G03PrimaryGeneratorAction(), G04PrimaryGeneratorAction::G04PrimaryGeneratorAction(), G4ParticleGunMessenger::G4ParticleGunMessenger(), GammaRayTelPrimaryGeneratorAction::GammaRayTelPrimaryGeneratorAction(), GB01PrimaryGeneratorAction::GB01PrimaryGeneratorAction(), GB02PrimaryGeneratorAction::GB02PrimaryGeneratorAction(), GB03PrimaryGeneratorAction::GB03PrimaryGeneratorAction(), GB04PrimaryGeneratorAction::GB04PrimaryGeneratorAction(), GB05PrimaryGeneratorAction::GB05PrimaryGeneratorAction(), GB06PrimaryGeneratorAction::GB06PrimaryGeneratorAction(), RE06PrimaryGeneratorAction::GeneratePrimaries(), ExTGPrimaryGeneratorAction::GeneratePrimaries(), eRositaPrimaryGeneratorAction::GeneratePrimaries(), FCALPrimaryGeneratorAction::GeneratePrimaries(), PrimaryGeneratorAction1::GeneratePrimaries(), PrimaryGeneratorGun2::GeneratePrimaries(), F06PrimaryGeneratorAction::GeneratePrimaries(), B3PrimaryGeneratorAction::GeneratePrimaries(), ExN02PrimaryGeneratorAction::GeneratePrimaries(), B4PrimaryGeneratorAction::GeneratePrimaries(), ExUCNPrimaryGeneratorAction::GeneratePrimaries(), B2PrimaryGeneratorAction::GeneratePrimaries(), PrimaryGeneratorAction0::GeneratePrimaries(), F05PrimaryGeneratorAction::GeneratePrimaries(), B1PrimaryGeneratorAction::GeneratePrimaries(), PrimaryGeneratorAction4::GeneratePrimaries(), Dicom2PrimaryGeneratorAction::GeneratePrimaries(), RE04PrimaryGeneratorAction::GeneratePrimaries(), ExP01PrimaryGeneratorAction::GeneratePrimaries(), F04PrimaryGeneratorAction::GeneratePrimaries(), F02PrimaryGeneratorAction::GeneratePrimaries(), F03PrimaryGeneratorAction::GeneratePrimaries(), F01PrimaryGeneratorAction::GeneratePrimaries(), RE02PrimaryGeneratorAction::GeneratePrimaries(), PurgMagPrimaryGeneratorAction::GeneratePrimaries(), XrayFluoMercuryPrimaryGeneratorAction::GeneratePrimaries(), XrayFluoPlanePrimaryGeneratorAction::GeneratePrimaries(), FFPrimaryGeneratorAction::GeneratePrimaries(), DicomPrimaryGeneratorAction::GeneratePrimaries(), XrayFluoPrimaryGeneratorAction::GeneratePrimaries(), CexmcPrimaryGeneratorAction::GeneratePrimaries(), GammaRayTelPrimaryGeneratorAction::GeneratePrimaries(), CML2PrimaryGenerationAction::GeneratePrimaries(), GunPrimaryGeneratorAction::GunPrimaryGeneratorAction(), LXePrimaryGeneratorAction::LXePrimaryGeneratorAction(), PrimaryGeneratorAction::Notify(), OpNovicePrimaryGeneratorAction::OpNovicePrimaryGeneratorAction(), Par01PrimaryGeneratorAction::Par01PrimaryGeneratorAction(), Par02PrimaryGeneratorAction::Par02PrimaryGeneratorAction(), PrimaryGeneratorGun1::PrimaryGeneratorGun1(), RE01PrimaryGeneratorAction::RE01PrimaryGeneratorAction(), RE02PrimaryGeneratorAction::RE02PrimaryGeneratorAction(), RE03PrimaryGeneratorAction::RE03PrimaryGeneratorAction(), RE04PrimaryGeneratorAction::RE04PrimaryGeneratorAction(), RE05PrimaryGeneratorAction::RE05PrimaryGeneratorAction(), PrimaryGeneratorAction::SetDefaultKinematic(), CCalPrimaryGeneratorAction::SetGunPosition(), G4ParticleGunMessenger::SetNewValue(), XrayFluoMercuryPrimaryGeneratorAction::XrayFluoMercuryPrimaryGeneratorAction(), XrayFluoPlanePrimaryGeneratorAction::XrayFluoPlanePrimaryGeneratorAction(), XrayFluoPrimaryGeneratorAction::XrayFluoPrimaryGeneratorAction().

void G4GeneralParticleSource::SetParticleTime ( G4double  aTime)
inline

G4GeneralParticleSource.hh 파일의 230 번째 라인에서 정의되었습니다.

다음을 참조함 : G4GeneralParticleSourceData::GetCurrentSource(), GPSData, G4SingleParticleSource::SetParticleTime().

다음에 의해서 참조됨 : WLSPrimaryGeneratorAction::SetOptPhotonTime().

void G4GeneralParticleSource::SetVerbosity ( G4int  i)
inline

G4GeneralParticleSource.hh 파일의 204 번째 라인에서 정의되었습니다.

다음을 참조함 : GPSData, G4GeneralParticleSourceData::SetVerbosityAllSources().

다음에 의해서 참조됨 : G4GeneralParticleSourceMessenger::SetNewValue().

멤버 데이타 문서화

G4GeneralParticleSourceData* G4GeneralParticleSource::GPSData
private
G4bool G4GeneralParticleSource::normalised
private

G4GeneralParticleSource.hh 파일의 254 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ClearAll(), DeleteaSource(), GeneratePrimaryVertex(), IntensityNormalization(), SetCurrentSourceIntensity(), SetFlatSampling().

G4ThreeVector G4VPrimaryGenerator::particle_position
protectedinherited
G4double G4VPrimaryGenerator::particle_time
protectedinherited
G4GeneralParticleSourceMessenger* G4GeneralParticleSource::theMessenger
private

G4GeneralParticleSource.hh 파일의 257 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : AddaSource(), G4GeneralParticleSource(), SetCurrentSourceto(), ~G4GeneralParticleSource().


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: