FunTuple fails in tupling arrays when user set the length name
FunTuple allows the tupling of arrays however it seems that the values are not saved correctly if the user set explicitly the length name.
E.g If the user adds in FunTuple a functor like:
variables_B = FunctorCollection({"TagTr_P[N]": F.MAP_INPUT_ARRAY(Functor=F.MAP_RANGE(Functor=F.P), Relations=tagAlg_rels)})
in the final tuple shows:
======> EVENT:0
N = 13
B0_TagTr_P = 6.45999e-43,
1.1911e-43, 1.1911e-43, 1.1911e-43, 1.1911e-43, 1.1911e-43,
1.1911e-43, 1.1911e-43, 1.1911e-43, 1.1911e-43, 1.1911e-43,
1.1911e-43, 1.1911e-43
On the other hand, if the length name is not defined, everything seems to work fine.
E.g If the user adds in FunTuple a functor like:
variables_B = FunctorCollection({"TagTr_P": F.MAP_INPUT_ARRAY(Functor=F.MAP_RANGE(Functor=F.P), Relations=tagAlg_rels)})
in the final tuple shows:
======> EVENT:0
indx = 13
B0_TagTr_P = 9868.22,
5122.94, 23467.2, 7001.36, 31459.4, 47644.1,
2978.74, 3973.2, 17168.7, 17489.3, 14228.5,
3112.05, 29591.4
Example can be run with DaVinci using Rec!2682 (merged) and DaVinci!627 (merged) using the command line:
./run davinci run-mc --inputfiledb Spruce_all_lines_dst Phys/DaVinci/options/DaVinciDB-Example.yaml --user_algorithms DaVinciExamples/python/DaVinciExamples/tupling/option_davinci_tupling_array_taggers:main
or simply running the DaVinciExamples/tests/qmtest/tupling.qms/test_davinci_tupling_array_taggers.qmt
qmtest.