Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -75,12 +75,6 @@ public:
G4double tmin,
G4double maxEnergy);
//---
// kept for backward compatibility
inline void SetKillBelowThreshold (G4double threshold);
G4double GetKillBelowThreshold () { return killBelowEnergy; }
//---
inline void SelectStationary(G4bool input);
protected:
@@ -94,9 +88,6 @@ private:
// Water density table
const std::vector<G4double>* fpMolWaterDensity;
G4double killBelowEnergy;
G4double lowEnergyLimit;
G4double highEnergyLimit;
G4bool isInitialised;
G4int verboseLevel;
@@ -159,21 +150,5 @@ inline void G4DNACPA100ElasticModel::SelectStationary (G4bool input)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//---
// kept for backward compatibility
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
inline void G4DNACPA100ElasticModel::SetKillBelowThreshold (G4double /*threshold*/)
{
G4ExceptionDescription errMsg;
errMsg << "*** WARNING : "
<< "G4DNACPA100ElasticModel::SetKillBelowThreshold"
<< "is deprecated, the kill threshold won't be taken into account";
G4Exception ("*** WARNING : G4DNACPA100ElasticModel::SetKillBelowThreshold DEPRECATED","",JustWarning,"") ;
}
#endif
@@ -0,0 +1,115 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/*
* G4DNAIRT.hh
*
* Created on: Jul 23, 2019
* Author: W. G. Shin
* J. Ramos-Mendez and B. Faddegon
*/
#ifndef G4DNAIRT_HH_
#define G4DNAIRT_HH_
#include "globals.hh"
#include "G4ThreeVector.hh"
#include "G4DNAMolecularReaction.hh"
#include "G4DNAMolecularReactionTable.hh"
#include "G4MoleculeTable.hh"
#include "G4VDNAReactionModel.hh"
#include "G4VITReactionProcess.hh"
#include "G4ITReactionTable.hh"
#include "G4ITTrackHolder.hh"
#include "G4ITReaction.hh"
#include "G4Molecule.hh"
#include "G4VITReactionProcess.hh"
#include "G4ParticleChange.hh"
#include "AddClone_def.hh"
#include <vector>
#include <map>
class G4DNAMolecularReactionTable;
class G4VDNAReactionModel;
class G4ErrorFunction;
class G4DNAIRT : public G4VITReactionProcess
{
public:
G4DNAIRT();
explicit G4DNAIRT(G4VDNAReactionModel*);
~G4DNAIRT() override;
G4DNAIRT(const G4DNAIRT& other) = delete;
G4DNAIRT& operator=(const G4DNAIRT& other) = delete;
G4bool TestReactibility(const G4Track&,
const G4Track&,
double ,
bool ) override;
std::vector<std::unique_ptr<G4ITReactionChange>> FindReaction(G4ITReactionSet*, const double, const double, const bool) override;
std::unique_ptr<G4ITReactionChange> MakeReaction(const G4Track&, const G4Track&) override;
void SetReactionModel(G4VDNAReactionModel*);
void Initialize() override;
void SpaceBinning();
void IRTSampling();
void Sampling(G4Track*);
G4double GetIndependentReactionTime(const G4MolecularConfiguration*, const G4MolecularConfiguration*, G4double);
G4int FindBin(G4int, G4double, G4double, G4double);
G4double SamplePDC(G4double , G4double );
protected:
const G4DNAMolecularReactionTable*& fMolReactionTable;
G4VDNAReactionModel* fpReactionModel;
private:
G4ITTrackHolder* fTrackHolder;
G4ITReactionSet* fReactionSet;
G4ErrorFunction* erfc;
std::map<G4int,std::map<G4int,std::map<G4int,std::vector<G4Track*>>>> spaceBinned;
G4double fRCutOff;
G4double timeMin;
G4double timeMax;
G4double fXMin, fYMin, fZMin;
G4double fXMax, fYMax, fZMax;
G4int fNx, fNy, fNz;
G4int xiniIndex, yiniIndex, ziniIndex;
G4int xendIndex, yendIndex, zendIndex;
};
#endif /* G4DNAIRT_HH_ */
@@ -0,0 +1,114 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
/*
* G4DNAIRTMoleculeEncounterStepper.hh
*
* Created on: Jul 23, 2019
* Author: W. G. Shin
* J. Ramos-Mendez and B. Faddegon
*/
#pragma once
#include "G4VITTimeStepComputer.hh"
#include "G4KDTreeResult.hh"
#include "G4ITReaction.hh"
#include "G4ITTrackHolder.hh"
class G4VDNAReactionModel;
class G4DNAMolecularReactionTable;
class G4MolecularConfiguration;
class G4Molecule;
/**
* Given a molecule G4DNAIRTMoleculeEncounterStepper will calculate for its possible reactants
* what will be the minimum encounter time and the associated molecules.*
*
* This model includes dynamical time steps as explained in
* "Computer-Aided Stochastic Modeling of the Radiolysis of Liquid Water",
* V. Michalik, M. Begusová, E. A. Bigildeev,
* Radiation Research, Vol. 149, No. 3 (Mar., 1998), pp. 224-236
*
*/
class G4DNAIRTMoleculeEncounterStepper : public G4VITTimeStepComputer
{
public:
G4DNAIRTMoleculeEncounterStepper();
virtual ~G4DNAIRTMoleculeEncounterStepper();
G4DNAIRTMoleculeEncounterStepper(const G4DNAIRTMoleculeEncounterStepper&) = delete;
G4DNAIRTMoleculeEncounterStepper& operator=(const G4DNAIRTMoleculeEncounterStepper&) = delete;
virtual void Prepare();
virtual G4double CalculateStep(const G4Track&, const G4double&);
virtual G4double CalculateMinTimeStep(G4double, G4double);
void SetReactionModel(G4VDNAReactionModel*);
G4VDNAReactionModel* GetReactionModel();
void SetVerbose(int);
// Final time returned when reaction is available in the reaction table = 1
// All details = 2
private:
void InitializeForNewTrack();
class Utils;
void CheckAndRecordResults(const Utils&,
#ifdef G4VERBOSE
const G4double reactionRange,
#endif
G4KDTreeResultHandle&);
G4bool fHasAlreadyReachedNullTime;
const G4DNAMolecularReactionTable*& fMolecularReactionTable;
G4VDNAReactionModel* fReactionModel;
G4ITReactionSet* fReactionSet;
G4ITTrackHolder* fpTrackContainer;
G4int fVerbose;
class Utils
{
public:
Utils(const G4Track& tA, const G4MolecularConfiguration* mB);
~Utils() = default;
G4double GetConstant() const
{
return fConstant;
}
const G4Track& fpTrackA;
const G4MolecularConfiguration* fpMoleculeB;
const G4Molecule* fpMoleculeA;
G4double fDA;
G4double fDB;
G4double fConstant;
};
};
@@ -0,0 +1,64 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
/*
* G4DNAMolecularIRTModel.hh
*
* Created on: Jul 23, 2019
* Author: W. G. Shin
* J. Ramos-Mendez and B. Faddegon
*/
#pragma once
#include <G4String.hh>
#include <G4VITStepModel.hh>
class G4DNAMolecularReactionTable;
class G4VDNAReactionModel;
class G4DNAMolecularIRTModel : public G4VITStepModel
{
public:
G4DNAMolecularIRTModel(const G4String& name = "DNAMolecularIRTModel");
G4DNAMolecularIRTModel(const G4String& name,
std::unique_ptr<G4VITTimeStepComputer> pTimeStepper,
std::unique_ptr<G4VITReactionProcess> pReactionProcess);
G4DNAMolecularIRTModel& operator=(const G4DNAMolecularIRTModel&) = delete;
G4DNAMolecularIRTModel(const G4DNAMolecularIRTModel&) = delete;
~G4DNAMolecularIRTModel() override;
void PrintInfo() override;
void Initialize() override;
void SetReactionModel(G4VDNAReactionModel*);
G4VDNAReactionModel* GetReactionModel();
protected:
const G4DNAMolecularReactionTable*& fMolecularReactionTable;
std::unique_ptr<G4VDNAReactionModel> fpReactionModel;
};
@@ -47,9 +47,11 @@
#pragma once
#include <G4VITReactionProcess.hh>
#include <vector>
class G4DNAMolecularReactionTable;
class G4VDNAReactionModel;
class G4ITReactionSet;
/**
* G4DNAMolecularReaction is the reaction process
@@ -72,6 +74,8 @@ public:
double currentStepTime,
bool userStepTimeLimit) override;
std::vector<std::unique_ptr<G4ITReactionChange>> FindReaction(G4ITReactionSet*,
const double, const double, const bool) override;
std::unique_ptr<G4ITReactionChange> MakeReaction(const G4Track&, const G4Track&) override;
void SetReactionModel(G4VDNAReactionModel*);
@@ -47,6 +47,8 @@
#include "G4VITTimeStepComputer.hh"
#include "G4KDTreeResult.hh"
#include "G4ITTrackHolder.hh"
#include "G4ITReaction.hh"
class G4VDNAReactionModel;
class G4DNAMolecularReactionTable;
@@ -75,6 +77,7 @@ public:
virtual void Prepare();
virtual G4double CalculateStep(const G4Track&, const G4double&);
virtual G4double CalculateMinTimeStep(G4double, G4double);
void SetReactionModel(G4VDNAReactionModel*);
G4VDNAReactionModel* GetReactionModel();
@@ -94,9 +97,10 @@ private:
G4KDTreeResultHandle&);
G4bool fHasAlreadyReachedNullTime;
const G4DNAMolecularReactionTable*& fMolecularReactionTable;
G4VDNAReactionModel* fReactionModel;
G4ITTrackHolder* fpTrackContainer;
G4ITReactionSet* fReactionSet;
G4int fVerbose;
class Utils