72 std::vector< double>* aLogProbVector,
size_t n_pro_decade){
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;
92 aLogProbVectorIndex->push_back(theInterpolator->
FindPosition(log_val,(*aLogProbVector)));
109 std::vector< double>*& aLogProbVector, std::vector< size_t>*& aLogProbVectorIndex)
124 { std::fstream FileOutput(file_name, std::ios::out);
125 FileOutput<<std::setiosflags(std::ios::scientific);
126 FileOutput<<std::setprecision(6);
135 if (j1<10) FileOutput<<
'\t';
141 if (j1>0) FileOutput<<
G4endl;
147 if (j1<10) FileOutput<<
'\t';
153 if (j1>0) FileOutput<<
G4endl;
162 { std::fstream FileOutput(file_name, std::ios::in);
171 for (
size_t i=0; i<n1;i++){
180 for (
size_t j=0; j<n2;j++){
186 for (
size_t j=0; j<n2;j++){
std::vector< double > theLogCrossSectionVector
G4bool GetData(unsigned int i, G4double &aPrimEnergy, G4double &aCS, G4double &log0, std::vector< double > *&aLogSecondEnergyVector, std::vector< double > *&aLogProbVector, std::vector< size_t > *&aLogProbVectorIndex)
void Read(G4String file_name)
void AddData(G4double aPrimEnergy, G4double aCS, std::vector< double > *aLogSecondEnergyVector, std::vector< double > *aLogProbVector, size_t n_pro_decade=0)
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
size_t FindPosition(G4double &x, std::vector< G4double > &x_vec, size_t ind_min=0, size_t ind_max=0)
G4AdjointCSMatrix(G4bool aBool)
std::vector< std::vector< size_t > * > theLogProbMatrixIndex
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
static G4AdjointInterpolator * GetInstance()
void Write(G4String file_name)