CLASS  1.1
 Tout Classes Fichiers Fonctions Variables Définitions de type
Référence du fichier DataBank.cxx
#include "DataBank.hxx"
#include "IsotopicVector.hxx"
#include "EvolutionData.hxx"
#include "LogFile.hxx"
#include "StringLine.hxx"
#include <TGraph.h>
#include <TString.h>
#include <sstream>
#include <string>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <map>
#include <cmath>
+ Graphe des dépendances par inclusion de DataBank.cxx:

Aller au code source de ce fichier.

Fonctions

double ReactionRateWeightedDistance (IsotopicVector IV1, EvolutionData DB)
 
double ReactionRateWeightedDistance (EvolutionData DB, IsotopicVector IV1)
 

Documentation des fonctions

double ReactionRateWeightedDistance ( IsotopicVector  IV1,
EvolutionData  DB 
)

Définition à la ligne 23 du fichier DataBank.cxx.

24 {
25 
26  double d2 = 0;
27  double XS_total = 0;
29  IsotopicVector IVtmp = IV1 + IV2;
30  map<ZAI ,double> IVtmpIsotopicQuantity = IVtmp.GetIsotopicQuantity();
31  map<ZAI ,double >::iterator it;
32 
33  for( it = IVtmpIsotopicQuantity.begin(); it != IVtmpIsotopicQuantity.end(); it++)
34  {
35  double XS = 0;
36 
37  for(int i = 1; i < 4 ; i++)
38  XS += DB.GetGetXSForAt(0., (*it).first, i);
39 
40  double Z1 = IV1.GetZAIIsotopicQuantity( (*it).first );
41  double Z2 = IV2.GetZAIIsotopicQuantity( (*it).first );
42  d2 += pow( (Z1-Z2)*XS , 2 );
43  XS_total += (Z1+Z2)*XS/2;
44  }
45 
46 
47  return sqrt(d2)/XS_total;
48 }
double ReactionRateWeightedDistance ( EvolutionData  DB,
IsotopicVector  IV1 
)

Définition à la ligne 50 du fichier DataBank.cxx.

51 {
52  return ReactionRateWeightedDistance( IV1, DB );
53 }