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.

62  {
63  JetPt = 0,
64  JetEta,
65  JetAbsEta,
66  JetE,
67  JetArea,
68  Mu,
69  Rho,
70  NPV,
71  };

Function Documentation

◆ getDefinitionLine()

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

Definition at line 26 of file JetResolutionObject.cc.

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  }

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

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

◆ throwException()

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

Definition at line 36 of file JetResolutionObject.cc.

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  }

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().

JME::Binning::JetEta
JME::Binning::JetArea
relativeConstraints.error
error
Definition: relativeConstraints.py:53
dqmdumpme.first
first
Definition: dqmdumpme.py:55
dqmdumpme.last
last
Definition: dqmdumpme.py:56
pvSelector_cfi.NPV
NPV
Definition: pvSelector_cfi.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
JME::Binning::JetE
JME::Binning::JetAbsEta
Mu
Definition: L1GtObject.h:29
JME::Binning::Rho
Exception
Definition: hltDiff.cc:246
JME::Binning::JetPt
mps_splice.line
line
Definition: mps_splice.py:76