Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
IOTest Namespace Reference

Functions

def storeExplorer
 
def update
 
def printDelta
 

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'
 
tuple appConf ApplicationMgr(OutputLevel = INFO)
 
tuple root Gaudi__RootCnvSvc('RootCnvSvc')
 
tuple appMgr GaudiPython.AppMgr()
 
tuple sel appMgr.evtsel()
 
tuple evt appMgr.evtsvc()
 
tuple start update()
 
int N 0
 
tuple rc appMgr.run(1)
 
tuple end update()
 

Detailed Description

   Simple test application to read LHCb dst files
   For reading other root files: change the data access
   if '/Event/Rec/Header' is not present.

   Requires: 'SetupProject LHCb'

   Script inherited from T.Ruf
   M.Frank  CERN/LHCb

Function Documentation

def IOTest.printDelta (   s0,
  s1 
)

Definition at line 77 of file IOTest.py.

77 
78 def printDelta(s0,s1):
79  for s in s1:
80  if s=='time': print '%15s : %10.2F sec'%(s,(s1[s]-s0[s]))
81  else: print '%15s : %10.2F MB'%(s,(s1[s]-s0[s])/1.E6)
def IOTest.storeExplorer (   load = 1,
  freq = 0.0001,
  name = 'StoreExplorerAlg' 
)

Definition at line 22 of file IOTest.py.

22 
23 def storeExplorer(load=1,freq=0.0001,name='StoreExplorerAlg'):
24  from Configurables import StoreExplorerAlg
25  alg = StoreExplorerAlg(name)
26  alg.Load = load
27  alg.PrintFreq = freq
28  return alg
29 
30 #------------------------------------------------------------------------------------------------
def IOTest.update ( )

Definition at line 66 of file IOTest.py.

66 
67 def update():
68  statistic = {}
69  test = open('/proc/self/io')
70  io = test.readlines()
71  test.close()
72  for l in io:
73  temp = l.split(':')
74  statistic[temp[0]]=int(temp[1])
75  statistic['time']=time.time()
76  return statistic

Variable Documentation

tuple IOTest.appConf ApplicationMgr(OutputLevel = INFO)

Definition at line 34 of file IOTest.py.

tuple IOTest.appMgr GaudiPython.AppMgr()

Definition at line 83 of file IOTest.py.

tuple IOTest.end update()

Definition at line 101 of file IOTest.py.

tuple IOTest.evt appMgr.evtsvc()

Definition at line 85 of file IOTest.py.

list 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 18 of file IOTest.py.

int IOTest.N 0

Definition at line 90 of file IOTest.py.

tuple IOTest.rc appMgr.run(1)

Definition at line 92 of file IOTest.py.

tuple IOTest.root Gaudi__RootCnvSvc('RootCnvSvc')

Definition at line 42 of file IOTest.py.

tuple IOTest.sel appMgr.evtsel()

Definition at line 84 of file IOTest.py.

tuple IOTest.start update()

Definition at line 88 of file IOTest.py.


Generated at Wed Dec 4 2013 14:33:23 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004