Import Geant4 10.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2018-12-07 15:15:39 +01:00
parent 6aa23be517
commit db49709b53
11370 changed files with 187480 additions and 160142 deletions
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
#ifndef G4DNAChemistryList_hh
#define G4DNAChemistryList_hh 1
#ifndef G4EmDNAChemistry_hh
#define G4EmDNAChemistry_hh 1
#include "G4VPhysicsConstructor.hh"
#include "G4VUserChemistryList.hh"
@@ -0,0 +1,57 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#ifndef G4EmDNAChemistry_option1_hh
#define G4EmDNAChemistry_option1_hh 1
#include "G4VPhysicsConstructor.hh"
#include "G4VUserChemistryList.hh"
#include "globals.hh"
class G4DNAMolecularReactionTable;
class G4EmDNAChemistry_option1 : public G4VUserChemistryList,
public G4VPhysicsConstructor
{
public:
explicit G4EmDNAChemistry_option1();
virtual ~G4EmDNAChemistry_option1();
virtual void ConstructParticle()
{
ConstructMolecule();
}
virtual void ConstructMolecule();
virtual void ConstructProcess();
virtual void ConstructDissociationChannels();
virtual void ConstructReactionTable(G4DNAMolecularReactionTable* reactionTable);
virtual void ConstructTimeStepModel(G4DNAMolecularReactionTable* reactionTable);
};
#endif
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmDNAPhysics.hh 98736 2016-08-09 10:55:12Z gcosmo $
#ifndef G4EmDNAPhysics_h
#define G4EmDNAPhysics_h 1
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmDNAPhysicsActivator.hh 66704 2013-01-10 18:20:17Z gunter $
#ifndef G4EmDNAPhysicsActivator_h
#define G4EmDNAPhysicsActivator_h 1
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmDNAPhysics_option1.hh 66704 2013-01-10 18:20:17Z gunter $
#ifndef G4EmDNAPhysics_option1_h
#define G4EmDNAPhysics_option1_h 1
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmDNAPhysics_option2.hh 66704 2013-01-10 18:20:17Z gunter $
#ifndef G4EmDNAPhysics_option2_h
#define G4EmDNAPhysics_option2_h 1
@@ -0,0 +1,60 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// S. Incerti (incerti@cenbg.in2p3.fr)
//
#ifndef G4EmDNAPhysics_option8_h
#define G4EmDNAPhysics_option8_h 1
#include "G4VPhysicsConstructor.hh"
#include "globals.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4EmDNAPhysics_option8 : public G4VPhysicsConstructor
{
public:
explicit G4EmDNAPhysics_option8(G4int ver=1, const G4String& name="");
virtual ~G4EmDNAPhysics_option8();
virtual void ConstructParticle();
virtual void ConstructProcess();
private:
G4int verbose;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmLivermorePhysics.hh 105735 2017-08-16 12:59:43Z gcosmo $
#ifndef G4EmLivermorePhysics_h
#define G4EmLivermorePhysics_h 1
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmLivermorePolarizedPhysics.hh 105735 2017-08-16 12:59:43Z gcosmo $
#ifndef G4EmLivermorePolarizedPhysics_h
#define G4EmLivermorePolarizedPhysics_h 1
@@ -23,8 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmModelActivator.hh 1651 2015-05-02 16:40:24Z vnivanch $
// GEANT4 tag $Name$
//
//---------------------------------------------------------------------------
//
@@ -79,6 +77,8 @@ private:
G4bool HasMsc(G4ProcessManager*) const;
G4VMscModel* GetGSModel();
G4EmModelActivator & operator=(const G4EmModelActivator &right) = delete;
G4EmModelActivator(const G4EmModelActivator&) = delete;
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmParticleList 99930 2016-10-11 16:34:52Z gunter $
//
//---------------------------------------------------------------------------
//
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmPenelopePhysics.hh 105735 2017-08-16 12:59:43Z gcosmo $
#ifndef G4EmPenelopePhysics_h
#define G4EmPenelopePhysics_h 1
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysics.hh 105735 2017-08-16 12:59:43Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysicsGS.hh 66704 2013-01-10 18:20:17Z gunter $
//
//---------------------------------------------------------------------------
//
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysicsSS.hh 66704 2013-01-10 18:20:17Z gunter $
//
//---------------------------------------------------------------------------
//
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysicsWVI.hh 66704 2013-01-10 18:20:17Z gunter $
//
//---------------------------------------------------------------------------
//
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4EmStandardPhysics_option1.hh 105735 2017-08-16 12:59:43Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysics_option2.hh 105735 2017-08-16 12:59:43Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysics_option3.hh 105735 2017-08-16 12:59:43Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -24,7 +24,6 @@
// ********************************************************************
//
//
// $Id: G4EmStandardPhysics_option4.hh 105735 2017-08-16 12:59:43Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -0,0 +1,225 @@
//
// ********************************************************************
// * 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 header file
//
//
// File name: G4GammaGeneralProcess
//
// Author: Vladimir Ivanchenko
//
// Creation date: 19.07.2018
//
// Modifications:
//
// Class Description:
//
// It is the gamma super process
// -------------------------------------------------------------------
//
#ifndef G4GammaGeneralProcess_h
#define G4GammaGeneralProcess_h 1
#include <CLHEP/Units/SystemOfUnits.h>
#include "G4VEmProcess.hh"
#include "globals.hh"
#include "G4EmDataHandler.hh"
class G4Step;
class G4Track;
class G4ParticleDefinition;
class G4VParticleChange;
class G4GammaConversionToMuons;
class G4HadronicProcess;
class G4LossTableManager;
class G4MaterialCutsCouple;
class G4EmParameters;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class G4GammaGeneralProcess : public G4VEmProcess
{
public:
explicit G4GammaGeneralProcess();
virtual ~G4GammaGeneralProcess();
G4bool IsApplicable(const G4ParticleDefinition&) final;
void AddEmProcess(G4VEmProcess*);
void AddMMProcess(G4GammaConversionToMuons*);
void AddHadProcess(G4HadronicProcess*);
void ProcessDescription(std::ostream& outFile) const final;
protected:
void InitialiseProcess(const G4ParticleDefinition*) final;
public:
// Initialise for build of tables
void PreparePhysicsTable(const G4ParticleDefinition&) final;
// Build physics table during initialisation
void BuildPhysicsTable(const G4ParticleDefinition&) final;
// Called before tracking of each new G4Track
void StartTracking(G4Track*) final;
// implementation of virtual method, specific for G4GammaGeneralProcess
G4double PostStepGetPhysicalInteractionLength(
const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition) final;
// implementation of virtual method, specific for G4GammaGeneralProcess
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) final;
// Store PhysicsTable in a file.
// Return false in case of failure at I/O
G4bool StorePhysicsTable(const G4ParticleDefinition*,
const G4String& directory,
G4bool ascii = false) final;
// Retrieve Physics from a file.
// (return true if the Physics Table can be build by using file)
// (return false if the process has no functionality or in case of failure)
// File name should is constructed as processName+particleName and the
// should be placed under the directory specifed by the argument.
G4bool RetrievePhysicsTable(const G4ParticleDefinition*,
const G4String& directory,
G4bool ascii) final;
// It returns the cross section per volume for energy/ material
G4double TotalCrossSectionPerVolume(G4double energy,
const G4MaterialCutsCouple* couple);
const G4String& GetProcessName() const;
G4int GetProcessSubType() const;
protected:
G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize,
G4ForceCondition* condition) final;
private:
inline G4double ComputeGeneralLambda(size_t idxe, size_t idxt,
size_t& idx, G4double e);
inline G4double GetProbability(size_t idxt, size_t& idx);
inline void SelectedProcess(const G4Track& track, G4VProcess* ptr);
inline G4VParticleChange* SampleSecondaries(const G4Track&, const G4Step&,
G4VEmProcess*);
G4VParticleChange* SampleSecondaries(const G4Track&, const G4Step&,
G4HadronicProcess*);
// hide copy constructor and assignment operator
G4GammaGeneralProcess(G4GammaGeneralProcess &) = delete;
G4GammaGeneralProcess & operator=(const G4GammaGeneralProcess &right) = delete;
static G4EmDataHandler* theHandler;
static const size_t nTables = 15;
static G4bool theT[nTables];
static G4String nameT[nTables];
G4VEmProcess* thePhotoElectric;
G4VEmProcess* theCompton;
G4VEmProcess* theConversionEE;
G4VEmProcess* theRayleigh;
G4HadronicProcess* theGammaNuclear;
G4GammaConversionToMuons* theConversionMM;
G4VProcess* selectedProc;
G4double minPEEnergy;
G4double minEEEnergy;
G4double minMMEnergy;
G4double peLambda;
size_t nLowE;
size_t nHighE;
size_t idxEnergy;
size_t idx0;
size_t idx1;
size_t idx2;
size_t idx3;
G4bool splineFlag;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double
G4GammaGeneralProcess::ComputeGeneralLambda(size_t idxe, size_t idxt,
size_t& idx, G4double e)
{
idxEnergy = idxe;
return theHandler->GetVector(idxt, currentCoupleIndex)->Value(e, idx);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4double G4GammaGeneralProcess::GetProbability(size_t idxt, size_t& idx)
{
return (theT[idxt]) ? theHandler->GetVector(idxt,
currentCoupleIndex)->Value(preStepKinEnergy, idx) : 1.0;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void
G4GammaGeneralProcess::SelectedProcess(const G4Track& track, G4VProcess* ptr)
{
selectedProc = ptr;
const_cast<G4Track*>(&track)->SetCreatorProcess(ptr);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline G4VParticleChange*
G4GammaGeneralProcess::SampleSecondaries(const G4Track& track, const G4Step& step,
G4VEmProcess* proc)
{
proc->CurrentSetup(currentCouple,preStepKinEnergy);
SelectedProcess(track, proc);
return proc->PostStepDoIt(track, step);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
#endif