CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/L1Trigger/GlobalTrigger/interface/L1GlobalTriggerFunctions.h

Go to the documentation of this file.
00001 #ifndef GlobalTrigger_L1GlobalTriggerFunctions_h
00002 #define GlobalTrigger_L1GlobalTriggerFunctions_h
00003 
00004 #include <string>
00005 #include <vector>
00006 
00007 #include <fstream>
00008 #include <sstream>
00009 #include <iostream>
00010 
00012 int factorial(int n);
00013 
00017 bool hexStringToInt64(const std::string&, std::vector<unsigned long long>&);
00018 
00022 template<class T>
00023 bool stringToNumber(T& tmpl, const std::string& str,
00024         std::ios_base& (*f)(std::ios_base&)) {
00025 
00026     std::istringstream iss(str);
00027     return !(iss >> f >> tmpl).fail();
00028 
00029 }
00030 
00031 #endif /*GlobalTrigger_L1GlobalTriggerFunctions_h*/