Skip to content

Write std::array to file using FairRootManager->RegisterAny() #932

@vadimr3b

Description

@vadimr3b

Is your feature request related to a problem? Please describe.
Since PR#4425 (more information) it is possible to store a simple std::array into a TTree. After installing FairRoot with Root 6.20.00 I was hoping to achive the same with FairRoot by FairRootManager->RegisterAny, but this still fails with [FATAL] No dictionary found for std::array<double, 1ul>.
Maybe I did not consider something inside FairRoot while installing it with the newest Root version and it will work out of the box with the next release?

Describe the solution you'd like
auto ptrToArray = new std::array<double, 5>(); FairRootManager::Instance()->RegisterAny("myArray", ptrToArray, kTRUE);
should write the array into the file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions