-
Notifications
You must be signed in to change notification settings - Fork 444
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
DPL Inputrecord: fixing compilation error when trying to use get<std::vector<pod>> #2617
DPL Inputrecord: fixing compilation error when trying to use get<std::vector<pod>> #2617
Conversation
@matthiasrichter I also get a compilation error when trying to add a branch with
Happens both with dev and this branch. |
Hello @shahor02, right now this is actually by concept. We do not want to use ROOT serialization for I will investigate if it is enough to introduce a special type trait handling for vectors of fundamental types. I think in your case you want to have There is a way to store the message as a binary blob in a binary branch, you have to specify |
@shahor02 this concerns only the automatically generated streamers for vectors of fundamental types. With the current implementation of
and sending/storing |
@matthiasrichter thanks! What I need is to store a vector<uint32_t> (not for macros/TreeViewer but to have a single container of cluster indices instead of per-track vector<uint32_t> of TrackTPC class (which makes it non-messagable). As a last resort, I can use the struct you suggested, but if takes a couple of days to learn if the TreeWriter can be adapted to trivial types, I better wait: anyway, there is another showstopper with ITS Cluster not being understood to be messagable. |
There is more work needed to avoid the copy when extracting the unserialized vector object. In fact this PR only makes sense if this can be solved, the API needs to be corrected otherwise and this PR will be obsolete. Working on a prototype. |
eda73ab
to
115bb2d
Compare
Is this still needed? |
There was compilation problem when using the InputRecord API with vectors of PODs. Adding also a test case to the unit test.
115bb2d
to
a969fb7
Compare
yes, I have now adjusted all conflicting code for #2697 and we can go on with these two PRs. This one is ready for merging once the tests are ok. |
There was compilation problem when using the InputRecord API with vectors of
PODs. Adding also a test case to the unit test.