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 
12 const 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 
22 void 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
29  NPSTU::setParameter(name, value);
30 }
31 
32 bool 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  }
42  return (NPSTU::CheckParameters(DPars));
43 }
44 
46 
47 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 
56 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 
NPSTUZbbbarLR::NPSTUZbbbarLR
NPSTUZbbbarLR()
Constructor.
Definition: NPSTUZbbbarLR.cpp:15
Particle::is
bool is(std::string name_i) const
Definition: Particle.cpp:23
Particle
A class for particles.
Definition: Particle.h:26
Model::addMissingModelParameter
void addMissingModelParameter(const std::string &missingParameterName)
Definition: Model.h:232
NPSTU
A model class for new physics in the form of contributions to the oblique parameters and .
Definition: NPSTU.h:85
NPbase::deltaGA_f
virtual double deltaGA_f(const Particle f) const
New physics contribution to the neutral-current axial-vector coupling .
Definition: NPbase.cpp:107
NPSTUZbbbarLR.h
Model::ModelParamMap
std::map< std::string, std::reference_wrapper< const double > > ModelParamMap
Definition: Model.h:262
NPSTUZbbbarLR::deltaGV_f
virtual double deltaGV_f(const Particle f) const
New physics contribution to the neutral-current vector coupling .
Definition: NPSTUZbbbarLR.cpp:47
Model::raiseMissingModelParameterCount
void raiseMissingModelParameterCount()
Definition: Model.h:242
NPSTU::CheckParameters
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
NPSTUZbbbarLR::myDeltaGLb
double myDeltaGLb
New physics contribution to .
Definition: NPSTUZbbbarLR.h:145
NPbase::deltaGV_f
virtual double deltaGV_f(const Particle f) const
New physics contribution to the neutral-current vector coupling .
Definition: NPbase.cpp:85
NPSTUZbbbarLR::myDeltaGRb
double myDeltaGRb
New physics contribution to .
Definition: NPSTUZbbbarLR.h:146
NPSTUZbbbarLR::setParameter
virtual void setParameter(const std::string name, const double &value)
A method to set the value of a parameter of the model.
Definition: NPSTUZbbbarLR.cpp:22
NPSTUZbbbarLR::deltaGA_f
virtual double deltaGA_f(const Particle f) const
New physics contribution to the neutral-current axial-vector coupling .
Definition: NPSTUZbbbarLR.cpp:56
Model::name
std::string name
The name of the model.
Definition: Model.h:267
NPSTUZbbbarLR::NSTUZbbbarLRvars
static const int NSTUZbbbarLRvars
The number of the model parameters in NPSTUZbbbarLR.
Definition: NPSTUZbbbarLR.h:108
NPSTUZbbbarLR::CheckParameters
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: NPSTUZbbbarLR.cpp:32
NPSTUZbbbarLR::STUZbbbarLRvars
static const std::string STUZbbbarLRvars[NSTUZbbbarLRvars]
A string array containing the labels of the model parameters in NPSTUZbbbarLR.
Definition: NPSTUZbbbarLR.h:113
NPSTU::setParameter
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