CMS 3D CMS Logo

L1GlobalTriggerFunctions.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GlobalTriggerFunctions_h
2 #define GlobalTrigger_L1GlobalTriggerFunctions_h
3 
4 #include <string>
5 #include <vector>
6 
7 #include <fstream>
8 #include <iostream>
9 #include <sstream>
10 
12 int factorial(int n);
13 
17 bool hexStringToInt64(const std::string &, std::vector<unsigned long long> &);
18 
22 template <class T>
23 bool stringToNumber(T &tmpl, const std::string &str,
24  std::ios_base &(*f)(std::ios_base &)) {
25 
26  std::istringstream iss(str);
27  return !(iss >> f >> tmpl).fail();
28 }
29 
30 #endif /*GlobalTrigger_L1GlobalTriggerFunctions_h*/
double f[11][100]
bool stringToNumber(T &tmpl, const std::string &str, std::ios_base &(*f)(std::ios_base &))
bool hexStringToInt64(const std::string &, std::vector< unsigned long long > &)
int factorial(int n)
factorial function
def fail(errstr="")
#define str(s)
long double T