#include <JetResolutionObject.h>
Definition at line 118 of file JetResolutionObject.h.
 
      
        
          | JME::JetResolutionObject::JetResolutionObject | ( | const std::string & | filename | ) |  | 
      
 
 
      
        
          | JME::JetResolutionObject::JetResolutionObject | ( |  | ) |  | 
      
 
 
      
        
          | void JME::JetResolutionObject::dump | ( |  | ) | const | 
      
 
Definition at line 277 of file JetResolutionObject.cc.
  278         std::cout << 
"Definition: " << std::endl;
   279         std::cout << 
"    Number of binning variables: " << 
m_definition.
nBins() << std::endl;
   282             std::cout << bin << 
", ";
   284         std::cout << std::endl;
   288             std::cout << bin << 
", ";
   290         std::cout << std::endl;
   293         std::cout << std::endl << 
"Bin contents" << std::endl;
   296             std::cout << 
"    Bins" << std::endl;
   298             for (
const auto& bin: record.getBinsRange()) {
   299                 std::cout << 
"        " << 
m_definition.
getBinName(index) << 
" [" << bin.min << 
" - " << bin.max << 
"]" << std::endl;
   303             std::cout << 
"    Variables" << std::endl;
   305             for (
const auto& r: record.getVariablesRange()) {
   310             std::cout << 
"    Parameters" << std::endl;
   312             for (
const auto& par: record.getParametersValues()) {
   313                 std::cout << 
"        Parameter #" << index << 
" = " << par << std::endl;
 std::string getFormulaString() const 
const std::vector< std::string > & getVariablesName() const 
std::string getVariableName(size_t variable) const 
size_t nVariables() const 
const std::vector< std::string > & getBinsName() const 
std::string getBinName(size_t bin) const 
std::vector< Record > m_records
 
 
      
        
          | float JME::JetResolutionObject::evaluateFormula | ( | const Record & | record, | 
        
          |  |  | const JetParameters & | variables | 
        
          |  | ) |  | const | 
      
 
 
  
  | 
        
          | const Definition& JME::JetResolutionObject::getDefinition | ( |  | ) | const |  | inline | 
 
 
Definition at line 357 of file JetResolutionObject.cc.
References pileupCalcMC::bins, and JME::JetParameters::createVector().
  366         const Record* good_record = 
nullptr;
   370             size_t valid_bins = 0;
   371             size_t current_bin = 0;
   372             for (
const auto& bin: record.getBinsRange()) {
   373                 if (bin.is_inside(bins[current_bin]))
   380                 good_record = &record;
 const std::vector< Binning > & getBins() const 
std::vector< Record > m_records
 
 
  
  | 
        
          | const std::vector<Record>& JME::JetResolutionObject::getRecords | ( |  | ) | const |  | inline | 
 
 
      
        
          | void JME::JetResolutionObject::saveToFile | ( | const std::string & | file | ) | const | 
      
 
Definition at line 319 of file JetResolutionObject.cc.
References pileupCalcMC::fout, and ConfFile_cfg::p.
  321         std::ofstream 
fout(file);
   322         fout.setf(std::ios::right);
   339             for (
auto& r: record.getBinsRange()) {
   340                 fout << std::left << std::setw(15) << r.min << std::setw(15) << r.max << std::setw(15);
   342             fout << (record.nVariables() * 2 + record.nParameters()) << std::setw(15);
   344             for (
auto& r: record.getVariablesRange()) {
   345                 fout << r.min << std::setw(15) << r.max << std::setw(15);
   348             for (
auto& 
p: record.getParametersValues()) {
   349                 fout << 
p << std::setw(15);
   352             fout << std::endl << std::setw(0);
 std::string getFormulaString() const 
const std::vector< std::string > & getVariablesName() const 
size_t nVariables() const 
const std::vector< std::string > & getBinsName() const 
std::vector< Record > m_records
 
 
  
  | 
        
          | JME::JetResolutionObject::COND_SERIALIZABLE |  | private | 
 
 
  
  | 
        
          | std::vector<Record> JME::JetResolutionObject::m_records |  | private | 
 
 
  
  | 
        
          | bool JME::JetResolutionObject::m_valid = false |  | private | 
 
 
The documentation for this class was generated from the following files: