Import Geant4 10.6.0.beta source tree
This commit is contained in:
@@ -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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
#pragma once
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4VUserChemistryList.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4DNAMolecularReactionTable;
|
||||
class G4MolecularConfiguration;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4EmDNAChemistry_option2
|
||||
: public G4VUserChemistryList
|
||||
, public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
G4EmDNAChemistry_option2();
|
||||
virtual ~G4EmDNAChemistry_option2() override;
|
||||
|
||||
void ConstructParticle() override
|
||||
{
|
||||
ConstructMolecule();
|
||||
}
|
||||
void ConstructMolecule() override;
|
||||
void ConstructProcess() override;
|
||||
|
||||
void ConstructDissociationChannels() override;
|
||||
void ConstructReactionTable(
|
||||
G4DNAMolecularReactionTable* pTable) override;
|
||||
void ConstructTimeStepModel(
|
||||
G4DNAMolecularReactionTable* pTable) override;
|
||||
};
|
||||
@@ -122,10 +122,6 @@ public:
|
||||
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;
|
||||
@@ -137,8 +133,10 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
inline G4double ComputeGeneralLambda(size_t idxe, size_t idxt,
|
||||
size_t& idx, G4double e);
|
||||
// It returns the cross section per volume for energy/ material
|
||||
G4double TotalCrossSectionPerVolume();
|
||||
|
||||
inline G4double ComputeGeneralLambda(size_t idxe, size_t idxt, size_t& idx);
|
||||
|
||||
inline G4double GetProbability(size_t idxt, size_t& idx);
|
||||
|
||||
@@ -171,6 +169,7 @@ private:
|
||||
G4double minEEEnergy;
|
||||
G4double minMMEnergy;
|
||||
G4double peLambda;
|
||||
G4double preStepLogE;
|
||||
|
||||
size_t nLowE;
|
||||
size_t nHighE;
|
||||
@@ -185,11 +184,11 @@ private:
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double
|
||||
G4GammaGeneralProcess::ComputeGeneralLambda(size_t idxe, size_t idxt,
|
||||
size_t& idx, G4double e)
|
||||
G4GammaGeneralProcess::ComputeGeneralLambda(size_t idxe, size_t idxt, size_t& idx)
|
||||
{
|
||||
idxEnergy = idxe;
|
||||
return theHandler->GetVector(idxt, currentCoupleIndex)->Value(e, idx);
|
||||
return theHandler->GetVector(idxt, currentCoupleIndex)
|
||||
->Value(preStepKinEnergy, preStepLogE, idx);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -197,7 +196,7 @@ G4GammaGeneralProcess::ComputeGeneralLambda(size_t idxe, size_t idxt,
|
||||
inline G4double G4GammaGeneralProcess::GetProbability(size_t idxt, size_t& idx)
|
||||
{
|
||||
return (theT[idxt]) ? theHandler->GetVector(idxt,
|
||||
currentCoupleIndex)->Value(preStepKinEnergy, idx) : 1.0;
|
||||
currentCoupleIndex)->Value(preStepKinEnergy, preStepLogE, idx) : 1.0;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
Reference in New Issue
Block a user