Skip to content

Instantly share code, notes, and snippets.

@VanyaBelyaev
Last active March 1, 2018 16:00
Show Gist options
  • Save VanyaBelyaev/328a015a409ebe3c04f94feba8f9e16f to your computer and use it in GitHub Desktop.
Save VanyaBelyaev/328a015a409ebe3c04f94feba8f9e16f to your computer and use it in GitHub Desktop.
The first "do-nothing" Bender example
## 1) some user code :
def run ( nEvents ) :
for i in range( 0 , min( nEvents , 10 ) ) : print ' I run event %i ' % i
return 0
## 2) configuration step
def configure ( datafiles , catalogs = [] , castor = False , params = {} ) :
print 'I am configuration step!'
return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment