a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
CMFV.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 HEPfit Collaboration
3 *
4 * For the licensing terms see doc/COPYING.
5 */
6
7#include "CMFV.h"
8
9const std::string CMFV::CMFVvars[NCMFVvars] = {"Ftt"};
10
11CMFV::CMFV() : StandardModel(), CMFVM(*this) {
12 setModelName("CMFV");
13 SMM.setObj((StandardModelMatching&) CMFVM.getObj());
14 ModelParamMap.insert(std::make_pair("Ftt", std::cref(Ftt)));
15}
16
18// Initialization
19
20void CMFV::setParameter(const std::string name, const double& value){
21 if(name.compare("Ftt") == 0)
22 Ftt = value;
23 else
25}
26
27bool CMFV::CheckParameters(const std::map<std::string, double>& DPars) {
28 for (int i = 0; i < NCMFVvars; i++) {
29 if (DPars.find(CMFVvars[i]) == DPars.end()) {
30 std::cout << "ERROR: missing mandatory CMFV parameter " << CMFVvars[i] << std::endl;
33 }
34 }
36}
std::map< std::string, double > DPars
Definition: Minimal.cpp:11
Matching< CMFVMatching, CMFV > CMFVM
Definition: CMFV.h:73
double Ftt
Definition: CMFV.h:76
virtual void setParameter(const std::string, const double &)
Definition: CMFV.cpp:20
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
A method to check if all the mandatory parameters for CMFV have been provided in model initialization...
Definition: CMFV.cpp:27
CMFV()
CMFV constructor.
Definition: CMFV.cpp:11
static const std::string CMFVvars[NCMFVvars]
Definition: CMFV.h:35
static const int NCMFVvars
Definition: CMFV.h:33
void addMissingModelParameter(const std::string &missingParameterName)
Definition: Model.h:250
std::map< std::string, std::reference_wrapper< const double > > ModelParamMap
Definition: Model.h:280
std::string name
The name of the model.
Definition: Model.h:285
void setModelName(const std::string name)
A method to set the name of the model.
Definition: Model.h:50
void raiseMissingModelParameterCount()
Definition: Model.h:260
A model class for the Standard Model.
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
A method to check if all the mandatory parameters for StandardModel have been provided in model initi...
Matching< StandardModelMatching, StandardModel > SMM
An object of type Matching.
virtual void setParameter(const std::string name, const double &value)
A method to set the value of a parameter of StandardModel.
A class for the matching in the Standard Model.