Hi!
Using a RDataFrame is there a way to filter a dataframe according to individual elements of a vector branch? (Rather than creating many Define())
I have tried RVecOps::All() and RVecOps::Any(), in this manner ROOT.RDataFrame(…).Filter(“ROOT::VecOps::Any(PID==-11)”), but this does not produce the desired outcome.
I.e. Given a vector branch like this:
+-----+---------------+----------+
| Row | N             |   PID    |
+-----+---------------+----------+
| 0   | 8             | -11      |
|     |               | -11      |
|     |               | 22       |
|     |               | 11       |
|     |               | 22       |
|     |               | 11       |
+-----+---------------+----------+
What I want to do is to select for each row, PID==-11:
+-----+---------------+----------+
| Row | N             |   PID    |
+-----+---------------+----------+
| 0   | 8             | -11      |
|     |               | -11      |
+-----+---------------+----------+
Many thanks for any help!
