Hello,
I have a ROOT tree that has bool arrays in a few branches. However, whenever I try to include them in the snapshot it fails, with a segmentation violation. I can save other branches OK. Here’s a branch I can’t write out using Snapshot.
-------
***Br 46 :Electron_mvaSpring16GP_WP80 : Bool_t MVA general-purpose ID WP80 ***
***Entries : 1525773 : Total Size= 7243133 bytes File Size = 614988 ***
***Baskets : 100 : Basket Size= 204288 bytes Compression= 11.77 ***
------
Relevant error message might be:
/home/suyong/work/Tools/root-master/etc/…/include/ROOT/RVec.hxx:283:32: error: cannot initialize return object of type ‘bool *’ with an rvalue of type ‘void’
T *data() noexcept { return fData.data(); }
^~~~~~~~~~~~
/home/suyong/work/Tools/root-master/etc/…/include/ROOT/RDFActionHelpers.hxx:922:67: note: in instantiation of member function ‘ROOT::VecOps::RVec::data’ requested here
auto *const outputBranch = outputTree.Branch(name.c_str(), ab->data(), leaflist.c_str());
^
/home/suyong/work/Tools/root-master/etc/…/include/ROOT/RDFActionHelpers.hxx:976:11: note: in instantiation of function template specialization ‘ROOT::Internal::RDF::SetBranchesHelper’ requested here
(SetBranchesHelper(fInputTree, *fOutputTree, fInputBranchNames[S], fOutputBranchNames[S], &values), 0)…, 0};
^
Best,
Suyong
_ROOT Version: 6.15.01
_Platform: Linux
_Compiler: gcc 6.4.1