The Gaudi Framework  v36r10 (fc05264c)
IOTest Namespace Reference

Functions

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

Variables

string 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()
 
def start = update()
 
int N = 0
 
 rc = appMgr.run(1)
 
def end = update()
 

Function Documentation

◆ printDelta()

def IOTest.printDelta (   s0,
  s1 
)

Definition at line 98 of file IOTest.py.

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

◆ storeExplorer()

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

Definition at line 40 of file IOTest.py.

40 def storeExplorer(load=1, freq=0.0001, name="StoreExplorerAlg"):
41  from Configurables import StoreExplorerAlg
42 
43  alg = StoreExplorerAlg(name)
44  alg.Load = load
45  alg.PrintFreq = freq
46  return alg
47 
48 
49 # -----------------------------------------------------------------------------
50 

◆ update()

def IOTest.update ( )

Definition at line 86 of file IOTest.py.

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

Variable Documentation

◆ appConf

IOTest.appConf = ApplicationMgr(OutputLevel=INFO)

Definition at line 54 of file IOTest.py.

◆ appMgr

IOTest.appMgr = GaudiPython.AppMgr()

Definition at line 108 of file IOTest.py.

◆ CacheBranches

IOTest.CacheBranches

Definition at line 63 of file IOTest.py.

◆ EnableFaultHandler

IOTest.EnableFaultHandler

Definition at line 61 of file IOTest.py.

◆ end

def IOTest.end = update()

Definition at line 128 of file IOTest.py.

◆ evt

IOTest.evt = appMgr.evtsvc()

Definition at line 110 of file IOTest.py.

◆ HistogramPersistency

IOTest.HistogramPersistency

Definition at line 55 of file IOTest.py.

◆ Input

IOTest.Input

Definition at line 81 of file IOTest.py.

◆ input_file

string 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 34 of file IOTest.py.

◆ N

int IOTest.N = 0

Definition at line 115 of file IOTest.py.

◆ OutputLevel

IOTest.OutputLevel

Definition at line 83 of file IOTest.py.

◆ PrintFreq

IOTest.PrintFreq

Definition at line 82 of file IOTest.py.

◆ rc

IOTest.rc = appMgr.run(1)

Definition at line 117 of file IOTest.py.

◆ root

IOTest.root = Gaudi__RootCnvSvc("RootCnvSvc")

Definition at line 62 of file IOTest.py.

◆ RootCLID

IOTest.RootCLID

Definition at line 60 of file IOTest.py.

◆ sel

IOTest.sel = appMgr.evtsel()

Definition at line 109 of file IOTest.py.

◆ start

def IOTest.start = update()

Definition at line 113 of file IOTest.py.

◆ VetoBranches

IOTest.VetoBranches

Definition at line 64 of file IOTest.py.

IOTest.printDelta
def printDelta(s0, s1)
Definition: IOTest.py:98
StoreExplorerAlg
Definition: StoreExplorerAlg.cpp:42
IOTest.storeExplorer
def storeExplorer(load=1, freq=0.0001, name="StoreExplorerAlg")
Definition: IOTest.py:40
IOTest.update
def update()
Definition: IOTest.py:86