CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 <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, std::ios_base &(*f)(std::ios_base &)) {
24  std::istringstream iss(str);
25  return !(iss >> f >> tmpl).fail();
26 }
27 
28 #endif /*GlobalTrigger_L1GlobalTriggerFunctions_h*/
tuple tmpl
Definition: callgraph.py:31
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
#define str(s)
long double T