18 size_t initialPos = 0;
19 unsigned long long iValue = 0ULL;
24 if (stringToNumber<unsigned long long>(iValue, hexString.substr(initialPos, 16), std::hex)) {
25 LogTrace(
"L1GlobalTrigger") <<
"\n String " << hexString.substr(initialPos, 16) <<
" converted to hex value 0x" 26 << std::hex << iValue <<
std::dec << std::endl;
28 vecInt64[iVec] = iValue;
30 LogTrace(
"L1GlobalTrigger") <<
"\nstringToNumber failed to convert string " << hexString.substr(initialPos, 16)
38 }
while (hexString.size() >= (initialPos + 16));
bool hexStringToInt64(const std::string &hexString, std::vector< unsigned long long > &vecInt64)
int factorial(int n)
factorial function