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

Method AddASource

source/event/src/G4GeneralParticleSourceData.cc:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void G4GeneralParticleSourceData::AddASource(G4double intensity)
116{
117 currentSource = new G4SingleParticleSource();
118 sourceVector.push_back(currentSource);
119 sourceIntensity.push_back(intensity);
120 currentSourceIdx = G4int(sourceVector.size() - 1);
121 normalised = false;
122}
123
124void G4GeneralParticleSourceData::DeleteASource(G4int idx)
125{

Callers 1

AddaSourceMethod · 0.80

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected