Does TTree::Draw automatically cut events where a branch in the selection doesn’t have a filled value? Elaboration:
I want to do something like mytree->Draw("mass","mass>=0&&(Added_CharmH_VERTEXCHI2_NEW[0]>0||Added_n_Particles<1)")
where mass and Added_n_Particles are not arrays and Added_CharmH_VERTEXCHI2_NEW is an array whose length is Added_n_Particles.
The goal is to draw mass only for events where Added_CharmH_VERTEXCHI2_NEW[0]>0 || Added_n_Particles<1
There are no events where Added_CharmH_VERTEXCHI2_NEW[0]>0 && Added_n_Particles<1
So, the number of events with the OR requirement should be the sum of the number of events with just one of each requirement, right? mass>=0 && Added_CharmH_VERTEXCHI2_NEW[0]>0
yields 280960 events while mass>=0 && Added_n_Particles<1
yields 10 events, but requiring mass && (Added_CharmH_VERTEXCHI2_NEW[0]>0 || Added_n_Particles<1)
still yields just 280960 events. In other words, even though 10 events are passing Added_n_Particles<1, they are not getting drawn. What’s going on?