50 #include <momemta/ParameterSet.h> 51 #include <momemta/Module.h> 57 m_min(parameters.get<
double>(
"min")),
58 m_max(parameters.get<
double>(
"max")) {
60 m_ps_point = get<double>(parameters.get<
InputTag>(
"ps_point"));
63 virtual Status
work()
override {
64 double psPoint = *m_ps_point;
65 *output = m_min + (m_max - m_min) * psPoint;
66 *jacobian = m_max - m_min;
72 const double m_min, m_max;
78 std::shared_ptr<double> output = produce<double>(
"output");
79 std::shared_ptr<double> jacobian = produce<double>(
"jacobian");
Parent class for all the modules.
A class encapsulating a lua table.
Module(PoolPtr pool, const std::string &name)
Constructor.