ATLAS Offline Software
Functions
TIDAdataset Namespace Reference

Functions

def importRTTdatasets (jobID)
 
def main (argv)
 

Function Documentation

◆ importRTTdatasets()

def TIDAdataset.importRTTdatasets (   jobID)

Definition at line 5 of file TIDAdataset.py.

5 def importRTTdatasets(jobID):
6  from AthenaCommon.Utils.unixtools import find_datafile
7  xmlFile = find_datafile("TrigInDetValidation_TestConfiguration.xml")
8  import xml.etree.ElementTree as elemTree
9  tree = elemTree.parse(xmlFile)
10  namespace = "{http://www.hep.ucl.ac.uk/atlas/AtlasTesting/rtt}"
11  datasetList = []
12  root = tree.getroot()
13  for job in root.iter(namespace + 'athena'):
14  if job.get('userJobId') == jobID:
15  for dataset in job.findall(namespace + 'dataset'):
16  eosDataset = "root://eosatlas.cern.ch/" + dataset.text
17  datasetList.append(eosDataset)
18  return datasetList
19 #--------------------------------------------------------------------------------------------------
20 

◆ main()

def TIDAdataset.main (   argv)

Definition at line 21 of file TIDAdataset.py.

21 def main(argv):
22  for x in argv[1:]:
23  for ds in importRTTdatasets( x ):
24  print (ds)
25 
TIDAdataset.importRTTdatasets
def importRTTdatasets(jobID)
Definition: TIDAdataset.py:5
TIDAdataset.main
def main(argv)
Definition: TIDAdataset.py:21
python.Utils.unixtools.find_datafile
def find_datafile(fname, pathlist=None, access=os.R_OK)
pathresolver-like helper function --------------------------------------—
Definition: unixtools.py:67