#include <JetResolutionObject.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 124 of file JetResolutionObject.h.
JME::JetResolutionObject::JetResolutionObject |
( |
const std::string & |
filename | ) |
|
JME::JetResolutionObject::JetResolutionObject |
( |
| ) |
|
void JME::JetResolutionObject::dump |
( |
void |
| ) |
const |
float JME::JetResolutionObject::evaluateFormula |
( |
const Record & |
record, |
|
|
const JetParameters & |
variables |
|
) |
| const |
Definition at line 402 of file JetResolutionObject.cc.
References clip(), JME::JetParameters::createVector(), EcalElecEmulTccOnlyExample_cfg::formula, JME::JetResolutionObject::Record::getParametersValues(), JME::JetResolutionObject::Record::getVariablesRange(), and objects.autophobj::variables.
419 double variables_[4] = {0};
421 variables_[
index] =
clip(variables[
index], record.getVariablesRange()[
index].min, record.getVariablesRange()[
index].max);
423 const std::vector<float>&
parameters = record.getParametersValues();
427 std::vector<double> parametersD(parameters.begin(),parameters.end());
433 for (
size_t index = 0; index < parameters.size(); index++) {
434 formula.SetParameter(index, parameters[index]);
437 return formula.EvalPar(variables_);
const std::vector< Binning > & getVariables() const
T clip(const T &n, const T &lower, const T &upper)
size_t nVariables() const
const reco::FormulaEvaluator * getFormula() const
const Definition& JME::JetResolutionObject::getDefinition |
( |
| ) |
const |
|
inline |
const std::vector<Record>& JME::JetResolutionObject::getRecords |
( |
| ) |
const |
|
inline |
void JME::JetResolutionObject::saveToFile |
( |
const std::string & |
file | ) |
const |
template<class Archive >
void JME::JetResolutionObject::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
friend class boost::serialization::access |
|
friend |
template<typename CondSerializationT , typename Enabled >
std::vector<Record> JME::JetResolutionObject::m_records |
|
private |
bool JME::JetResolutionObject::m_valid = false |
|
private |