a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
ModelFactory.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 HEPfit Collaboration
3  *
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #include "ModelFactory.h"
9 #include "NPSTU.h"
10 #include "NPSTUZbbbarLR.h"
11 #include "NPEpsilons.h"
12 #include "NPEpsilons_pureNP.h"
13 #include "NPHiggs.h"
14 #include "NPZbbbar.h"
15 #include "NPZbbbarLinearized.h"
16 #include "NPEffectiveBS.h"
17 #include "NPEffectiveGIMR.h"
18 #include "NPEffectiveGIMRprime.h"
19 #include "NPSMEFTd6.h"
20 #include "NPSMEFT6dtopquark.h"
21 #include "SigmaBR.h"
22 #include "HiggsKvKf.h"
23 #include "HiggsKvKfgen.h"
24 #include "HiggsKvgenKfgen.h"
25 #include "HiggsKigen.h"
26 #include "HiggsChiral.h"
27 #include "GeneralSUSY.h"
28 #include "SUSYMassInsertion.h"
29 #include "SUSY.h"
30 #include "THDM.h"
33 #include "RealWeakEFTLFV.h"
34 #include "RealWeakEFTCC.h"
35 #include "LoopMediators.h"
36 #include "NPDF2.h"
37 #include "CMFV.h"
38 #include "GeorgiMachacek.h"
40 #include <boost/bind.hpp>
41 
43 {
44  modelFactory["StandardModel"] = boost::factory<StandardModel*>();
45  modelFactory["NPSTU"] = boost::factory<NPSTU*>();
46  modelFactory["NPSTUZbbbarLR"] = boost::factory<NPSTUZbbbarLR*>();
47  modelFactory["NPEpsilons"] = boost::factory<NPEpsilons*>();
48  modelFactory["NPEpsilons_pureNP"] = boost::factory<NPEpsilons_pureNP*>();
49  modelFactory["NPHiggs"] = boost::factory<NPHiggs*>();
50  modelFactory["NPZbbbar"] = boost::bind(boost::factory<NPZbbbar*>(), false);
51  modelFactory["NPZbbbarLR"] = boost::bind(boost::factory<NPZbbbar*>(), true);
52  modelFactory["NPZbbbarLinearized"] = boost::bind(boost::factory<NPZbbbarLinearized*>(), false);
53  modelFactory["NPZbbbarLinearizedLR"] = boost::bind(boost::factory<NPZbbbarLinearized*>(), true);
54  modelFactory["NPEffectiveBS"] = boost::bind(boost::factory<NPEffectiveBS*>(), false, false);
55  modelFactory["NPEffectiveBS_LFU"] = boost::bind(boost::factory<NPEffectiveBS*>(), true, false);
56  modelFactory["NPEffectiveBS_QFU"] = boost::bind(boost::factory<NPEffectiveBS*>(), false, true);
57  modelFactory["NPEffectiveBS_LFU_QFU"] = boost::bind(boost::factory<NPEffectiveBS*>(), true, true);
58  modelFactory["NPEffectiveGIMR"] = boost::bind(boost::factory<NPEffectiveGIMR*>(), false, false);
59  modelFactory["NPEffectiveGIMRprime"] = boost::bind(boost::factory<NPEffectiveGIMRprime*>(), false, false);
60  modelFactory["NPSMEFTd6"] = boost::bind(boost::factory<NPSMEFTd6*>(), false, false);
61 
62  modelFactory["NPSMEFT6dtopquark"] = boost::factory<NPSMEFT6dtopquark*>();
63 
64  //modelFactory["NPSMEFT6dtopquark"] = boost::bind(boost::factory<NPSMEFT6dtopquark*>(), false, false);
65  modelFactory["SigmaBR"] = boost::factory<SigmaBR*>();
66  //modelFactory["NPEffectiveGIMR_LFU"] = boost::bind(boost::factory<NPEffectiveGIMR*>(), true, false);
67  //modelFactory["NPEffectiveGIMR_QFU"] = boost::bind(boost::factory<NPEffectiveGIMR*>(), false, true);
68  modelFactory["NPEffectiveGIMR_LFU_QFU"] = boost::bind(boost::factory<NPEffectiveGIMR*>(), true, true);
69  modelFactory["NPEffectiveGIMRprime_LFU_QFU"] = boost::bind(boost::factory<NPEffectiveGIMRprime*>(), true, true);
70  modelFactory["NPSMEFTd6_LFU_QFU"] = boost::bind(boost::factory<NPSMEFTd6*>(), true, true);
71  modelFactory["HiggsKvKf"] = boost::factory<HiggsKvKf*>();
72  modelFactory["HiggsKvKfgen"] = boost::factory<HiggsKvKfgen*>();
73  modelFactory["HiggsKvgenKfgen"] = boost::factory<HiggsKvgenKfgen*>();
74  modelFactory["HiggsKigen"] = boost::factory<HiggsKigen*>();
75  modelFactory["HiggsChiral"] = boost::factory<HiggsChiral*>();
76  modelFactory["NPDF2"] = boost::factory<NPDF2*>();
77  modelFactory["CMFV"] = boost::factory<CMFV*>();
78  modelFactory["FlavourWilsonCoefficient"] = boost::factory<FlavourWilsonCoefficient*>();
79  modelFactory["FlavourWilsonCoefficient_DF2"] = boost::factory<FlavourWilsonCoefficient_DF2*>();
80  modelFactory["RealWeakEFTLFV"] = boost::factory<RealWeakEFTLFV*>();
81  modelFactory["RealWeakEFTCC"] = boost::bind(boost::factory<RealWeakEFTCC*>(), 0);
82  modelFactory["RealWeakEFTCCPM"] = boost::bind(boost::factory<RealWeakEFTCC*>(), 1);
83  modelFactory["LoopMediators"] = boost::factory<LoopMediators*>();
84  modelFactory["SUSYMassInsertion"] = boost::factory<SUSYMassInsertion*>();
85  modelFactory["THDM"] = boost::factory<THDM*>();
86  modelFactory["GeneralSUSY"] = boost::factory<GeneralSUSY*>();
87  modelFactory["GeorgiMachacek"] = boost::factory<GeorgiMachacek*>();
88  modelFactory["LeftRightSymmetricModel"] = boost::factory<LeftRightSymmetricModel*>();
89 }
90 
91 void ModelFactory::addModelToFactory(const std::string name, boost::function<StandardModel*() > funct)
92 {
93  modelFactory[name] = funct;
94 }
95 
96 StandardModel* ModelFactory::CreateModel(const std::string& name)
97 {
98  if (modelFactory.find(name) == modelFactory.end())
99  throw std::runtime_error("ERROR: Wrong model " + name + " passed to ModelFactory.\n");
100  return (modelFactory[name]());
101 }
HiggsKvKfgen.h
NPSTU.h
GeorgiMachacek.h
NPSMEFT6dtopquark.h
ModelFactory::addModelToFactory
void addModelToFactory(const std::string name, boost::function< StandardModel *() >)
Definition: ModelFactory.cpp:91
NPEpsilons_pureNP.h
StandardModel
A model class for the Standard Model.
Definition: StandardModel.h:477
SigmaBR.h
ModelFactory.h
NPSTUZbbbarLR.h
ModelFactory::modelFactory
std::map< std::string, boost::function< StandardModel *()> > modelFactory
Definition: ModelFactory.h:35
NPHiggs.h
NPZbbbar.h
NPZbbbarLinearized.h
NPEffectiveBS.h
ModelFactory::ModelFactory
ModelFactory()
Definition: ModelFactory.cpp:42
CMFV.h
HiggsKigen.h
NPEffectiveGIMR.h
HiggsChiral.h
RealWeakEFTLFV.h
SUSYMassInsertion.h
GeneralSUSY.h
ModelFactory::CreateModel
StandardModel * CreateModel(const std::string &ModelName)
Definition: ModelFactory.cpp:96
HiggsKvKf.h
NPEpsilons.h
RealWeakEFTCC.h
LoopMediators.h
NPDF2.h
FlavourWilsonCoefficient.h
THDM.h
NPEffectiveGIMRprime.h
NPSMEFTd6.h
SUSY.h
HiggsKvgenKfgen.h
FlavourWilsonCoefficient_DF2.h
LeftRightSymmetricModel.h