MURE
|
Define priorites of nuclear databases to choose nuclei from BaseSummary.dat file. More...
#include <BasePriority.hxx>
Public Member Functions | |
BasePriority () | |
Constructor. | |
BasePriority (const BasePriority &c) | |
Copy Constructor. | |
void | SetBasePriority (int level, string Base) |
Assign a base to a priority level. | |
string | GetBasePriority (int level) |
void | SetVersionPriority (int sublevel, string Version, int OfBasePriority) |
Assign a base version for a level+sublevel. | |
string | GetVersionPriority (int sublevel, int OfBasePriority) |
Return a version name of a level+sublevel. | |
void | SetBuilderPriority (string Builder) |
double | Score (string Base, string Version, string Builder) |
Return the score for base, version and builder for comparison. | |
Private Member Functions | |
void | InitBool () |
Private Attributes | |
string | fBaseName [3] |
array of base name | |
string | fBaseVersion [3][3] |
array of base version | |
string | fBuilder |
the builder (STD, JOY or MOD) | |
bool | fIsBaseNameForced |
true if the all base names are identical | |
bool | fIsBaseVersionForced |
true if the all version are identical | |
bool | fIsInit |
true when the InitBool method has been called | |
Define priorites of nuclear databases to choose nuclei from BaseSummary.dat file.
The Priority is organized in 3 levels (base names) and maximum 3 sub levels (base version). Default is ENDFB (USA), JEFF (Europe) and JENDL (Japan). Only 1 sub level is defined for each base (6.1 for ENDFB, 3.0 for JEFF and 3.3 for JENDL). If a user defines for each level the same base, then this imposes the base choice.
BasePriority::BasePriority | ( | ) |
Constructor.
BasePriority::BasePriority | ( | const BasePriority & | c | ) |
Copy Constructor.
|
inline |
< return the base name for a particular level
|
inline |
Return a version name of a level+sublevel.
sublevel | : priority sublevel of the wanted version |
OfBasePriority | : the priority level of the base to which the version refers |
|
private |
double BasePriority::Score | ( | string | Base, |
string | Version, | ||
string | Builder | ||
) |
Return the score for base, version and builder for comparison.
Return 1 if Base, Version and Builder fit exactly the BasePriority and 0 if nothing matches it
Base | : a base to compare |
Version | : a version to compare |
Builder | : a builder to compare |
|
inline |
Assign a base to a priority level.
Levels range is from 0 (preferred) to 2 (less wanted).
level | : priority level |
Base | : base name (ENDFB, JEFF, ...) |
|
inline |
< set the builder name (STD, JOY or MOD)
|
inline |
Assign a base version for a level+sublevel.
sublevel | : priority sublevel, range is from 0 (preferred) to 2 (less wanted). |
Version | : version of the base (e.g. "6.2") |
OfBasePriority | : the priority level of the base to which the version refers |
|
private |
array of base name
|
private |
array of base version
|
private |
the builder (STD, JOY or MOD)
|
private |
true if the all base names are identical
|
private |
true if the all version are identical
|
private |
true when the InitBool method has been called