Last active
March 1, 2018 16:33
-
-
Save VanyaBelyaev/4d96dbfa8e94379b284ec7364365dde6 to your computer and use it in GitHub Desktop.
This file contains 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
## 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