LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
WeightCalcFactory.h
Go to the documentation of this file.
1 #ifndef _WEIGHTCALCFACTORY_H_
2 #define _WEIGHTCALCFACTORY_H_
3 
4 #include "WeightCalc.h"
5 #include "WeightCalcCreator.h"
6 
7 namespace evwgh {
9  {
10  public:
11  static WeightCalc* Create(const std::string& classname);
12  static void Register(const std::string& wghcalcname,
13  WeightCalcCreator* creator);
14 
15  private:
16  static std::map<std::string, WeightCalcCreator*>& GetTable();
17  };
18 }
19 
20 #endif // _WEIGHTCALCFACTORY_H_
static WeightCalc * Create(const std::string &classname)
static std::map< std::string, WeightCalcCreator * > & GetTable()
static void Register(const std::string &wghcalcname, WeightCalcCreator *creator)