Error in <TTree::Branch>: The class requested (vector<dd4hep::rec::Vector3D>) for the branch "xyz" is an instance of an stl collection and does not have a compiled CollectionProxy. Please generate the dictionary for this collection (vector<dd4hep::rec::Vector3D>) to avoid to write corrupted data.
It works only because we generate dictionary for std::vector<ROOT::Math::XYZVector > in the GenVector library. To do I/O on an item (including collections) you need to generate a dictionary (for collection the dictionary is often generated implicit alongside the dictionary for a class that uses that collection)
Cheers,
Philippe.
PS. If you are adventurous it “might” work without a dictionary because all std::vector have the same layout in memory by disabling the warning:
Is there a way to do “full solution” without compiling? E.g if I use root cpp script with just root test.cpp, without any compilation…
Because if I use this macro for the analysis, the code is changing every second, and recompiling all the time, is just annoying and adds time for every “save file” and “test launch”