Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -41,38 +41,44 @@
|
||||
#include "G4DataVector.hh"
|
||||
#include "G4FluoTransition.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
G4FluoData::G4FluoData(const G4String& dir)
|
||||
{
|
||||
numberOfVacancies=0;
|
||||
fluoDirectory = dir;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4FluoData::~G4FluoData()
|
||||
{
|
||||
std::map<G4int,G4DataVector*,std::less<G4int> >::iterator pos;
|
||||
|
||||
for (pos = idMap.begin(); pos != idMap.end(); ++pos)
|
||||
for (auto& pos : idMap)
|
||||
{
|
||||
G4DataVector* dataSet = (*pos).second;
|
||||
G4DataVector* dataSet = pos.second;
|
||||
delete dataSet;
|
||||
}
|
||||
for (pos = energyMap.begin(); pos != energyMap.end(); ++pos)
|
||||
|
||||
for (auto& pos : energyMap)
|
||||
{
|
||||
G4DataVector* dataSet = (*pos).second;
|
||||
G4DataVector* dataSet = pos.second;
|
||||
delete dataSet;
|
||||
}
|
||||
for (pos = probabilityMap.begin(); pos != probabilityMap.end(); ++pos)
|
||||
|
||||
for (auto& pos: probabilityMap)
|
||||
{
|
||||
G4DataVector* dataSet = (*pos).second;
|
||||
G4DataVector* dataSet = pos.second;
|
||||
delete dataSet;
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
size_t G4FluoData::NumberOfVacancies() const
|
||||
{
|
||||
return numberOfVacancies;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4int G4FluoData::VacancyId(G4int vacancyIndex) const
|
||||
{
|
||||
G4int n = -1;
|
||||
@@ -83,8 +89,7 @@ G4int G4FluoData::VacancyId(G4int vacancyIndex) const
|
||||
}
|
||||
else
|
||||
{
|
||||
std::map<G4int,G4DataVector*,std::less<G4int> >::const_iterator pos;
|
||||
pos = idMap.find(vacancyIndex);
|
||||
auto pos = idMap.find(vacancyIndex);
|
||||
if (pos!= idMap.end())
|
||||
{ G4DataVector dataSet = (*(*pos).second);
|
||||
n = (G4int) dataSet[0];
|
||||
@@ -94,6 +99,8 @@ G4int G4FluoData::VacancyId(G4int vacancyIndex) const
|
||||
return n;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
size_t G4FluoData::NumberOfTransitions(G4int vacancyIndex) const
|
||||
{
|
||||
G4int n = 0;
|
||||
@@ -112,6 +119,9 @@ size_t G4FluoData::NumberOfTransitions(G4int vacancyIndex) const
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4int G4FluoData::StartShellId(G4int initIndex, G4int vacancyIndex) const
|
||||
{
|
||||
G4int n = -1;
|
||||
@@ -123,9 +133,7 @@ G4int G4FluoData::StartShellId(G4int initIndex, G4int vacancyIndex) const
|
||||
}
|
||||
else
|
||||
{
|
||||
std::map<G4int,G4DataVector*,std::less<G4int> >::const_iterator pos;
|
||||
|
||||
pos = idMap.find(vacancyIndex);
|
||||
auto pos = idMap.find(vacancyIndex);
|
||||
|
||||
G4DataVector dataSet = *((*pos).second);
|
||||
|
||||
@@ -139,6 +147,8 @@ G4int G4FluoData::StartShellId(G4int initIndex, G4int vacancyIndex) const
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4double G4FluoData::StartShellEnergy(G4int initIndex, G4int vacancyIndex) const
|
||||
{
|
||||
@@ -149,10 +159,8 @@ G4double G4FluoData::StartShellEnergy(G4int initIndex, G4int vacancyIndex) const
|
||||
G4Exception("G4FluoData::StartShellEnergy()","de0002",FatalErrorInArgument,
|
||||
"vacancyIndex outside boundaries");}
|
||||
else
|
||||
{
|
||||
std::map<G4int,G4DataVector*,std::less<G4int> >::const_iterator pos;
|
||||
|
||||
pos = energyMap.find(vacancyIndex);
|
||||
{
|
||||
auto pos = energyMap.find(vacancyIndex);
|
||||
|
||||
G4DataVector dataSet = *((*pos).second);
|
||||
|
||||
@@ -165,6 +173,8 @@ G4double G4FluoData::StartShellEnergy(G4int initIndex, G4int vacancyIndex) const
|
||||
return n;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4double G4FluoData::StartShellProb(G4int initIndex, G4int vacancyIndex) const
|
||||
{
|
||||
G4double n = -1;
|
||||
@@ -177,9 +187,7 @@ G4double G4FluoData::StartShellProb(G4int initIndex, G4int vacancyIndex) const
|
||||
}
|
||||
else
|
||||
{
|
||||
std::map<G4int,G4DataVector*,std::less<G4int> >::const_iterator pos;
|
||||
|
||||
pos = probabilityMap.find(vacancyIndex);
|
||||
auto pos = probabilityMap.find(vacancyIndex);
|
||||
|
||||
G4DataVector dataSet = *((*pos).second);
|
||||
|
||||
@@ -192,6 +200,8 @@ G4double G4FluoData::StartShellProb(G4int initIndex, G4int vacancyIndex) const
|
||||
return n;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4FluoData::LoadData(G4int Z)
|
||||
{
|
||||
// Build the complete string identifying the file with the data set
|
||||
@@ -316,6 +326,7 @@ void G4FluoData::LoadData(G4int Z)
|
||||
delete transProbabilities;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
void G4FluoData::PrintData()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user