Import Geant4 11.2.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2023-06-30 09:09:57 +02:00
parent aef78ca386
commit dd1f179cda
3780 changed files with 212808 additions and 142780 deletions
@@ -0,0 +1,42 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// Geant4 class G4ChemDissociationChannels
//
// Author H. Tran 16.12.2022
//
#ifndef G4ChemDissociationChannels_h
#define G4ChemDissociationChannels_h 1
class G4ChemDissociationChannels{
public:
~G4ChemDissociationChannels() = default;
static void ConstructDissociationChannels();
static void ConstructMolecule();
};
#endif // G4ChemDissociationChannels_h
@@ -0,0 +1,42 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// Geant4 class G4ChemDissociationChannels
//
// H. Tran 16.12.2022
//
#ifndef G4ChemDissociationChannels_option1_h
#define G4ChemDissociationChannels_option1_h 1
class G4ChemDissociationChannels_option1{
public:
~G4ChemDissociationChannels_option1() = default;
static void ConstructDissociationChannels();
static void ConstructMolecule();
};
#endif
@@ -32,26 +32,19 @@
class G4DNAMolecularReactionTable;
class G4EmDNAChemistry : public G4VUserChemistryList,
public G4VPhysicsConstructor
class G4EmDNAChemistry : public G4VUserChemistryList, public G4VPhysicsConstructor
{
public:
G4EmDNAChemistry();
~G4EmDNAChemistry() override = default;
public:
explicit G4EmDNAChemistry();
virtual ~G4EmDNAChemistry();
virtual void ConstructParticle()
{
ConstructMolecule();
}
virtual void ConstructMolecule();
virtual void ConstructProcess();
virtual void ConstructDissociationChannels();
virtual void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable);
virtual void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable);
void ConstructParticle() override { ConstructMolecule(); }
void ConstructMolecule() override;
void ConstructProcess() override;
void ConstructDissociationChannels() override;
void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable) override;
void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable) override;
};
#endif
@@ -32,26 +32,22 @@
class G4DNAMolecularReactionTable;
class G4EmDNAChemistry_option1 : public G4VUserChemistryList,
public G4VPhysicsConstructor
class G4EmDNAChemistry_option1 : public G4VUserChemistryList, public G4VPhysicsConstructor
{
public:
G4EmDNAChemistry_option1();
~G4EmDNAChemistry_option1() override = default;
public:
explicit G4EmDNAChemistry_option1();
virtual ~G4EmDNAChemistry_option1();
virtual void ConstructParticle()
void ConstructParticle() override
{
ConstructMolecule();
}
virtual void ConstructMolecule();
virtual void ConstructProcess();
virtual void ConstructDissociationChannels();
virtual void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable);
virtual void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable);
void ConstructMolecule() override;
void ConstructProcess() override;
void ConstructDissociationChannels() override;
void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable) override;
void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable) override;
};
#endif
@@ -34,24 +34,20 @@ class G4MolecularConfiguration;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4EmDNAChemistry_option2
: public G4VUserChemistryList
, public G4VPhysicsConstructor
class G4EmDNAChemistry_option2 : public G4VUserChemistryList, public G4VPhysicsConstructor
{
public:
G4EmDNAChemistry_option2();
virtual ~G4EmDNAChemistry_option2() override;
public:
G4EmDNAChemistry_option2();
~G4EmDNAChemistry_option2() override = default;
void ConstructParticle() override
{
ConstructMolecule();
}
void ConstructMolecule() override;
void ConstructProcess() override;
void ConstructParticle() override
{
ConstructMolecule();
}
void ConstructMolecule() override;
void ConstructProcess() override;
void ConstructDissociationChannels() override;
void ConstructReactionTable(
G4DNAMolecularReactionTable* pTable) override;
void ConstructTimeStepModel(
G4DNAMolecularReactionTable* pTable) override;
void ConstructDissociationChannels() override;
void ConstructReactionTable(G4DNAMolecularReactionTable* pTable) override;
void ConstructTimeStepModel(G4DNAMolecularReactionTable* pTable) override;
};
@@ -47,18 +47,18 @@ class G4EmDNAChemistry_option3 : public G4VUserChemistryList,
public:
G4EmDNAChemistry_option3();
virtual ~G4EmDNAChemistry_option3();
~G4EmDNAChemistry_option3() override = default;
virtual void ConstructParticle()
void ConstructParticle() override
{
ConstructMolecule();
}
virtual void ConstructMolecule();
virtual void ConstructProcess();
void ConstructMolecule() override;
void ConstructProcess() override;
virtual void ConstructDissociationChannels();
virtual void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable);
virtual void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable);
void ConstructDissociationChannels() override;
void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable) override;
void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable) override;
inline void SetTimeStepModel(const TimeStepModel& model)
{
fTimeStepModel = model;
@@ -54,6 +54,7 @@ class G4ProcessManager;
class G4ParticleDefinition;
class G4EmConfigurator;
class G4VMscModel;
class G4VEmProcess;
class G4EmModelActivator
{
@@ -72,7 +73,7 @@ private:
void ActivateEmOptions();
void FindOrAddProcess(const G4ParticleDefinition*, const G4String&);
G4VEmProcess* FindOrAddProcess(const G4ParticleDefinition*, const G4String&);
void AddStandardScattering(const G4ParticleDefinition*, G4EmConfigurator*,
G4VMscModel*, const G4String&,
@@ -53,13 +53,17 @@ public:
explicit G4EmParticleList();
~G4EmParticleList();
~G4EmParticleList() = default;
// list of names of main EM particles
const std::vector<G4String>& PartNames() const;
// minimal list of names of charged particles
const std::vector<G4String>& EmChargedPartNames() const;
private:
std::vector<G4String> pNames;
std::vector<G4String> pNames;
std::vector<G4String> cNames;
};
#endif
@@ -118,17 +118,17 @@ public:
const G4String& directory,
G4bool ascii) override;
// Temporary method
const G4String& GetSubProcessName() const;
// Return sub-process limiting current step
const G4VProcess* GetCreatorProcess() const override;
inline const G4VProcess* GetSelectedProcess() const;
// Temporary method
// Temporary methods
const G4String& GetSubProcessName() const;
G4int GetSubProcessSubType() const;
G4VEmProcess* GetEmProcess(const G4String& name) override;
inline const G4VProcess* GetSelectedProcess() const;
const G4VProcess* GetCreatorProcess() const override;
inline G4HadronicProcess* GetGammaNuclear() const;
// hide copy constructor and assignment operator
G4GammaGeneralProcess(G4GammaGeneralProcess &) = delete;
@@ -231,6 +231,14 @@ inline const G4VProcess* G4GammaGeneralProcess::GetSelectedProcess() const
return selectedProc;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4HadronicProcess* G4GammaGeneralProcess::GetGammaNuclear() const
{
return theGammaNuclear;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#endif