Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ANSTOecpssrKxsModel Class Reference

#include <G4ANSTOecpssrKxsModel.hh>

+ Inheritance diagram for G4ANSTOecpssrKxsModel:

Public Member Functions

 G4ANSTOecpssrKxsModel ()
 
virtual ~G4ANSTOecpssrKxsModel ()
 
G4double CalculateCrossSection (G4int zTarget, G4double massIncident, G4double energyIncident)
 
- Public Member Functions inherited from G4VecpssrKModel
 G4VecpssrKModel ()
 
virtual ~G4VecpssrKModel ()
 
 G4VecpssrKModel (const G4VecpssrKModel &)=delete
 
G4VecpssrKModeloperator= (const G4VecpssrKModel &right)=delete
 

Detailed Description

Definition at line 48 of file G4ANSTOecpssrKxsModel.hh.

Constructor & Destructor Documentation

◆ G4ANSTOecpssrKxsModel()

G4ANSTOecpssrKxsModel::G4ANSTOecpssrKxsModel ( )

Definition at line 54 of file G4ANSTOecpssrKxsModel.cc.

55{
56
57 G4cout << "Using ANSTO K Cross Sections! "<< G4endl;
58
59 interpolation = new G4LogLogInterpolation();
60 for (G4int i=6; i<93; i++)
61 {
62 protonDataSetMap[i] = new G4EMDataSet(i,interpolation);
63 protonDataSetMap[i]->LoadData("pixe_ANSTO/proton/k-");
64 }
65
66 for (G4int i=6; i<93; i++)
67 {
68 alphaDataSetMap[i] = new G4EMDataSet(i,interpolation);
69 alphaDataSetMap[i]->LoadData("pixe_ANSTO/alpha/k-");
70 }
71
72}
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

◆ ~G4ANSTOecpssrKxsModel()

G4ANSTOecpssrKxsModel::~G4ANSTOecpssrKxsModel ( )
virtual

Definition at line 76 of file G4ANSTOecpssrKxsModel.cc.

77{
78 protonDataSetMap.clear();
79 alphaDataSetMap.clear();
80 delete interpolation;
81}

Member Function Documentation

◆ CalculateCrossSection()

G4double G4ANSTOecpssrKxsModel::CalculateCrossSection ( G4int zTarget,
G4double massIncident,
G4double energyIncident )
virtual

Implements G4VecpssrKModel.

Definition at line 85 of file G4ANSTOecpssrKxsModel.cc.

86{
87 G4Proton* aProton = G4Proton::Proton();
88 G4Alpha* aAlpha = G4Alpha::Alpha();
89 G4double sigma = 0;
90
91 if (massIncident == aProton->GetPDGMass())
92 {
93 if (energyIncident > 0.2*MeV && energyIncident < 5.*MeV && zTarget < 93 && zTarget > 5) {
94
95 sigma = protonDataSetMap[zTarget]->FindValue(energyIncident/MeV);
96 if (sigma !=0 && energyIncident > protonDataSetMap[zTarget]->GetEnergies(0).back()*MeV) return 0.;
97 }
98 }
99
100 else if (massIncident == aAlpha->GetPDGMass())
101 {
102 if (energyIncident > 0.2*MeV && energyIncident < 40.*MeV && zTarget < 93 && zTarget > 5) {
103
104 sigma = alphaDataSetMap[zTarget]->FindValue(energyIncident/MeV);
105 if (sigma !=0 && energyIncident > alphaDataSetMap[zTarget]->GetEnergies(0).back()*MeV) return 0.;
106 }
107 }
108
109 else
110 {
111 sigma = 0.;
112 }
113
114 // sigma is in internal units: it has been converted from
115 // the input file in barns bt the EmDataset
116 return sigma;
117}
double G4double
Definition G4Types.hh:83
static G4Alpha * Alpha()
Definition G4Alpha.cc:83
static G4Proton * Proton()
Definition G4Proton.cc:90

The documentation for this class was generated from the following files: