MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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. 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
 

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::BasePriority ( )

Constructor.

BasePriority::BasePriority ( const BasePriority c)

Copy Constructor.

Member Function Documentation

string BasePriority::GetBasePriority ( int  level)
inline

return the base name for a particular level

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
void BasePriority::InitBool ( )
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

Parameters
Base: a base to compare
Version: a version to compare
Builder: a builder to compare
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,...)
void BasePriority::SetBuilderPriority ( string  Builder)
inline

set the builder name (STD,JOY or MOD)

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

string BasePriority::fBaseName[3]
private

array of base name

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

array of base version

string BasePriority::fBuilder
private

the builder (STD, JOY or MOD)

bool BasePriority::fIsBaseNameForced
private
bool BasePriority::fIsBaseVersionForced
private
bool BasePriority::fIsInit
private

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

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