CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/IORawData/CaloPatterns/src/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 
) [inline, static]

Definition at line 4 of file HcalFiberPattern.cc.

References j.

Referenced by HcalFiberPattern::HcalFiberPattern().

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