#include <CachingVariable.h>
Public Member Functions | |
CachingVariable::evalType | eval (const edm::Event &iEvent) const |
VariablePower (CachingVariableFactoryArg arg) | |
~VariablePower () | |
Private Attributes | |
double | power_ |
std::string | var_ |
Definition at line 482 of file CachingVariable.h.
VariablePower::VariablePower | ( | CachingVariableFactoryArg | arg | ) | [inline] |
VariablePower::~VariablePower | ( | ) | [inline] |
Definition at line 493 of file CachingVariable.h.
{}
CachingVariable::evalType VariablePower::eval | ( | const edm::Event & | iEvent | ) | const [virtual] |
Reimplemented from CachingVariable.
Definition at line 26 of file CachingVariable.cc.
References CachingVariable::compute(), funct::exp(), iEvent, funct::log(), AlCaHLTBitMon_ParallelJobs::p, power_, v, and var_.
{ const CachingVariable * var=edm::Service<VariableHelperService>()->get().variable(var_); if (!var->compute(iEvent)) return std::make_pair(false,0); double v=(*var)(iEvent); double p=exp(power_*log(v)); return std::make_pair(true,p); }
double VariablePower::power_ [private] |
Definition at line 499 of file CachingVariable.h.
Referenced by eval(), and VariablePower().
std::string VariablePower::var_ [private] |
Definition at line 500 of file CachingVariable.h.
Referenced by eval(), and VariablePower().