MCPcopy Create free account
hub / github.com/Geant4/geant4 / AddaSource

Method AddaSource

source/event/src/G4GeneralParticleSource.cc:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void G4GeneralParticleSource::AddaSource(G4double aV)
78{
79 GPSData->Lock();
80
81 GPSData->AddASource(aV);
82 theMessenger->SetParticleGun(GPSData->GetCurrentSource());
83
84 // TODO: But do we really normalize here after each source?
85 IntensityNormalization();
86
87 GPSData->Unlock();
88}
89
90void G4GeneralParticleSource::IntensityNormalization()
91{

Callers 1

SetNewValueMethod · 0.80

Calls 5

LockMethod · 0.80
AddASourceMethod · 0.80
SetParticleGunMethod · 0.80
UnlockMethod · 0.80
GetCurrentSourceMethod · 0.45

Tested by

no test coverage detected