ATLAS Offline Software
Functions | Variables
python.testIfMatch Namespace Reference

Functions

def getOutputDictFromAMI (tag)
 
def getTaskNamesFromCastor ()
 

Variables

 tag
 
 outDict
 
 taskNames
 
 matrix
 
 end
 

Function Documentation

◆ getOutputDictFromAMI()

def python.testIfMatch.getOutputDictFromAMI (   tag)

Definition at line 13 of file testIfMatch.py.

13 def getOutputDictFromAMI(tag):
14  try:
15  from pyAMI.pyAMI import AMI
16  amires = AMI().execute(["ListConfigurationTag","-configTag=%s" % tag])
17  d = amires.getDict()['rowset_%s'%tag][tag]
18  outDict = eval(d.get('outputs','None'))
19  except Exception as e:
20  print ("Failed to get OutputDict from AMI")
21  print (e)
22  return None
23  return outDict
24 
25 

◆ getTaskNamesFromCastor()

def python.testIfMatch.getTaskNamesFromCastor ( )

Definition at line 26 of file testIfMatch.py.

27  #cdirs=("/castor/cern.ch/grid/atlas/tzero/prod1/perm/data11_7TeV","/castor/cern.ch/grid/atlas/tzero/prod1/perm/data11_cos")
28  cdirs=("/castor/cern.ch/grid/atlas/tzero/prod1/perm/data11_hi","/castor/cern.ch/grid/atlas/tzero/prod1/perm/data11_7TeV")
29 
30  tasknames=set()
31  for d in cdirs:
32  proj=d.split("/")[-1]
33  cmd="nsls "+d
34  (stat,out)=subprocess.getstatusoutput(cmd)
35  if stat!=0:
36  print ("ERROR, could not get list of streams from castor directory",d)
37  print (out)
38  return None
39  for stream in out.split(os.linesep):
40  tasknames.add(proj+".00000000."+stream+".merge.RAW")
41  return tasknames
42 
43 
44 

Variable Documentation

◆ end

python.testIfMatch.end

Definition at line 84 of file testIfMatch.py.

◆ matrix

python.testIfMatch.matrix

Definition at line 66 of file testIfMatch.py.

◆ outDict

python.testIfMatch.outDict

Definition at line 54 of file testIfMatch.py.

◆ tag

python.testIfMatch.tag

Definition at line 51 of file testIfMatch.py.

◆ taskNames

python.testIfMatch.taskNames

Definition at line 60 of file testIfMatch.py.

python.testIfMatch.getTaskNamesFromCastor
def getTaskNamesFromCastor()
Definition: testIfMatch.py:26
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
python.testIfMatch.getOutputDictFromAMI
def getOutputDictFromAMI(tag)
Definition: testIfMatch.py:13