MURE
Loading...
Searching...
No Matches
BasePriority.hxx
Go to the documentation of this file.
1/*
2 This file is part of MURE,
3 Copyright (C) 2007-2021 MURE developers.
4
5 MURE is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 MURE is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with MURE. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef _BASEPRIORITY_
20#define _BASEPRIORITY_
21
27#include <string>
28#include <iostream>
29using namespace std;
30
32
44{
45 public:
49 BasePriority(const BasePriority &c);
51
56 void SetBasePriority(int level, string Base)
57 {
58 fBaseName[level] = (Base == "ENDF") ? "ENDFB" : Base;
59 }
60 string GetBasePriority(int level)
61 {
62 return fBaseName[level];
63 }
64
66
71 void SetVersionPriority(int sublevel, string Version, int OfBasePriority)
72 {
73 fBaseVersion[OfBasePriority][sublevel] = Version;
74 }
75
77
81 string GetVersionPriority(int sublevel, int OfBasePriority)
82 {
83 return fBaseVersion[OfBasePriority][sublevel];
84 }
85
86 void SetBuilderPriority(string Builder)
87 {
88 fBuilder = Builder;
89 }
90
92
98 double Score(string Base, string Version, string Builder);
99
100 private:
101 void InitBool();
102 string fBaseName[3];
103 string fBaseVersion[3][3];
104 string fBuilder;
107 bool fIsInit;
108};
109#endif
Define priorites of nuclear databases to choose nuclei from BaseSummary.dat file.
Definition BasePriority.hxx:44
double Score(string Base, string Version, string Builder)
Return the score for base, version and builder for comparison.
Definition BasePriority.cxx:53
void SetBuilderPriority(string Builder)
Definition BasePriority.hxx:86
string fBaseName[3]
array of base name
Definition BasePriority.hxx:102
bool fIsBaseNameForced
true if the all base names are identical
Definition BasePriority.hxx:105
string fBuilder
the builder (STD, JOY or MOD)
Definition BasePriority.hxx:104
string fBaseVersion[3][3]
array of base version
Definition BasePriority.hxx:103
void SetVersionPriority(int sublevel, string Version, int OfBasePriority)
Assign a base version for a level+sublevel.
Definition BasePriority.hxx:71
BasePriority()
Constructor.
Definition BasePriority.cxx:21
string GetBasePriority(int level)
Definition BasePriority.hxx:60
void InitBool()
Definition BasePriority.cxx:97
bool fIsInit
true when the InitBool method has been called
Definition BasePriority.hxx:107
void SetBasePriority(int level, string Base)
Assign a base to a priority level.
Definition BasePriority.hxx:56
bool fIsBaseVersionForced
true if the all version are identical
Definition BasePriority.hxx:106
string GetVersionPriority(int sublevel, int OfBasePriority)
Return a version name of a level+sublevel.
Definition BasePriority.hxx:81
the namespace of the Standard C++

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