1 #ifndef _SBN_WEIGHTCALCCREATOR_H_
2 #define _SBN_WEIGHTCALCCREATOR_H_
39 #define DECLARE_WEIGHTCALC(wghcalc) \
41 static const sbn::evwgh::WeightCalcImpl<wghcalc> creator;
43 #define REGISTER_WEIGHTCALC(wghcalc) \
44 const sbn::evwgh::WeightCalcImpl<wghcalc> wghcalc::creator(#wghcalc);
46 #endif // _SBN_WEIGHTCALCFACTORY_H_
virtual ~WeightCalcCreator()=default
WeightCalcCreator(const std::string &classname)
virtual WeightCalc * Create()
virtual WeightCalc * Create()=0