a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
NPSTUZbbbarLR.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 HEPfit Collaboration
3 *
4 *
5 * For the licensing terms see doc/COPYING.
6 */
7
8#include "NPSTUZbbbarLR.h"
9#include <stdexcept>
10
11
12const std::string NPSTUZbbbarLR::STUZbbbarLRvars[NSTUZbbbarLRvars]
13 = {"deltaGLb", "deltaGRb"};
14
16: NPSTU()
17{
18 ModelParamMap.insert(std::make_pair("deltaGLb", std::cref(myDeltaGLb)));
19 ModelParamMap.insert(std::make_pair("deltaGRb", std::cref(myDeltaGRb)));
20}
21
22void NPSTUZbbbarLR::setParameter(const std::string name, const double& value)
23{
24 if (name.compare("deltaGLb") == 0)
25 myDeltaGLb = value;
26 else if (name.compare("deltaGRb") == 0)
27 myDeltaGRb = value;
28 else
30}
31
32bool NPSTUZbbbarLR::CheckParameters(const std::map<std::string, double>& DPars)
33{
34 for (int i = 0; i < NSTUZbbbarLRvars; i++) {
35 if (DPars.find(STUZbbbarLRvars[i]) == DPars.end()) {
36 std::cout << "ERROR: Missing mandatory NPSTUZbbbarLR parameter "
37 << STUZbbbarLRvars[i] << std::endl;
40 }
41 }
43}
44
46
47const double NPSTUZbbbarLR::deltaGV_f(const Particle f) const
48{
49 if (f.is("BOTTOM")) {
50 double DeltaGVb = myDeltaGLb + myDeltaGRb;
51 return (NPSTU::deltaGV_f(f) + DeltaGVb);
52 } else
53 return NPSTU::deltaGV_f(f);
54}
55
56const double NPSTUZbbbarLR::deltaGA_f(const Particle f) const
57{
58 if (f.is("BOTTOM")) {
59 double DeltaGAb = myDeltaGLb - myDeltaGRb;
60 return (NPSTU::deltaGA_f(f) + DeltaGAb);
61 } else
62 return NPSTU::deltaGA_f(f);
63}
64
std::map< std::string, double > DPars
Definition: Minimal.cpp:11
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 raiseMissingModelParameterCount()
Definition: Model.h:260
A model class for new physics in the form of contributions to the oblique parameters and .
Definition: NPSTU.h:85
virtual void setParameter(const std::string name, const double &value)
A method to set the value of a parameter of the model.
Definition: NPSTU.cpp:24
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
A method to check if all the mandatory parameters for the model have been provided in model initializ...
Definition: NPSTU.cpp:36
static const int NSTUZbbbarLRvars
The number of the model parameters in NPSTUZbbbarLR.
virtual const double deltaGV_f(const Particle f) const
New physics contribution to the neutral-current vector coupling .
virtual void setParameter(const std::string name, const double &value)
A method to set the value of a parameter of the model.
virtual bool CheckParameters(const std::map< std::string, double > &DPars)
A method to check if all the mandatory parameters for the model have been provided in model initializ...
NPSTUZbbbarLR()
Constructor.
static const std::string STUZbbbarLRvars[NSTUZbbbarLRvars]
A string array containing the labels of the model parameters in NPSTUZbbbarLR.
double myDeltaGRb
New physics contribution to .
double myDeltaGLb
New physics contribution to .
virtual const double deltaGA_f(const Particle f) const
New physics contribution to the neutral-current axial-vector coupling .
virtual const double deltaGV_f(const Particle f) const
New physics contribution to the neutral-current vector coupling .
Definition: NPbase.cpp:181
virtual const double deltaGA_f(const Particle f) const
New physics contribution to the neutral-current axial-vector coupling .
Definition: NPbase.cpp:204
A class for particles.
Definition: Particle.h:26
bool is(std::string name_i) const
Definition: Particle.cpp:23