CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <sstream>
9 #include <iostream>
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 
31 #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
long double T