ATLAS Offline Software
Functions | Variables
SGout2dot Namespace Reference

Functions

def chLabel (inpVal)
 
def isNumb (inpVal)
 
def toRemove (inpVal)
 

Variables

string __version__ = "$Revision: 1.2 $"
 
string __author__ = "Ilija Vukotic <ivukotic@cern.ch>"
 
bool debug = True
 
bool debugRemove = False
 
bool drawNReadWrite = False
 
list lRemove = []
 
 inFN = sys.argv[1]
 
 outFN = sys.argv[2]
 
 fi = open (inFN)
 
 fo = open (outFN, 'w' )
 
 lines = fi.readlines()
 
 line = lines.pop(0)
 
 words = line.split(' ')
 
 nAlgs = int(words[1])
 
list algs = []
 
int nGoodAlgs = 0
 
 nObjs = int(words[1])
 
list objs = []
 
int nGoodObjs = 0
 
dictionary objsWrittenByAlg = {}
 
dictionary objsReadByAlg = {}
 
dictionary algsWritingObj = {}
 
dictionary algsReadingObj = {}
 
 rw = words.pop(0).split(':')
 
 reads = int(rw[0])
 
 writes = int(rw[1])
 
string towrite = 'a_%(a)s [label=\"%(a)s\"];\n'%{'a':chLabel(alg),'b':alg}
 
 obj = objrec[0]
 
 alg = algrec[0]
 

Function Documentation

◆ chLabel()

def SGout2dot.chLabel (   inpVal)

Definition at line 37 of file SGout2dot.py.

37 def chLabel(inpVal):
38  result=inpVal
39  result=result.replace('>','_GT_')
40  result=result.replace('<','_LT_')
41  result=result.replace('::','_')
42  result=result.replace('.','_')
43  result=result.replace('+','_')
44  return result
45 
46 
47 

◆ isNumb()

def SGout2dot.isNumb (   inpVal)

Definition at line 48 of file SGout2dot.py.

48 def isNumb(inpVal):
49  result = False
50  try:
51  stripped = str(int(inpVal))
52  result=True
53  except:
54  result=False
55  return result
56 

◆ toRemove()

def SGout2dot.toRemove (   inpVal)

Definition at line 57 of file SGout2dot.py.

57 def toRemove(inpVal):
58  result=False
59  if isNumb(inpVal)==True:
60  if debugRemove:
61  print "remove ", inpVal, "is a number"
62  result=True
63  for thing in lRemove:
64  if inpVal.count(thing)>0:
65  if debugRemove:
66  print "remove ", inpVal ,"since it contains", thing
67  result=True
68  return result
69 
70 nArgs= len (sys.argv)
71 outFN="dot.dot"
72 inFN=""

Variable Documentation

◆ __author__

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

Definition at line 16 of file SGout2dot.py.

◆ __version__

string SGout2dot.__version__ = "$Revision: 1.2 $"
private

Definition at line 15 of file SGout2dot.py.

◆ alg

SGout2dot.alg = algrec[0]

Definition at line 243 of file SGout2dot.py.

◆ algs

list SGout2dot.algs = []

Definition at line 101 of file SGout2dot.py.

◆ algsReadingObj

dictionary SGout2dot.algsReadingObj = {}

Definition at line 156 of file SGout2dot.py.

◆ algsWritingObj

dictionary SGout2dot.algsWritingObj = {}

Definition at line 155 of file SGout2dot.py.

◆ debug

bool SGout2dot.debug = True

Definition at line 24 of file SGout2dot.py.

◆ debugRemove

bool SGout2dot.debugRemove = False

Definition at line 25 of file SGout2dot.py.

◆ drawNReadWrite

bool SGout2dot.drawNReadWrite = False

Definition at line 26 of file SGout2dot.py.

◆ fi

SGout2dot.fi = open (inFN)

Definition at line 83 of file SGout2dot.py.

◆ fo

SGout2dot.fo = open (outFN, 'w' )

Definition at line 88 of file SGout2dot.py.

◆ inFN

SGout2dot.inFN = sys.argv[1]

Definition at line 78 of file SGout2dot.py.

◆ line

SGout2dot.line = lines.pop(0)

Definition at line 94 of file SGout2dot.py.

◆ lines

SGout2dot.lines = fi.readlines()

Definition at line 90 of file SGout2dot.py.

◆ lRemove

list SGout2dot.lRemove = []

Definition at line 30 of file SGout2dot.py.

◆ nAlgs

SGout2dot.nAlgs = int(words[1])

Definition at line 96 of file SGout2dot.py.

◆ nGoodAlgs

int SGout2dot.nGoodAlgs = 0

Definition at line 102 of file SGout2dot.py.

◆ nGoodObjs

int SGout2dot.nGoodObjs = 0

Definition at line 125 of file SGout2dot.py.

◆ nObjs

SGout2dot.nObjs = int(words[1])

Definition at line 119 of file SGout2dot.py.

◆ obj

SGout2dot.obj = objrec[0]

Definition at line 222 of file SGout2dot.py.

◆ objs

list SGout2dot.objs = []

Definition at line 124 of file SGout2dot.py.

◆ objsReadByAlg

dictionary SGout2dot.objsReadByAlg = {}

Definition at line 154 of file SGout2dot.py.

◆ objsWrittenByAlg

dictionary SGout2dot.objsWrittenByAlg = {}

Definition at line 153 of file SGout2dot.py.

◆ outFN

SGout2dot.outFN = sys.argv[2]

Definition at line 81 of file SGout2dot.py.

◆ reads

SGout2dot.reads = int(rw[0])

Definition at line 162 of file SGout2dot.py.

◆ rw

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

Definition at line 161 of file SGout2dot.py.

◆ towrite

string SGout2dot.towrite = 'a_%(a)s [label=\"%(a)s\"];\n'%{'a':chLabel(alg),'b':alg}

Definition at line 191 of file SGout2dot.py.

◆ words

SGout2dot.words = line.split(' ')

Definition at line 95 of file SGout2dot.py.

◆ writes

SGout2dot.writes = int(rw[1])

Definition at line 163 of file SGout2dot.py.

CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
SGout2dot.chLabel
def chLabel(inpVal)
Definition: SGout2dot.py:37
SGout2dot.toRemove
def toRemove(inpVal)
Definition: SGout2dot.py:57
SGout2dot.isNumb
def isNumb(inpVal)
Definition: SGout2dot.py:48
str
Definition: BTagTrackIpAccessor.cxx:11