Define priorites of nuclear databases to choose nuclei from BaseSummary.dat file. More...
#include <BasePriority.hxx>
Public Member Functions | |
BasePriority () | |
Constructor. More... | |
BasePriority (const BasePriority &c) | |
Copy Constructor. More... | |
void | SetBasePriority (int level, string Base) |
Assign a base to a priority level. More... | |
string | GetBasePriority (int level) |
return the base name for a particular level More... | |
void | SetVersionPriority (int sublevel, string Version, int OfBasePriority) |
Assign a base version for a level+sublevel. More... | |
string | GetVersionPriority (int sublevel, int OfBasePriority) |
Return a version name of a level+sublevel. More... | |
void | SetBuilderPriority (string Builder) |
set the builder name (STD,JOY or MOD) More... | |
double | Score (string Base, string Version, string Builder) |
Return the score for base, version and builder for comparison. More... | |
Private Member Functions | |
void | InitBool () |
Private Attributes | |
string | fBaseName [3] |
array of base name More... | |
string | fBaseVersion [3][3] |
array of base version More... | |
string | fBuilder |
the builder (STD, JOY or MOD) More... | |
bool | fIsBaseNameForced |
bool | fIsBaseVersionForced |
bool | fIsInit |
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 |
|
private |
|
private |