Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than 3 images per event in test_40k.root #17

Open
Temigo opened this issue Jan 11, 2018 · 0 comments
Open

More than 3 images per event in test_40k.root #17

Temigo opened this issue Jan 11, 2018 · 0 comments
Assignees
Labels

Comments

@Temigo
Copy link
Member

Temigo commented Jan 11, 2018

Some entries (~ 5% of all entries) in image2d_data_tree TTree of test_40k.root have more than 3 images :

from __future__ import print_function
from larcv import larcv
import ROOT
from ROOT import TChain
import numpy as np

chain_image2d = ROOT.TChain('image2d_data_tree')
chain_image2d.AddFile('test_40k.root')

badEntries={}
for e in np.arange(chain_image2d.GetEntries()):
    chain_image2d.GetEntry(e)
    num = chain_image2d.image2d_data_branch.as_vector().size()
    if num == 3: continue
    if not num in badEntries: badEntries[num]=[e]
    else: badEntries[num].append(e)
for key,val in badEntries.iteritems():
    print(key,len(val))

returns (# images vs # such entries)

6 1808
9 462
12 148
15 39
18 13
21 6
24 1
@drinkingkazu drinkingkazu self-assigned this Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants