Data handling using rDataFrame for Tree branches of Char_t type data

Maybe Enrico’s solution here will help. Basically, redefine the (currently RVec<char>) column (or define a new one) as string; something like

  auto df_with_parsed_branch = rdf.Define("parsed_particle_name", "std::string(particle_name.data(), particle_name.size())");

and use the strings as needed.

1 Like