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

Vectorizing histogramming (collections) #171

Open
kreczko opened this issue May 31, 2019 · 1 comment
Open

Vectorizing histogramming (collections) #171

kreczko opened this issue May 31, 2019 · 1 comment
Assignees

Comments

@kreczko
Copy link
Member

kreczko commented May 31, 2019

While it is possible to fill histograms, it is currently impossible to select the bins in a vectorized way.

E.g. a vectorized processing with a batch_size of 10000 will have

len(event.pileup) == 1000

when selecting the correct bins the corresponding functions, e.g. _get_pu_bin need to handle array input:

pileupBins=[0,10,15,20,30,999]

_get_pu_bin(23) # --> 3

_get_pu_bin([12, 23, 33]) # --> [1, 3, 4]
@kreczko
Copy link
Member Author

kreczko commented May 31, 2019

@benkrikler related to #39?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant