Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larsim
larsim
EventWeight
Base
WeightCalcFactory.h
Go to the documentation of this file.
1
#ifndef _WEIGHTCALCFACTORY_H_
2
#define _WEIGHTCALCFACTORY_H_
3
4
#include <map>
5
#include <string>
6
7
namespace
evwgh
{
8
class
WeightCalc;
9
class
WeightCalcCreator;
10
11
class
WeightCalcFactory
12
{
13
public
:
14
static
WeightCalc
*
Create
(
const
std::string
& classname);
15
static
void
Register
(
const
std::string
& wghcalcname,
16
WeightCalcCreator
* creator);
17
18
private
:
19
static
std::map<std::string, WeightCalcCreator*>&
GetTable
();
20
};
21
}
22
23
#endif // _WEIGHTCALCFACTORY_H_
evwgh::WeightCalcFactory::Create
static WeightCalc * Create(const std::string &classname)
Definition:
WeightCalcFactory.cxx:6
string
std::string string
Definition:
nybbler.cc:12
evwgh::WeightCalcFactory::GetTable
static std::map< std::string, WeightCalcCreator * > & GetTable()
Definition:
WeightCalcFactory.cxx:22
evwgh
Definition:
EventWeight_module.cc:31
evwgh::WeightCalc
Definition:
WeightCalc.h:19
evwgh::WeightCalcCreator
Definition:
WeightCalcCreator.h:10
evwgh::WeightCalcFactory
Definition:
WeightCalcFactory.h:11
evwgh::WeightCalcFactory::Register
static void Register(const std::string &wghcalcname, WeightCalcCreator *creator)
Definition:
WeightCalcFactory.cxx:17
Generated by
1.8.11