MURE
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BasePriority Class Reference

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
 

Detailed Description

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.

Author
PTO
Version
0.1

Constructor & Destructor Documentation

◆ BasePriority() [1/2]

BasePriority::BasePriority ( )

Constructor.

◆ BasePriority() [2/2]

BasePriority::BasePriority ( const BasePriority c)

Copy Constructor.

Member Function Documentation

◆ GetBasePriority()

string BasePriority::GetBasePriority ( int  level)
inline

< return the base name for a particular level

◆ GetVersionPriority()

string BasePriority::GetVersionPriority ( int  sublevel,
int  OfBasePriority 
)
inline

Return a version name of a level+sublevel.

Parameters
sublevel: priority sublevel of the wanted version
OfBasePriority: the priority level of the base to which the version refers

◆ InitBool()

void BasePriority::InitBool ( )
private

◆ Score()

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

Parameters
Base: a base to compare
Version: a version to compare
Builder: a builder to compare

◆ SetBasePriority()

void BasePriority::SetBasePriority ( int  level,
string  Base 
)
inline

Assign a base to a priority level.

Levels range is from 0 (preferred) to 2 (less wanted).

Parameters
level: priority level
Base: base name (ENDFB, JEFF, ...)

◆ SetBuilderPriority()

void BasePriority::SetBuilderPriority ( string  Builder)
inline

< set the builder name (STD, JOY or MOD)

◆ SetVersionPriority()

void BasePriority::SetVersionPriority ( int  sublevel,
string  Version,
int  OfBasePriority 
)
inline

Assign a base version for a level+sublevel.

Parameters
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

Member Data Documentation

◆ fBaseName

string BasePriority::fBaseName[3]
private

array of base name

◆ fBaseVersion

string BasePriority::fBaseVersion[3][3]
private

array of base version

◆ fBuilder

string BasePriority::fBuilder
private

the builder (STD, JOY or MOD)

◆ fIsBaseNameForced

bool BasePriority::fIsBaseNameForced
private

true if the all base names are identical

◆ fIsBaseVersionForced

bool BasePriority::fIsBaseVersionForced
private

true if the all version are identical

◆ fIsInit

bool BasePriority::fIsInit
private

true when the InitBool method has been called


The documentation for this class was generated from the following files:

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024