#include <JetResolutionObject.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 116 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 377 of file JetResolutionObject.cc.
References clip(), JME::JetParameters::createVector(), pfMETCorrectionType0_cfi::formula, JME::JetResolutionObject::Record::getParametersValues(), JME::JetResolutionObject::Record::getVariablesRange(), and L1TEGammaDiff_cfi::variables.
394 double variables_[4] = {0};
397 clip(variables[
index], record.getVariablesRange()[
index].min, record.getVariablesRange()[
index].max);
399 const std::vector<float>&
parameters = record.getParametersValues();
403 std::vector<double> parametersD(parameters.begin(), parameters.end());
407 for (
size_t index = 0; index < parameters.size(); index++) {
408 formula.SetParameter(index, parameters[index]);
411 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 |