#include <G4AdjointCSMatrix.hh>
|
| G4AdjointCSMatrix (G4bool aBool) |
|
| ~G4AdjointCSMatrix () |
|
void | Clear () |
|
void | AddData (G4double aPrimEnergy, G4double aCS, std::vector< double > *aLogSecondEnergyVector, std::vector< double > *aLogProbVector, size_t n_pro_decade=0) |
|
G4bool | GetData (unsigned int i, G4double &aPrimEnergy, G4double &aCS, G4double &log0, std::vector< double > *&aLogSecondEnergyVector, std::vector< double > *&aLogProbVector, std::vector< size_t > *&aLogProbVectorIndex) |
|
std::vector< double > * | GetLogPrimEnergyVector () |
|
std::vector< double > * | GetLogCrossSectionvector () |
|
G4double | GetDlog () |
|
G4bool | IsScatProjToProjCase () |
|
void | Write (G4String file_name) |
|
void | Read (G4String file_name) |
|
Definition at line 60 of file G4AdjointCSMatrix.hh.
◆ G4AdjointCSMatrix()
G4AdjointCSMatrix::G4AdjointCSMatrix |
( |
G4bool |
aBool | ) |
|
Definition at line 38 of file G4AdjointCSMatrix.cc.
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
unsigned int nb_of_PrimEnergy
G4bool is_scat_proj_to_proj_case
std::vector< double > log0Vector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
std::vector< std::vector< size_t > *> theLogProbMatrixIndex
◆ ~G4AdjointCSMatrix()
G4AdjointCSMatrix::~G4AdjointCSMatrix |
( |
| ) |
|
Definition at line 51 of file G4AdjointCSMatrix.cc.
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
◆ AddData()
void G4AdjointCSMatrix::AddData |
( |
G4double |
aPrimEnergy, |
|
|
G4double |
aCS, |
|
|
std::vector< double > * |
aLogSecondEnergyVector, |
|
|
std::vector< double > * |
aLogProbVector, |
|
|
size_t |
n_pro_decade = 0 |
|
) |
| |
Definition at line 71 of file G4AdjointCSMatrix.cc.
82 std::vector< size_t>* aLogProbVectorIndex = 0;
85 if (n_pro_decade > 0 && aLogProbVector->size()>0) {
86 aLogProbVectorIndex =
new std::vector< size_t>();
87 dlog=std::log(10.)/n_pro_decade;
93 aLogProbVectorIndex->push_back(theInterpolator->
FindPosition(log_val,(*aLogProbVector)));
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
unsigned int nb_of_PrimEnergy
std::vector< double > log0Vector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
size_t FindPosition(G4double &x, std::vector< G4double > &x_vec, size_t ind_min=0, size_t ind_max=0)
std::vector< std::vector< size_t > *> theLogProbMatrixIndex
static G4AdjointInterpolator * GetInstance()
◆ Clear()
void G4AdjointCSMatrix::Clear |
( |
| ) |
|
Definition at line 59 of file G4AdjointCSMatrix.cc.
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
unsigned int nb_of_PrimEnergy
std::vector< double > log0Vector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
std::vector< std::vector< size_t > *> theLogProbMatrixIndex
◆ GetData()
G4bool G4AdjointCSMatrix::GetData |
( |
unsigned int |
i, |
|
|
G4double & |
aPrimEnergy, |
|
|
G4double & |
aCS, |
|
|
G4double & |
log0, |
|
|
std::vector< double > *& |
aLogSecondEnergyVector, |
|
|
std::vector< double > *& |
aLogProbVector, |
|
|
std::vector< size_t > *& |
aLogProbVectorIndex |
|
) |
| |
Definition at line 109 of file G4AdjointCSMatrix.cc.
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
unsigned int nb_of_PrimEnergy
std::vector< double > log0Vector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
std::vector< std::vector< size_t > *> theLogProbMatrixIndex
◆ GetDlog()
◆ GetLogCrossSectionvector()
std::vector< double>* G4AdjointCSMatrix::GetLogCrossSectionvector |
( |
| ) |
|
|
inline |
◆ GetLogPrimEnergyVector()
std::vector< double>* G4AdjointCSMatrix::GetLogPrimEnergyVector |
( |
| ) |
|
|
inline |
◆ IsScatProjToProjCase()
G4bool G4AdjointCSMatrix::IsScatProjToProjCase |
( |
| ) |
|
|
inline |
◆ Read()
void G4AdjointCSMatrix::Read |
( |
G4String |
file_name | ) |
|
Definition at line 162 of file G4AdjointCSMatrix.cc.
172 for (
size_t i=0; i<n1;i++){
181 for (
size_t j=0; j<n2;j++){
187 for (
size_t j=0; j<n2;j++){
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
◆ Write()
void G4AdjointCSMatrix::Write |
( |
G4String |
file_name | ) |
|
Definition at line 124 of file G4AdjointCSMatrix.cc.
125 { std::fstream FileOutput(file_name, std::ios::out);
126 FileOutput<<std::setiosflags(std::ios::scientific);
127 FileOutput<<std::setprecision(6);
136 if (j1<10) FileOutput<<
'\t';
142 if (j1>0) FileOutput<<
G4endl;
148 if (j1<10) FileOutput<<
'\t';
154 if (j1>0) FileOutput<<
G4endl;
std::vector< double > theLogCrossSectionVector
std::vector< double > theLogPrimEnergyVector
std::vector< std::vector< double > *> theLogProbMatrix
std::vector< std::vector< double > *> theLogSecondEnergyMatrix
◆ dlog
◆ is_scat_proj_to_proj_case
G4bool G4AdjointCSMatrix::is_scat_proj_to_proj_case |
|
private |
◆ log0Vector
std::vector< double> G4AdjointCSMatrix::log0Vector |
|
private |
◆ nb_of_PrimEnergy
unsigned int G4AdjointCSMatrix::nb_of_PrimEnergy |
|
private |
◆ theLogCrossSectionVector
std::vector< double> G4AdjointCSMatrix::theLogCrossSectionVector |
|
private |
◆ theLogPrimEnergyVector
std::vector< double> G4AdjointCSMatrix::theLogPrimEnergyVector |
|
private |
◆ theLogProbMatrix
std::vector< std::vector< double>* > G4AdjointCSMatrix::theLogProbMatrix |
|
private |
◆ theLogProbMatrixIndex
std::vector< std::vector< size_t >* > G4AdjointCSMatrix::theLogProbMatrixIndex |
|
private |
◆ theLogSecondEnergyMatrix
std::vector< std::vector< double>* > G4AdjointCSMatrix::theLogSecondEnergyMatrix |
|
private |
The documentation for this class was generated from the following files: