CMS 3D CMS Logo

Utils.h
Go to the documentation of this file.
1 #ifndef RecoLuminosity_LumiProducer_Utils_H
2 #define RecoLuminosity_LumiProducer_Utils_H
3 #include <string>
4 #include <sstream>
5 #include <iostream>
6 namespace lumi{
9  template <class T> bool from_string(T& t,
10  const std::string& s,
11  std::ios_base& (*f)(std::ios_base&)){
12  std::istringstream iss(s);
13  return !(iss >> f >> t).fail();
14  }
15 }
16 #endif
double f[11][100]
bool from_string(T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &))
Definition: Utils.h:9
def fail(errstr="")
long double T