Confusion of CopyTree

Hi experts,

I am using copytree(cut) to select some entries:

# the total entries in the file is 327246.
# Then I use follow command to select some entries:
nt_fom = tfom.CopyTree("mass<160", "", 200000)
# but it just return 90000 entries

# If I use follow command(that is remove kmaxentries constrain):
nt_fom = tfom.CopyTree("mass<160")
# it returns 140000 entries.

I want to select all the entries with mass<160
Which one command is right?

Does the explanation in the ref guide helps you ? It seems clear enough.

1 Like

Thanks for this answer. In fact, I found the page Tree::CopyTree to see what kMaxEntries means, but it doesn’t explain.

I am confused because there are many classes share same method. I dont know which one should I really find to know its(method’s) detail usage.

It is like TTree::Draw. If you do not specify this parameter all the tree is scanned:

nentries	The number of entries to process (default is all)
1 Like

ok. thanks for your further explanation. :kissing_smiling_eyes:

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