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, 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*/
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
factorial
int factorial(int n)
factorial function
Definition: L1GlobalTriggerFunctions.cc:13
str
#define str(s)
Definition: TestProcessor.cc:51
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hexStringToInt64
bool hexStringToInt64(const std::string &, std::vector< unsigned long long > &)
Definition: L1GlobalTriggerFunctions.cc:16
stringToNumber
bool stringToNumber(T &tmpl, const std::string &str, std::ios_base &(*f)(std::ios_base &))
Definition: L1GlobalTriggerFunctions.h:23
T
long double T
Definition: Basic3DVectorLD.h:48