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

Creating duplicate output events #243

Open
benkrikler opened this issue Jul 7, 2020 · 1 comment
Open

Creating duplicate output events #243

benkrikler opened this issue Jul 7, 2020 · 1 comment

Comments

@benkrikler
Copy link
Contributor

I'm about to start modifying the eventloop in my fork of NanoAODTools so that for a given input event, I will write out 100 (or any other arbitrary, fixed number) output events, where for each output event we smear the two leading jet Pt. The physics motivation is to over-sample and smear a statistically limited QCD control region.

I can see how to achieve this by modifying the eventloop function, but I'm curious if there's anything I need to be aware of in terms of additional book-keeping pieces, e.g. is there any place in the code that assumes each input event has a unique event number, etc.

Finally, does functionality like this seem more generally useful and worth a PR to contribute back once we're satisfied that it's working?

@benkrikler
Copy link
Contributor Author

I've implemented this functionality in this commit on our forked version of NanoAODTools: b9791fb.

I'd be happy to open a PR to push this back to the official master branch, but otherwise I will just leave this here as a reference for potential future users.

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

No branches or pull requests

1 participant