Skip to content

TRT_CalibAlgs: fixes for genconf in gcc8

Charles Leggett requested to merge leggett/athena:dev/gcc8_TRTStraw into master

genconf in gcc8 does not like large arrays (or other structures) in header files. If these structures are too large, you will see error messages at compile time like:

runtime error: member call on address 0x7f73fe8a5388 which does not point to an object of type 'extend_interfaces'
0x7f73fe8a5388: note: object has a possibly invalid vptr: abs(offset to top) too big
 74 7f 00 00  f0 6f 1f 0f 74 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00

TRT_StrawStatus has an array of size 2105088!!!!

I have turned this into a ptr to a multidimensional std::array.

Also moved a number of variables to the .cxx and made them static const (many of them appear unused?)

Edited by Charles Leggett

Merge request reports