Skip to content

Instantly share code, notes, and snippets.

@VanyaBelyaev
Last active March 1, 2018 16:33
Show Gist options
  • Save VanyaBelyaev/4d96dbfa8e94379b284ec7364365dde6 to your computer and use it in GitHub Desktop.
Save VanyaBelyaev/4d96dbfa8e94379b284ec7364365dde6 to your computer and use it in GitHub Desktop.
## 1) some user code :
def run ( nEvents ) :
for i in range( 0 , min( nEvents , 10 ) ) : print ' I run event %i ' % '
return 0
## 2) configuration step
def configure ( datafiles , catalogs = [] , castor = False , params = {} ) :
print 'I am configuration step!'
return 0
## 3) steer the job
if '__main__' == __name__ :
print 'This runs only if module is used as the script!'
run ( 10 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment