<commit_before># Read events and create histogram of dimuon masses

from ROOT import TFile

file_data = TFile("/home/waugh/data/events.root")
tree_data = file_data.Get("events")
<commit_msg>Loop over events and print number of particles<commit_after># Read events and create histogram of dimuon masses

from ROOT import TFile

file_data = TFile("/home/waugh/data/events.root")
tree_data = file_data.Get("events")
n_events = tree_data.GetEntries()
for i_event in xrange(n_events):
    tree_data.GetEntry(i_event)
    n_particles = tree_data.nPart
    print n_particles

{'fraction_non_alphanumeric': 0.09154929577464789, 'fraction_numerical': 0.0, 'mean_word_length': 5.322222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1611480', 'n_tokens_mistral': 190, 'n_tokens_neox': 187, 'n_words': 52}