14 return (n <= 0) ? 1 : (n *
factorial(n - 1));
19 std::vector<unsigned long long>& vecInt64) {
22 size_t initialPos = 0;
23 unsigned long long iValue = 0ULL;
29 if (stringToNumber<unsigned long long> (iValue,
30 hexString.substr(initialPos, 16), std::hex)) {
32 LogTrace(
"L1GlobalTrigger") <<
"\n String " << hexString.substr(
33 initialPos, 16) <<
" converted to hex value 0x" << std::hex
36 vecInt64[iVec] = iValue;
39 <<
"\nstringToNumber failed to convert string " 40 << hexString.substr(initialPos, 16) << std::endl;
47 }
while (hexString.size() >= (initialPos + 16));
bool hexStringToInt64(const std::string &hexString, std::vector< unsigned long long > &vecInt64)
int factorial(int n)
factorial function