################################ # # # An Event Generation Script # # (For use in ganga 5.1.4) # # # ################################ ## Import random number generator for random seed import random ## Create a new job j = Job() ## Send any local files that the job needs in the inputsandbox j.inputsandbox = ['/hepstore/store2/wiglesworth/AthenaMCgangaFiles/Generation/MC8.105300.PythiaH130zz4mu.py'] ## Configure the job to be an MC production job j.application = AthenaMC() j.application.mode = 'template' ## Define the Athena release to use j.application.atlas_release = '14.2.20.1' ## Define some job parameters from which the output files will be named j.application.process_name = 'H130zz4mu' j.application.production_name = 'EVGEN' j.application.run_number = '000000' j.application.version = j.application.atlas_release ## Define the number of events for each (sub)job j.application.number_events_job = 5000 ## Define the output dataset name j.outputdata=AthenaMCOutputDatasets() j.outputdata.outrootfiles["EVGEN"] = j.application.process_name+'.'+j.application.production_name ## Define which transform to use j.application.transform_script = 'csc_evgen08_trf.py' ## Configure the transform j.application.extraArgs = 'runNumber=000000 firstEvent=$first maxEvents=$number_events_job jobConfig=MC8.105300.PythiaH130zz4mu.py' j.application.extraArgs += ' outputEvgenFile=$outEVGEN' j.application.extraIncArgs = 'randomSeed=%s' % str(int(random.random()*100000000)) ## Split the job into subjobs j.splitter = AthenaMCSplitterJob() j.splitter.numsubjobs = 15 ## Configure the job such that it is sent to the grid j.backend = LCG() j.backend.middleware = 'GLITE' ## Define where the job should run j.backend.requirements = AtlasLCGRequirements() j.backend.requirements.sites = ['UKI-NORTHGRID-LIV-HEP_LOCALGROUPDISK'] ## Define the storage location for the output dataset j.application.se_name = 'UKI-NORTHGRID-LIV-HEP_LOCALGROUPDISK' ## Submit the job j.submit()