89 MSGUser()->StartTitle(
"SystTool::CurrentVariation");
104 auto findresult =
CorrMap.find(name);
105 if (findresult !=
CorrMap.end())
107 findresult->second = correlation;
111 MSGUser()->StartTitle(
"SystTool::SetVariationCorrelation");
121 auto findresult =
CorrMap.find(name);
122 if (findresult !=
CorrMap.end())
124 return findresult->second;
128 MSGUser()->StartTitle(
"SystTool::GetVariationCorrelation");
149 if (t.first ==
"Nominal")
169 MSGUser()->StartTitle(
"SystTool::GetListOfVariations");
172 return std::vector<TString>();
186 for (
auto &var : findresult->second)
188 *(var.Current) = *(var.Variation);
194 MSGUser()->StartTitle(
"SystTool::SetVariation");
206 std::vector<AuxVar> tempvec;
210 tempvar.
Current = &(t.second.CurrentVar);
211 auto findresult = t.second.VarMap.find(systname);
212 if (findresult != t.second.VarMap.end())
214 tempvar.
Variation = &(findresult->second);
216 else if (t.second.NominalVar.has_value())
218 tempvar.
Variation = &(t.second.NominalVar);
222 MSGUser()->StartTitle(
"SystTool::SetVariation");
223 MSGUser()->MSG(
MSGLevel::WARNING,
"Variable ", t.first,
" has not Nominal variation, will set to the first variation ", t.second.VarMap.begin()->first);
225 tempvar.
Variation = &(t.second.VarMap.begin()->second);
227 tempvec.push_back(tempvar);
229 SystMapFull.insert(pair<TString, std::vector<AuxVar>>(systname, tempvec));
249 return findresult->second.VarMap.size();
253 MSGUser()->StartTitle(
"SystTool::SetVariation");