The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
IOTest Namespace Reference

Functions

 storeExplorer (load=1, freq=0.0001, name="StoreExplorerAlg")
 
 update ()
 
 printDelta (s0, s1)
 

Variables

str input_file = "castor://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/LHCb/Collision11/SEMILEPTONIC.DST/00012569/0000/00012569_00000004_1.semileptonic.dst?svcClass=lhcbdisk"
 
 appConf = ApplicationMgr(OutputLevel=INFO)
 
 HistogramPersistency
 
 RootCLID
 
 EnableFaultHandler
 
 root = Gaudi__RootCnvSvc("RootCnvSvc")
 
 CacheBranches
 
 VetoBranches
 
 Input
 
 PrintFreq
 
 OutputLevel
 
 appMgr = GaudiPython.AppMgr()
 
 sel = appMgr.evtsel()
 
 evt = appMgr.evtsvc()
 
 start = update()
 
int N = 0
 
 rc = appMgr.run(1)
 
 end = update()
 

Function Documentation

◆ printDelta()

IOTest.printDelta ( s0,
s1 )

Definition at line 95 of file IOTest.py.

95def printDelta(s0, s1):
96 for s in s1:
97 if s == "time":
98 print("%15s : %10.2F sec" % (s, (s1[s] - s0[s])))
99 else:
100 print("%15s : %10.2F MB" % (s, (s1[s] - s0[s]) / 1.0e6))
101
102

◆ storeExplorer()

IOTest.storeExplorer ( load = 1,
freq = 0.0001,
name = "StoreExplorerAlg" )

Definition at line 37 of file IOTest.py.

37def storeExplorer(load=1, freq=0.0001, name="StoreExplorerAlg"):
38 from Configurables import StoreExplorerAlg
39
40 alg = StoreExplorerAlg(name)
41 alg.Load = load
42 alg.PrintFreq = freq
43 return alg
44
45
46# -----------------------------------------------------------------------------
47
Small algorith, which traverses the data store and prints generic information about all leaves,...

◆ update()

IOTest.update ( )

Definition at line 83 of file IOTest.py.

83def update():
84 statistic = {}
85 test = open("/proc/self/io")
86 io = test.readlines()
87 test.close()
88 for l in io:
89 temp = l.split(":")
90 statistic[temp[0]] = int(temp[1])
91 statistic["time"] = time.time()
92 return statistic
93
94

Variable Documentation

◆ appConf

IOTest.appConf = ApplicationMgr(OutputLevel=INFO)

Definition at line 51 of file IOTest.py.

◆ appMgr

IOTest.appMgr = GaudiPython.AppMgr()

Definition at line 105 of file IOTest.py.

◆ CacheBranches

IOTest.CacheBranches

Definition at line 60 of file IOTest.py.

◆ EnableFaultHandler

IOTest.EnableFaultHandler

Definition at line 58 of file IOTest.py.

◆ end

IOTest.end = update()

Definition at line 125 of file IOTest.py.

◆ evt

IOTest.evt = appMgr.evtsvc()

Definition at line 107 of file IOTest.py.

◆ HistogramPersistency

IOTest.HistogramPersistency

Definition at line 52 of file IOTest.py.

◆ Input

IOTest.Input

Definition at line 78 of file IOTest.py.

◆ input_file

str IOTest.input_file = "castor://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/LHCb/Collision11/SEMILEPTONIC.DST/00012569/0000/00012569_00000004_1.semileptonic.dst?svcClass=lhcbdisk"

Definition at line 31 of file IOTest.py.

◆ N

int IOTest.N = 0

Definition at line 112 of file IOTest.py.

◆ OutputLevel

IOTest.OutputLevel

Definition at line 80 of file IOTest.py.

◆ PrintFreq

IOTest.PrintFreq

Definition at line 79 of file IOTest.py.

◆ rc

IOTest.rc = appMgr.run(1)

Definition at line 114 of file IOTest.py.

◆ root

IOTest.root = Gaudi__RootCnvSvc("RootCnvSvc")

Definition at line 59 of file IOTest.py.

◆ RootCLID

IOTest.RootCLID

Definition at line 57 of file IOTest.py.

◆ sel

IOTest.sel = appMgr.evtsel()

Definition at line 106 of file IOTest.py.

◆ start

IOTest.start = update()

Definition at line 110 of file IOTest.py.

◆ VetoBranches

IOTest.VetoBranches

Definition at line 61 of file IOTest.py.