Hi Marooz,
Nice snippets.
I am a bit puzzled by this snippet:
auto nmcXi = *df_xi.Take<Int_t>("nmcxi");
for (ULong64_t n = 0; n < *nentries; ++n) {
Int_t nmcXi = nmcXi;
cout << "nmcXi = " << nmcXi << endl;
}
I assume nmcxi
is a column of int
values. Therefore, the type of nmcXi
is <std::vector<int>
as per the behaviour of Take.
Therefore, I would expect that to print the content of that column one would write
for (auto i_nmcXi : nmcXi) cout << "i_nmcXi = " << i_nmcXi << endl;
Please let me know if I am not understood something correctly!
Cheers,
D