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
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
| 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' |