ATLAS Offline Software
Functions
TIDAdataset Namespace Reference

Functions

def importRTTdatasets (jobID)
 
def main (argv)
 

Function Documentation

◆ importRTTdatasets()

def TIDAdataset.importRTTdatasets (   jobID)

Definition at line 6 of file TIDAdataset.py.

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

◆ main()

def TIDAdataset.main (   argv)

Definition at line 22 of file TIDAdataset.py.

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