#include <JetResolutionObject.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 116 of file JetResolutionObject.h.
◆ JetResolutionObject() [1/3]
JME::JetResolutionObject::JetResolutionObject |
( |
const std::string & |
filename | ) |
|
◆ JetResolutionObject() [2/3]
◆ JetResolutionObject() [3/3]
JME::JetResolutionObject::JetResolutionObject |
( |
| ) |
|
◆ dump()
void JME::JetResolutionObject::dump |
( |
void |
| ) |
const |
Definition at line 283 of file JetResolutionObject.cc.
284 std::cout <<
"Definition: " << std::endl;
299 std::cout << std::endl <<
"Bin contents" << std::endl;
304 for (
const auto&
bin :
record.getBinsRange()) {
312 for (
const auto&
r :
record.getVariablesRange()) {
320 for (
const auto& par :
record.getParametersValues()) {
321 std::cout <<
" Parameter #" <<
index <<
" = " << par << std::endl;
References newFWLiteAna::bin, gather_cfg::cout, JME::JetResolutionObject::Definition::getBinName(), JME::JetResolutionObject::Definition::getBinsName(), JME::JetResolutionObject::Definition::getFormulaString(), JME::JetResolutionObject::Definition::getVariableName(), JME::JetResolutionObject::Definition::getVariablesName(), m_definition, m_records, JME::JetResolutionObject::Definition::nBins(), JME::JetResolutionObject::Definition::nVariables(), alignCSCRings::r, and AlCaHarvesting_cff::record.
Referenced by JetResolutionDBReader::analyze(), and JetResolutionScaleFactorDBReader::analyze().
◆ evaluateFormula()
float JME::JetResolutionObject::evaluateFormula |
( |
const Record & |
record, |
|
|
const JetParameters & |
variables |
|
) |
| const |
◆ getDefinition()
const Definition& JME::JetResolutionObject::getDefinition |
( |
| ) |
const |
|
inline |
◆ getRecord()
◆ getRecords()
const std::vector<Record>& JME::JetResolutionObject::getRecords |
( |
| ) |
const |
|
inline |
◆ saveToFile()
void JME::JetResolutionObject::saveToFile |
( |
const std::string & |
file | ) |
const |
Definition at line 327 of file JetResolutionObject.cc.
329 fout.setf(std::ios::right);
343 <<
" Resolution}" << std::endl;
347 for (
auto&
r :
record.getBinsRange()) {
348 fout << std::left << std::setw(15) <<
r.min << std::setw(15) <<
r.max << std::setw(15);
352 for (
auto&
r :
record.getVariablesRange()) {
353 fout <<
r.min << std::setw(15) <<
r.max << std::setw(15);
356 for (
auto&
p :
record.getParametersValues()) {
357 fout <<
p << std::setw(15);
360 fout << std::endl << std::setw(0);
References newFWLiteAna::bin, geometryDiff::file, groupFilesInBlocks::fout, JME::JetResolutionObject::Definition::getBinsName(), JME::JetResolutionObject::Definition::getFormulaString(), JME::JetResolutionObject::Definition::getVariablesName(), m_definition, m_records, JME::JetResolutionObject::Definition::nBins(), JME::JetResolutionObject::Definition::nVariables(), AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, AlCaHarvesting_cff::record, and trigObjTnPSource_cfi::var.
Referenced by JetResolutionDBReader::analyze(), and JetResolutionScaleFactorDBReader::analyze().
◆ serialize()
template<class Archive >
void JME::JetResolutionObject::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ cond::serialization::access
template<typename CondSerializationT , typename Enabled >
◆ m_definition
◆ m_records
std::vector<Record> JME::JetResolutionObject::m_records |
|
private |
◆ m_valid
bool JME::JetResolutionObject::m_valid = false |
|
private |