-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CellID is long long int
in DD4hep, but uint64_t
in EDM4hep
#1090
Comments
To keep the discussion organized and in one place, please add comment to the EDM4hep issue, key4hep/EDM4hep#202. |
The signed'ness is probably not the issue, but it may be more interesting to specify the exact bitfield width already in the type rather rely on a less strict definition of "long long". |
@wdconinc During last meeting it was decided to standardize on uint64_t for the definition of VolumeID and CellID. |
I expected that this would have some significant impacts throughout the code. |
@wdconinc Was not entirely clear. Some voices claimed that the value was only accessed as a bit-field and there the interpretation as signed or unsigned should not matter since signed long long and uint64_t on linux x86 has the same width. |
In case of problems, please re-open the pull request |
This issue is mainly to point out to this community a relevant issue on the EDM4hep issue tracker: key4hep/EDM4hep#202
long long int
inDDCore/include/Parsers/Primitives.h
. https://github.com/AIDASoft/DD4hep/blob/master/DDCore/include/Parsers/Primitives.h#L44uint64_t
, e.g. in https://github.com/key4hep/EDM4hep/blob/master/edm4hep.yaml#L325Discussion on the EDM4hep issue: key4hep/EDM4hep#202.
In particular, I'd be interested in knowing when (if ever) the signed nature of the CellID could be important.
The text was updated successfully, but these errors were encountered: