Project

General

Profile

Bug #17425

FHiCL numerical parameters truncated by DB!

Added by Martin Haigh about 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Immediate
Category:
artdaq-database
Target version:
-
Start date:
08/10/2017
Due date:
% Done:

0%

Estimated time:
Experiment:
DUNE
Co-Assignees:
Duration:

Description

Following from bugs 17403 and 17416, I discovered that large numerical values (ones that won't fit in a signed integer?) are actually truncated on import to the DB. For example, when the FHiCL:

test1: 0xF0000000
test2: 0xFFFFFFFF
test3: 4026531840
test4: 4294967295

is imported to the DB and then re-exported, the resulting snippet is changed to the following:

test1: -2147483648

test2: -2147483648

test3: -2147483648

test4: -2147483648

This was observed on the CERN test stand for protoDUNE.


Related issues

Related to artdaq Utilities - Bug #17403: Undesirable conversion of +ve integer to -ve in FHiCL array parameterResolved08/08/2017

Related to artdaq Utilities - Bug #17416: Conversion of hex values to decimal on database check-inResolved08/09/2017

Related to fhicl-cpp - Feature #17448: Add the raw_value member to fhicl::extended_valueFeedback08/16/2017

History

#1 Updated by Gennadiy Lukhanin about 2 years ago

Opened a new feature request (Feature #17448) with the fhicl-cpp library developers.

#2 Updated by Gennadiy Lukhanin about 2 years ago

As as an interim solution, all hex numbers can be stored with the "hex" prefix, so they are interpreted as string values by the database library.

e.g. 0xffff becomes hex0xffff

#3 Updated by Gennadiy Lukhanin about 2 years ago

  • Related to Bug #17403: Undesirable conversion of +ve integer to -ve in FHiCL array parameter added

#4 Updated by Gennadiy Lukhanin about 2 years ago

  • Related to Bug #17416: Conversion of hex values to decimal on database check-in added

#5 Updated by Gennadiy Lukhanin about 2 years ago

  • Related to Feature #17448: Add the raw_value member to fhicl::extended_value added

#6 Updated by Gennadiy Lukhanin about 2 years ago

  • Status changed from New to Work in progress

#7 Updated by Gennadiy Lukhanin about 1 year ago

  • Status changed from Work in progress to Resolved


Also available in: Atom PDF