#include <JetResolutionObject.h>
Definition at line 209 of file JetResolutionObject.h.
JME::JetResolutionObject::Record::Record |
( |
| ) |
|
|
inline |
JME::JetResolutionObject::Record::Record |
( |
const std::string & |
record, |
|
|
const Definition & |
def |
|
) |
| |
Definition at line 205 of file JetResolutionObject.cc.
References edm::errors::ConfigFileReadError, JME::JetResolutionObject::Definition::nBins(), JME::JetResolutionObject::Definition::nVariables(), and JME::throwException().
207 std::vector<std::string> tokens = getTokens(line);
209 if (tokens.size() < (def.nBins() * 2 + def.nVariables() * 2 + 1)) {
215 for (
size_t i = 0; i < def.nBins(); i++) {
216 Range r(std::stof(tokens[pos]), std::stof(tokens[pos + 1]));
221 size_t n_parameters = std::stoul(tokens[pos++]);
223 if (tokens.size() < (def.nBins() * 2 + def.nVariables() * 2 + 1 + (n_parameters - def.nVariables() * 2))) {
227 for (
size_t i = 0; i < def.nVariables(); i++) {
228 Range r(std::stof(tokens[pos]), std::stof(tokens[pos + 1]));
234 for (
size_t i = 0; i < n_parameters; i++) {
std::vector< float > m_parameters_values
std::vector< Range > m_bins_range
std::vector< Range > m_variables_range
void throwException(uint32_t code, const std::string &message)
const std::vector<Range>& JME::JetResolutionObject::Record::getBinsRange |
( |
| ) |
const |
|
inline |
const std::vector<float>& JME::JetResolutionObject::Record::getParametersValues |
( |
| ) |
const |
|
inline |
const std::vector<Range>& JME::JetResolutionObject::Record::getVariablesRange |
( |
| ) |
const |
|
inline |
size_t JME::JetResolutionObject::Record::nParameters |
( |
| ) |
const |
|
inline |
size_t JME::JetResolutionObject::Record::nVariables |
( |
| ) |
const |
|
inline |
JME::JetResolutionObject::Record::COND_SERIALIZABLE |
|
private |
std::vector<Range> JME::JetResolutionObject::Record::m_bins_range |
|
private |
std::vector<float> JME::JetResolutionObject::Record::m_parameters_values |
|
private |
std::vector<Range> JME::JetResolutionObject::Record::m_variables_range |
|
private |
The documentation for this class was generated from the following files: