ATLAS Offline Software
01SubmitToGrid.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4 import TopExamples.grid
5 import DerivationTags
6 import Data_rel21
7 import MC16_TOPQ1
8 
9 
21 
22 config = TopExamples.grid.Config()
23 config.code = 'top-xaod'
24 config.settingsFile = 'validation-cuts.txt'
25 # in case you want to run multiple configurations in a single file:
26 #config.settingsFile = 'validation-cuts_Topo.txt,validation-cuts_PFlow.txt'
27 #config.combine_outputFile = 'out.root'
28 #config.combine_prefixes = 'Topo,PFlow'
29 
30 config.gridUsername = 'iconnell' # use e.g. phys-top or phys-higgs for group production
31 config.suffix = '17-10-03'
32 config.excludedSites = ''
33 config.noSubmit = False # set to True if you just want to test the submission
34 config.mergeType = 'Default' #'None', 'Default' or 'xAOD'
35 config.destSE = '' #This is the default (anywhere), or try e.g. 'UKI-SOUTHGRID-BHAM-HEP_LOCALGROUPDISK'
36 # by default the requested memory is set to 2GB, if you need to increase this, see the option below
37 # config.memory = '4000' # NOTE grid sites with 4GB for single-core user jobs are rare
38 #config.nameShortener = MyFancyShortener # to use your own physics part shortening function - uncomment here and in the function definition above
39 
40 
41 
42 
50 
51 
52 
53 # Data - look in Data_rel21.py
54 # Change if you want TOPQ2/3/4/5
55 names = ['Data15_TOPQ1',
56  'Data16_TOPQ1',
57  'Data17_TOPQ1']
58 samples = TopExamples.grid.Samples(names)
59 TopExamples.ami.check_sample_status(samples) # Call with (samples, True) to halt on error
60 TopExamples.grid.submit(config, samples)
61 
62 
63 
64 
67 names = ['TOPQ1_ttbar_PowPy8',
68  'TOPQ1_ttbar_dil_PowPy8',
69  'TOPQ1_tchan_lep_PowPy6',
70  'TOPQ1_Wt_inc_PowPy6',
71  'TOPQ1_schan_noAllHad_PowPy6',
72  'TOPQ1_diboson_Sherpa',
73  'TOPQ1_Zjets_Sherpa221',
74  'TOPQ1_Wjets_Sherpa221',
75  'TOPQ1_ttV',
76  ]
77 samples = TopExamples.grid.Samples(names)
78 TopExamples.ami.check_sample_status(samples) # Call with (samples, True) to halt on error
79 TopExamples.grid.submit(config, samples)