Import Geant4 11.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2024-12-06 11:11:40 +01:00
parent e58e650b32
commit 32390e802b
1984 changed files with 98713 additions and 83996 deletions
@@ -5,6 +5,10 @@ which **must** added in reverse chronological order (newest at the top). It must
be used as a substitute for writing good git commit messages!
## 2024-07-17 Vladimir Ivanchenko (channeling-V11-02-00)
- G4ChannelingOptrMultiParticleChangeCrossSection,
G4ChannelingOptrChangeCrossSection - fixed Coverity warnings
## 2021-12-10 Ben Morgan (channeling-V11-00-00)
- Change to new Markdown History format
@@ -62,7 +62,8 @@ public:
// ------------------------------------------------------------
// -- Constructor: takes the name of the particle type to bias:
// ------------------------------------------------------------
G4ChannelingOptrChangeCrossSection(G4String particleToBias, G4String name = "ChannelingChangeXS");
G4ChannelingOptrChangeCrossSection(const G4String& particleToBias,
const G4String& name = "ChannelingChangeXS");
virtual ~G4ChannelingOptrChangeCrossSection();
virtual void StartRun();
@@ -58,7 +58,7 @@ public:
// -- Each particle type for which its name is passed will be biased; *provided*
// -- that the proper calls to biasingPhysics->Bias(particleName) have been done
// -- in the main program.
void AddParticle( G4String particleName );
void AddParticle(const G4String& particleName );
void AddChargedParticles();
@@ -41,9 +41,9 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4ChannelingOptrChangeCrossSection::G4ChannelingOptrChangeCrossSection(G4String particleName,
G4String name)
:G4VBiasingOperator(name),
G4ChannelingOptrChangeCrossSection::G4ChannelingOptrChangeCrossSection(const G4String& particleName,
const G4String& name)
:G4VBiasingOperator(name),
fChannelingID(G4PhysicsModelCatalog::GetModelID("model_channeling")),
fSetup(true){
fParticleToBias = G4ParticleTable::GetParticleTable()->FindParticle(particleName);
@@ -81,10 +81,10 @@ void G4ChannelingOptrChangeCrossSection::StartRun(){
for ( size_t i = 0 ; i < (sharedData->GetPhysicsBiasingProcessInterfaces()).size(); i++ ){
const G4BiasingProcessInterface* wrapperProcess =
(sharedData->GetPhysicsBiasingProcessInterfaces())[i];
G4String processName = wrapperProcess->GetWrappedProcess()->GetProcessName();
G4String operationName = "channelingChangeXS-" + processName;
const G4String& processName = wrapperProcess->GetWrappedProcess()->GetProcessName();
const G4String& operationName = "channelingChangeXS-" + processName;
fChangeCrossSectionOperations[wrapperProcess] =
new G4BOptnChangeCrossSection(operationName);
new G4BOptnChangeCrossSection(operationName);
G4ProcessType type = wrapperProcess->GetWrappedProcess()->GetProcessType();
G4int subType = wrapperProcess->GetWrappedProcess()->GetProcessSubType();
@@ -44,7 +44,7 @@ fnInteractions(0){
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void G4ChannelingOptrMultiParticleChangeCrossSection::AddParticle(G4String particleName){
void G4ChannelingOptrMultiParticleChangeCrossSection::AddParticle(const G4String& particleName){
const G4ParticleDefinition* particle =
G4ParticleTable::GetParticleTable()->FindParticle( particleName );
@@ -59,7 +59,8 @@ void G4ChannelingOptrMultiParticleChangeCrossSection::AddParticle(G4String parti
return;
}
G4ChannelingOptrChangeCrossSection* optr = new G4ChannelingOptrChangeCrossSection(particleName);
G4ChannelingOptrChangeCrossSection* optr =
new G4ChannelingOptrChangeCrossSection(particleName);
fParticlesToBias.push_back( particle );
fBOptrForParticle[ particle ] = optr;
}