Please read tips for efficient and successful posting and posting code
Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.
ROOT Version: 6.30
Platform: win10
Compiler: vc++ 2022
___How to select some data from rows of one column and push them in one vector?
Hi @songshusen,
thanks for reaching out! Can you give some context? Are you using RDF?
Cheers,
Monica
If you’re using RDF, you can do something like this:
//get the events
auto col = df.Take< mycolumn_type>("mycolumn");
std::vector< mycolumn_type > vec;
for(int e = 0; e < col->size() ; e++) vec.push_back(col->at(e));
I am not using RDF.
I want to push the data into vector because I can use the iterator to treat the data.
Can you specify what you’re using? Can you provide a small code snippet?
I see you do it by RDF.
I think this is good answer, I will do like this.
Thanks.