CMS 3D CMS Logo

Classes | Enumerations | Functions
JME Namespace Reference

Classes

struct  bimap
 
class  JetParameters
 
class  JetResolution
 
class  JetResolutionObject
 
class  JetResolutionScaleFactor
 

Enumerations

enum  Binning {
  Binning::JetPt = 0, Binning::JetEta, Binning::JetAbsEta, Binning::JetE,
  Binning::JetArea, Binning::Mu, Binning::Rho, Binning::NPV
}
 

Functions

std::string getDefinitionLine (const std::string &line)
 
void throwException (uint32_t code, const std::string &message)
 

Enumeration Type Documentation

◆ Binning

enum JME::Binning
strong
Enumerator
JetPt 
JetEta 
JetAbsEta 
JetE 
JetArea 
Mu 
Rho 
NPV 

Definition at line 62 of file JetResolutionObject.h.

Function Documentation

◆ getDefinitionLine()

std::string JME::getDefinitionLine ( const std::string &  line)

Definition at line 26 of file JetResolutionObject.cc.

References first, dqmdumpme::last, mps_splice::line, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by JME::JetResolutionObject::JetResolutionObject().

26  {
27  size_t first = line.find('{');
28  size_t last = line.find('}');
29 
30  if (first != std::string::npos && last != std::string::npos && first < last)
31  return std::string(line, first + 1, last - first - 1);
32 
33  return "";
34  }

◆ throwException()

void JME::throwException ( uint32_t  code,
const std::string &  message 
)

Definition at line 36 of file JetResolutionObject.cc.

References relativeConstraints::error, and Exception.

Referenced by JME::JetParameters::createVector(), JME::JetResolutionObject::Definition::Definition(), JME::JetResolutionObject::Definition::init(), JME::JetResolutionObject::JetResolutionObject(), and JME::JetResolutionObject::Record::Record().

36  {
37 #ifndef STANDALONE
38  throw edm::Exception(static_cast<edm::errors::ErrorCodes>(code), message);
39 #else
40  std::stringstream error;
41  error << message << " Error code: " << code;
42  throw std::runtime_error(error.str());
43 
44 #endif
45  }