Plot two column if the third column is true

Dears,
I’m looking if there is a method to draw the values of 2 columns of an Ntuple or TTree ONLY if when the values of a third column meets certain conditions.
There is an implemented function without extract the data from Ntuple, put them in array and loop them?

Thanks a lot :slight_smile:

Search for “selection” in the TTree::Draw and / or TTree::Project methods’ descriptions.

You can also right-click on the TTree and press StartViewer. https://root.cern.ch/doc/master/classTTreeViewer.html

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.