CMS 3D CMS Logo

Classes | Typedefs | Enumerations | Functions
JME Namespace Reference

Classes

struct  bimap
 
class  JetParameters
 
class  JetResolution
 
class  JetResolutionObject
 
class  JetResolutionScaleFactor
 
class  JetResolutionSummary
 
class  JetResolutionVsEta
 
class  JetResolutionVsPt
 
class  JetScaleFactorSummary
 
class  JetScaleFactorVsEta
 
class  JetScaleFactorVsPt
 

Typedefs

typedef JetScaleFactorVsEta< DOWNJetScaleFactorVsEtaDOWN
 
typedef JetScaleFactorVsEta< NORMJetScaleFactorVsEtaNORM
 
typedef JetScaleFactorVsEta< UPJetScaleFactorVsEtaUP
 
typedef JetScaleFactorVsPt< DOWNJetScaleFactorVsPtDOWN
 
typedef JetScaleFactorVsPt< NORMJetScaleFactorVsPtNORM
 
typedef JetScaleFactorVsPt< UPJetScaleFactorVsPtUP
 

Enumerations

enum  Binning {
  Binning::JetPt = 0, Binning::JetEta, Binning::JetAbsEta, Binning::JetE,
  Binning::JetArea, Binning::Mu, Binning::Rho, Binning::NPV
}
 
enum  index { NORM = 0, DOWN = 1, UP = 2 }
 

Functions

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

Typedef Documentation

◆ JetScaleFactorVsEtaDOWN

Definition at line 329 of file JetResolution_PayloadInspector.cc.

◆ JetScaleFactorVsEtaNORM

Definition at line 328 of file JetResolution_PayloadInspector.cc.

◆ JetScaleFactorVsEtaUP

Definition at line 330 of file JetResolution_PayloadInspector.cc.

◆ JetScaleFactorVsPtDOWN

Definition at line 373 of file JetResolution_PayloadInspector.cc.

◆ JetScaleFactorVsPtNORM

Definition at line 372 of file JetResolution_PayloadInspector.cc.

◆ JetScaleFactorVsPtUP

Definition at line 374 of file JetResolution_PayloadInspector.cc.

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.

◆ index

enum JME::index
Enumerator
NORM 
DOWN 
UP 

Definition at line 38 of file JetResolution_PayloadInspector.cc.

Function Documentation

◆ getDefinitionLine()

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

Definition at line 26 of file JetResolutionObject.cc.

References dqmdumpme::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  }

◆ PYBIND11_MODULE()

JME::PYBIND11_MODULE ( pluginJetResolutionObject_PayloadInspector  ,
 
)

Definition at line 544 of file JetResolution_PayloadInspector.cc.

References PAYLOAD_INSPECTOR_CLASS.

544  {
545  PAYLOAD_INSPECTOR_CLASS(JetResolutionVsEta);
546  PAYLOAD_INSPECTOR_CLASS(JetResolutionVsPt);
553  PAYLOAD_INSPECTOR_CLASS(JetResolutionSummary);
554  PAYLOAD_INSPECTOR_CLASS(JetScaleFactorSummary);
555  }
JetScaleFactorVsEta< NORM > JetScaleFactorVsEtaNORM
JetScaleFactorVsEta< UP > JetScaleFactorVsEtaUP
JetScaleFactorVsPt< NORM > JetScaleFactorVsPtNORM
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
JetScaleFactorVsPt< DOWN > JetScaleFactorVsPtDOWN
JetScaleFactorVsPt< UP > JetScaleFactorVsPtUP
JetScaleFactorVsEta< DOWN > JetScaleFactorVsEtaDOWN

◆ 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  }