Add energyCalculatorWrapper function in DP

  It will bind with different energy calculators,
  depending on the inputPower.
Modify scripts