Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
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.

00078                      :
00079  for s in s1:
00080   if s=='time':  print '%15s : %10.2F sec'%(s,(s1[s]-s0[s])) 
00081   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.

00023                                                              :
00024   from Configurables import StoreExplorerAlg
00025   alg                = StoreExplorerAlg(name)
00026   alg.Load           = load
00027   alg.PrintFreq      = freq
00028   return alg
00029 
00030 #------------------------------------------------------------------------------------------------

def IOTest::update (  )

Definition at line 66 of file IOTest.py.

00067             :
00068  statistic = {}
00069  test = open('/proc/self/io')
00070  io = test.readlines()
00071  test.close()
00072  for l in io:
00073    temp = l.split(':')
00074    statistic[temp[0]]=int(temp[1])
00075  statistic['time']=time.time()
00076  return statistic


Variable Documentation

tuple IOTest::appConf = ApplicationMgr(OutputLevel = INFO)

Definition at line 34 of file IOTest.py.

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:54 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004