ATLAS Offline Software
01SubmitToGrid_Tutorial.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Copyright (C) 2023 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 config = TopExamples.grid.Config()
10 config.code = 'top-xaod'
11 config.settingsFile = 'custom-saver-test.txt'
12 config.gridUsername = 'username'
13 config.suffix = '04-05-23'
14 config.excludedSites = ''
15 config.noSubmit = False # set to True if you just want to test the submission
16 config.CMake = True # need to set to True for CMake-based releases (release 22)
17 config.mergeType = 'Default' #'None', 'Default' or 'xAOD'
18 config.destSE = '' #This is the default (anywhere), or try e.g. 'UKI-SOUTHGRID-BHAM-HEP_LOCALGROUPDISK'
19 
20 
21 
25 names = [
26  'TOPQ1_ttbar_PowPy8',
27 # 'Data16_TOPQ1',
28 ]
29 
30 samples = TopExamples.grid.Samples(names)
31 TopExamples.grid.submit(config, samples)
32