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 "NPSMEFTd6.h"
17#include "NPSMEFTd6General.h"
18#include "NPSMEFTd6U2qU1le.h"
19#include "NPSMEFTd6U2.h"
20#include "NPSMEFTd6U3.h"
21
22#include "NPd6SILH.h"
23
24#include "NPSMEFT6dtopquark.h"
25#include "SigmaBR.h"
26#include "HiggsKigen.h"
27#include "HiggsChiral.h"
28#include "GeneralSUSY.h"
29#include "SUSYMassInsertion.h"
30#include "SUSY.h"
31#include "THDM.h"
34#include "RealWeakEFTLFV.h"
35#include "RealWeakEFTCC.h"
36#include "LoopMediators.h"
37#include "NPDF2.h"
38#include "CMFV.h"
39#include "GeorgiMachacek.h"
41/* BEGIN: REMOVE FROM THE PACKAGE */
42#include "pMSSM.h"
43#include "MFV.h"
44#include "NPSTUVWXY.h"
45#include "GeneralTHDM.h"
46#include "GeneralTHDMZ2.h"
47#include "THDMW.h"
48/* END: REMOVE FROM THE PACKAGE */
49#include <boost/bind/bind.hpp>
50using namespace boost::placeholders;
51
53{
54 modelFactory["StandardModel"] = boost::factory<StandardModel*>();
55 modelFactory["NPSTU"] = boost::factory<NPSTU*>();
56 modelFactory["NPSTUZbbbarLR"] = boost::factory<NPSTUZbbbarLR*>();
57 modelFactory["NPEpsilons"] = boost::factory<NPEpsilons*>();
58 modelFactory["NPEpsilons_pureNP"] = boost::factory<NPEpsilons_pureNP*>();
59 modelFactory["NPHiggs"] = boost::factory<NPHiggs*>();
60 modelFactory["NPZbbbar"] = bind(boost::factory<NPZbbbar*>(), false);
61 modelFactory["NPZbbbarLR"] = bind(boost::factory<NPZbbbar*>(), true);
62 modelFactory["NPZbbbarLinearized"] = bind(boost::factory<NPZbbbarLinearized*>(), false);
63 modelFactory["NPZbbbarLinearizedLR"] = bind(boost::factory<NPZbbbarLinearized*>(), true);
64 modelFactory["NPSMEFTd6"] = bind(boost::factory<NPSMEFTd6*>(), false, false);
65 modelFactory["NPSMEFTd6General"] = boost::factory<NPSMEFTd6General*>();
66 modelFactory["NPSMEFTd6U2qU1le"] = boost::factory<NPSMEFTd6U2qU1le*>();
67 modelFactory["NPSMEFTd6U2"] = boost::factory<NPSMEFTd6U2*>();
68 modelFactory["NPSMEFTd6U3"] = boost::factory<NPSMEFTd6U3*>();
69
70 modelFactory["NPd6SILH"] = boost::factory<NPd6SILH*>();
71
72 modelFactory["NPSMEFT6dtopquark"] = boost::factory<NPSMEFT6dtopquark*>();
73
74 //modelFactory["NPSMEFT6dtopquark"] = bind(boost::factory<NPSMEFT6dtopquark*>(), false, false);
75 modelFactory["SigmaBR"] = boost::factory<SigmaBR*>();
76 modelFactory["NPSMEFTd6_LFU_QFU"] = bind(boost::factory<NPSMEFTd6*>(), true, true);
77 modelFactory["HiggsKigen"] = boost::factory<HiggsKigen*>();
78 modelFactory["HiggsChiral"] = boost::factory<HiggsChiral*>();
79 modelFactory["NPDF2"] = boost::factory<NPDF2*>();
80 modelFactory["CMFV"] = boost::factory<CMFV*>();
81 modelFactory["FlavourWilsonCoefficient"] = boost::factory<FlavourWilsonCoefficient*>();
82 modelFactory["FlavourWilsonCoefficient_DF2"] = boost::factory<FlavourWilsonCoefficient_DF2*>();
83 modelFactory["RealWeakEFTLFV"] = boost::factory<RealWeakEFTLFV*>();
84 modelFactory["RealWeakEFTCC"] = bind(boost::factory<RealWeakEFTCC*>(), 0);
85 modelFactory["RealWeakEFTCCPM"] = bind(boost::factory<RealWeakEFTCC*>(), 1);
86 modelFactory["LoopMediators"] = boost::factory<LoopMediators*>();
87 modelFactory["SUSYMassInsertion"] = boost::factory<SUSYMassInsertion*>();
88 modelFactory["THDM"] = boost::factory<THDM*>();
89 modelFactory["GeneralSUSY"] = boost::factory<GeneralSUSY*>();
90 modelFactory["GeorgiMachacek"] = boost::factory<GeorgiMachacek*>();
91 modelFactory["LeftRightSymmetricModel"] = boost::factory<LeftRightSymmetricModel*>();
92/* BEGIN: REMOVE FROM THE PACKAGE */
93 modelFactory["MFV"] = boost::factory<MFV*>();
94 modelFactory["pMSSM"] = boost::factory<pMSSM*>();
95 modelFactory["NPSTUVWXY"] = boost::factory<NPSTUVWXY*>();
96 modelFactory["GeneralTHDM"] = boost::factory<GeneralTHDM*>();
97 modelFactory["GeneralTHDMZ2"] = boost::factory<GeneralTHDMZ2*>();
98 modelFactory["THDMW"] = boost::factory<THDMW*>();
99/* END: REMOVE FROM THE PACKAGE */
100}
101
102void ModelFactory::addModelToFactory(const std::string name, boost::function<StandardModel*() > funct)
103{
104 modelFactory[name] = funct;
105}
106
108{
109 if (modelFactory.find(name) == modelFactory.end())
110 throw std::runtime_error("ERROR: Wrong model " + name + " passed to ModelFactory.\n");
111 return (modelFactory[name]());
112}
void addModelToFactory(const std::string name, boost::function< StandardModel *() >)
std::map< std::string, boost::function< StandardModel *()> > modelFactory
Definition: ModelFactory.h:35
StandardModel * CreateModel(const std::string &ModelName)
A model class for the Standard Model.