CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 62 of file JetResolutionObject.h.

Function Documentation

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

Definition at line 31 of file JetResolutionObject.cc.

References plotBeamSpotDB::first, prof2calltree::last, and AlCaHLTBitMon_QueryRunRegistry::string.

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

31  {
32  size_t first = line.find ('{');
33  size_t last = line.find ('}');
34 
35  if (first != std::string::npos && last != std::string::npos && first < last)
36  return std::string(line, first + 1, last - first - 1);
37 
38  return "";
39  }
void JME::throwException ( uint32_t  code,
const std::string &  message 
)

Definition at line 41 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().

41  {
42 #ifndef STANDALONE
43  throw edm::Exception(static_cast<edm::errors::ErrorCodes>(code), message);
44 #else
45  std::stringstream error;
46  error << message << " Error code: " << code;
47  throw std::runtime_error(error.str());
48 
49 #endif
50  }