a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
ThObsFactory.h
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#ifndef THOBSFACTORY_H
9#define THOBSFACTORY_H
10
11#include "StandardModel.h"
12#include <boost/functional/factory.hpp>
13#include <boost/function.hpp>
14#include <map>
15
16class ThObservable;
17
27public:
28
30
32
33 virtual ~ThObsFactory()
34 {
35 };
36
37 void addObsToFactory(const std::string name, boost::function<ThObservable*(const StandardModel&) >);
38
46 ThObservable* CreateThMethod(const std::string& name, StandardModel& model) const;
47
48
49private:
50 std::map<std::string, boost::function<ThObservable* (const StandardModel &) > > obsThFactory;
51};
52
53#endif /* THOBSFACTORY_H */
54
A model class for the Standard Model.
A class for.
Definition: ThObsFactory.h:26
void addObsToFactory(const std::string name, boost::function< ThObservable *(const StandardModel &) >)
ThObservable * CreateThMethod(const std::string &name, StandardModel &model) const
This method checks for the existence of an observable of a specific name in the map thobs and returns...
virtual ~ThObsFactory()
Definition: ThObsFactory.h:33
std::map< std::string, boost::function< ThObservable *(const StandardModel &) > > obsThFactory
Definition: ThObsFactory.h:50
ThObsFactory(const ThObsFactory &orig)
A class for a model prediction of an observable.
Definition: ThObservable.h:25