Last active
July 14, 2017 14:10
-
-
Save wiso/b87a1ef19573cd2c5b93e61cb33f1856 to your computer and use it in GitHub Desktop.
Loop on RooFit RooArgSet with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def loop_iterator(iterator): | |
object = iterator.Next() | |
while object: | |
yield object | |
object = iterator.Next() | |
def iter_collection(rooAbsCollection): | |
iterator = rooAbsCollection.createIterator() | |
return loop_iterator(iterator) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment