MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
BasePriority.hxx
Go to the documentation of this file.
1 #ifndef _BASEPRIORITY_
2 #define _BASEPRIORITY_
3 
9 #include <string>
10 #include <iostream>
11 using namespace std;
12 
14 
26 {
27  public:
29  BasePriority();
31  BasePriority(const BasePriority &c);
33 
38  void SetBasePriority(int level, string Base){fBaseName[level]=(Base=="ENDF")?"ENDFB":Base;}
39  string GetBasePriority(int level){return fBaseName[level];}
40 
42 
47  void SetVersionPriority(int sublevel, string Version, int OfBasePriority){fBaseVersion[OfBasePriority][sublevel]=Version;}
48 
50 
54  string GetVersionPriority(int sublevel,int OfBasePriority){return fBaseVersion[OfBasePriority][sublevel];}
55 
56  void SetBuilderPriority(string Builder){fBuilder=Builder;}
57 
59 
65  double Score(string Base,string Version,string Builder);
66 
67  private:
68  void InitBool();
69  string fBaseName[3];
70  string fBaseVersion[3][3];
71  string fBuilder;
72  bool fIsBaseNameForced; //<! true if the all base names are identical
73  bool fIsBaseVersionForced; //<! true if the all version are identical
74  bool fIsInit; //<! true when the InitBool method has been called
75 };
76 #endif
bool fIsInit
Definition: BasePriority.hxx:74
string fBuilder
the builder (STD, JOY or MOD)
Definition: BasePriority.hxx:71
bool fIsBaseNameForced
Definition: BasePriority.hxx:72
Define priorites of nuclear databases to choose nuclei from BaseSummary.dat file. ...
Definition: BasePriority.hxx:25
bool fIsBaseVersionForced
Definition: BasePriority.hxx:73
void SetBasePriority(int level, string Base)
Assign a base to a priority level.
Definition: BasePriority.hxx:38
string GetBasePriority(int level)
return the base name for a particular level
Definition: BasePriority.hxx:39
void SetVersionPriority(int sublevel, string Version, int OfBasePriority)
Assign a base version for a level+sublevel.
Definition: BasePriority.hxx:47
string GetVersionPriority(int sublevel, int OfBasePriority)
Return a version name of a level+sublevel.
Definition: BasePriority.hxx:54
void SetBuilderPriority(string Builder)
set the builder name (STD,JOY or MOD)
Definition: BasePriority.hxx:56

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014