#include <JetResolutionObject.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 148 of file JetResolutionObject.h.
JME::JetResolutionObject::Definition::Definition |
( |
| ) |
|
|
inline |
JME::JetResolutionObject::Definition::Definition |
( |
const std::string & |
definition | ) |
|
Definition at line 138 of file JetResolutionObject.cc.
References edm::errors::ConfigFileReadError, mps_fire::i, init, AlCaHLTBitMon_QueryRunRegistry::string, JME::throwException(), and create_public_lumi_plots::transform.
140 std::vector<std::string> tokens = getTokens(definition);
143 if (tokens.size() < 3) {
147 size_t n_bins = std::stoul(tokens[0]);
149 if (tokens.size() < (n_bins + 2)) {
153 for (
size_t i = 0;
i < n_bins;
i++) {
157 size_t n_variables = std::stoul(tokens[n_bins + 1]);
159 if (tokens.size() < (1 + n_bins + 1 + n_variables + 1)) {
163 for (
size_t i = 0;
i < n_variables;
i++) {
170 std::transform(formula_str_lower.begin(), formula_str_lower.end(), formula_str_lower.begin(), ::tolower);
172 if (formula_str_lower ==
"none") {
175 if ((tokens.size() > n_bins + n_variables + 3) && (std::atoi(tokens[n_bins + n_variables + 3].c_str()))) {
176 size_t n_parameters = std::stoul(tokens[n_bins + n_variables + 3]);
178 if (tokens.size() < (1 + n_bins + 1 + n_variables + 1 + 1 + n_parameters)) {
182 for (
size_t i = 0;
i < n_parameters;
i++) {
std::vector< std::string > m_variables_name
std::vector< std::string > m_bins_name
std::string m_formula_str
void throwException(uint32_t code, const std::string &message)
std::string JME::JetResolutionObject::Definition::getBinName |
( |
size_t |
bin | ) |
const |
|
inline |
const std::vector<Binning>& JME::JetResolutionObject::Definition::getBins |
( |
| ) |
const |
|
inline |
const std::vector<std::string>& JME::JetResolutionObject::Definition::getBinsName |
( |
| ) |
const |
|
inline |
std::string JME::JetResolutionObject::Definition::getFormulaString |
( |
| ) |
const |
|
inline |
const std::vector<std::string>& JME::JetResolutionObject::Definition::getParametersName |
( |
| ) |
const |
|
inline |
std::string JME::JetResolutionObject::Definition::getVariableName |
( |
size_t |
variable | ) |
const |
|
inline |
const std::vector<Binning>& JME::JetResolutionObject::Definition::getVariables |
( |
| ) |
const |
|
inline |
const std::vector<std::string>& JME::JetResolutionObject::Definition::getVariablesName |
( |
| ) |
const |
|
inline |
void JME::JetResolutionObject::Definition::init |
( |
void |
| ) |
|
size_t JME::JetResolutionObject::Definition::nBins |
( |
| ) |
const |
|
inline |
size_t JME::JetResolutionObject::Definition::nParameters |
( |
| ) |
const |
|
inline |
size_t JME::JetResolutionObject::Definition::nVariables |
( |
| ) |
const |
|
inline |
template<class Archive >
void JME::JetResolutionObject::Definition::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
friend class boost::serialization::access |
|
friend |
template<typename CondSerializationT , typename Enabled >
std::vector<Binning> JME::JetResolutionObject::Definition::m_bins |
|
private |
std::vector<std::string> JME::JetResolutionObject::Definition::m_bins_name |
|
private |
std::string JME::JetResolutionObject::Definition::m_formula_str |
|
private |
std::vector<std::string> JME::JetResolutionObject::Definition::m_parameters_name |
|
private |
std::vector<Binning> JME::JetResolutionObject::Definition::m_variables |
|
private |
std::vector<std::string> JME::JetResolutionObject::Definition::m_variables_name |
|
private |