ATLAS Offline Software
Functions | Variables
checkFileSG Namespace Reference

Functions

def toSkip (inpName)
 
def toRemove (inpVal)
 
def findMatches (iAlg, iObj, F, Fa, Fo)
 

Variables

string __version__ = "$Revision: 1.1 $"
 
string __author__ = "Ilija Vukotic <ivukotic@cern.ch>"
 
list lRemove = ['_Data','_Link','noKey','HLTAuto','CBNT_']
 
 inFN = sys.argv[1]
 
 fi = open (inFN)
 
 lines = fi.readlines()
 
 line = lines.pop(0)
 
 words = line.split(' ')
 
 nAlgs = int(words[1])
 
list algs = []
 
 nObjs = int(words[1])
 
list objs = []
 
list Falg = []
 
 LF = raw_input('Please enter algorithm or SG object name: ')
 
list ind = algs.index(Falg[0])+1
 
 rw = words.pop(0).split(':')
 
 reads = int(rw[0])
 
 writes = int(rw[1])
 

Function Documentation

◆ findMatches()

def checkFileSG.findMatches (   iAlg,
  iObj,
  F,
  Fa,
  Fo 
)

Definition at line 39 of file checkFileSG.py.

39 def findMatches(iAlg, iObj, F, Fa, Fo):
40  n=0
41  print "---- algos -----"
42  for alg in iAlg: #----------------> find matching algos
43  if alg.count(F)>0 and not toSkip(alg):
44  Fa.append(alg)
45  print alg
46  n+=1
47  print '---- objects ----'
48  for obj in iObj: #---------------> find matching objects
49  if obj.count(F)>0 and not toSkip(obj):
50  Fobj.append(obj)
51  print obj
52  n+=1
53  print '-----------------'
54  return n
55 
56 nArgs= len (sys.argv)
57 inFN=''

◆ toRemove()

def checkFileSG.toRemove (   inpVal)

Definition at line 28 of file checkFileSG.py.

28 def toRemove(inpVal):
29  result=False
30  if isNumb(inpVal)==True:
31  print "remove ", inpVal, "is a number"
32  result=True
33  for thing in lRemove:
34  if inpVal.count(thing)>0:
35  print "remove ", inpVal ,"since it contains", thing
36  result=True
37  return result
38 

◆ toSkip()

def checkFileSG.toSkip (   inpName)

Definition at line 22 of file checkFileSG.py.

22 def toSkip(inpName):
23  for comp in lRemove:
24  if inpName.count(comp)>0:
25  return True
26  return False
27 

Variable Documentation

◆ __author__

string checkFileSG.__author__ = "Ilija Vukotic <ivukotic@cern.ch>"
private

Definition at line 13 of file checkFileSG.py.

◆ __version__

string checkFileSG.__version__ = "$Revision: 1.1 $"
private

Definition at line 12 of file checkFileSG.py.

◆ algs

list checkFileSG.algs = []

Definition at line 80 of file checkFileSG.py.

◆ Falg

list checkFileSG.Falg = []

Definition at line 103 of file checkFileSG.py.

◆ fi

checkFileSG.fi = open (inFN)

Definition at line 65 of file checkFileSG.py.

◆ ind

list checkFileSG.ind = algs.index(Falg[0])+1

Definition at line 118 of file checkFileSG.py.

◆ inFN

checkFileSG.inFN = sys.argv[1]

Definition at line 63 of file checkFileSG.py.

◆ LF

checkFileSG.LF = raw_input('Please enter algorithm or SG object name: ')

Definition at line 104 of file checkFileSG.py.

◆ line

checkFileSG.line = lines.pop(0)

Definition at line 75 of file checkFileSG.py.

◆ lines

checkFileSG.lines = fi.readlines()

Definition at line 71 of file checkFileSG.py.

◆ lRemove

list checkFileSG.lRemove = ['_Data','_Link','noKey','HLTAuto','CBNT_']

Definition at line 20 of file checkFileSG.py.

◆ nAlgs

checkFileSG.nAlgs = int(words[1])

Definition at line 77 of file checkFileSG.py.

◆ nObjs

checkFileSG.nObjs = int(words[1])

Definition at line 90 of file checkFileSG.py.

◆ objs

list checkFileSG.objs = []

Definition at line 93 of file checkFileSG.py.

◆ reads

checkFileSG.reads = int(rw[0])

Definition at line 126 of file checkFileSG.py.

◆ rw

checkFileSG.rw = words.pop(0).split(':')

Definition at line 124 of file checkFileSG.py.

◆ words

checkFileSG.words = line.split(' ')

Definition at line 76 of file checkFileSG.py.

◆ writes

checkFileSG.writes = int(rw[1])

Definition at line 127 of file checkFileSG.py.

checkFileSG.toSkip
def toSkip(inpName)
Definition: checkFileSG.py:22
SGout2dot.isNumb
def isNumb(inpVal)
Definition: SGout2dot.py:48
checkFileSG.toRemove
def toRemove(inpVal)
Definition: checkFileSG.py:28
checkFileSG.findMatches
def findMatches(iAlg, iObj, F, Fa, Fo)
Definition: checkFileSG.py:39