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 12 of file testIfMatch.py.

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

◆ getTaskNamesFromCastor()

def python.testIfMatch.getTaskNamesFromCastor ( )

Definition at line 25 of file testIfMatch.py.

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

Variable Documentation

◆ end

python.testIfMatch.end

Definition at line 83 of file testIfMatch.py.

◆ matrix

python.testIfMatch.matrix

Definition at line 65 of file testIfMatch.py.

◆ outDict

python.testIfMatch.outDict

Definition at line 53 of file testIfMatch.py.

◆ tag

python.testIfMatch.tag

Definition at line 50 of file testIfMatch.py.

◆ taskNames

python.testIfMatch.taskNames

Definition at line 59 of file testIfMatch.py.

python.testIfMatch.getTaskNamesFromCastor
def getTaskNamesFromCastor()
Definition: testIfMatch.py:25
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:12