CMS 3D CMS Logo

Functions
HcalFiberPattern.cc File Reference
#include "IORawData/CaloPatterns/interface/HcalFiberPattern.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

static int setIf (const std::string &name, const std::map< std::string, std::string > &params)
 

Function Documentation

static int setIf ( const std::string &  name,
const std::map< std::string, std::string > &  params 
)
inlinestatic

Definition at line 4 of file HcalFiberPattern.cc.

Referenced by HcalFiberPattern::HcalFiberPattern().

4  {
5  std::map<std::string, std::string>::const_iterator j = params.find(name);
6  if (j == params.end())
7  throw cms::Exception("InvalidFormat") << "Missing parameter '" << name << "'";
8  else
9  return strtol(j->second.c_str(), nullptr, 0);
10 }