The Gaudi Framework  v32r2 (46d42edc)
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()
 

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

◆ printDelta()

def IOTest.printDelta (   s0,
  s1 
)

Definition at line 84 of file IOTest.py.

84 def printDelta(s0, s1):
85  for s in s1:
86  if s == 'time':
87  print('%15s : %10.2F sec' % (s, (s1[s] - s0[s])))
88  else:
89  print('%15s : %10.2F MB' % (s, (s1[s] - s0[s]) / 1.E6))
90 
91 
def printDelta(s0, s1)
Definition: IOTest.py:84

◆ storeExplorer()

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

Definition at line 27 of file IOTest.py.

27 def storeExplorer(load=1, freq=0.0001, name='StoreExplorerAlg'):
28  from Configurables import StoreExplorerAlg
29  alg = StoreExplorerAlg(name)
30  alg.Load = load
31  alg.PrintFreq = freq
32  return alg
33 
34 
35 # -----------------------------------------------------------------------------
36 
def storeExplorer(load=1, freq=0.0001, name='StoreExplorerAlg')
Definition: IOTest.py:27
Small algorith, which traverses the data store and prints generic information about all leaves,...

◆ update()

def IOTest.update ( )

Definition at line 72 of file IOTest.py.

72 def update():
73  statistic = {}
74  test = open('/proc/self/io')
75  io = test.readlines()
76  test.close()
77  for l in io:
78  temp = l.split(':')
79  statistic[temp[0]] = int(temp[1])
80  statistic['time'] = time.time()
81  return statistic
82 
83 
def update()
Definition: IOTest.py:72

Variable Documentation

◆ appConf

IOTest.appConf = ApplicationMgr(OutputLevel=INFO)

Definition at line 40 of file IOTest.py.

◆ appMgr

IOTest.appMgr = GaudiPython.AppMgr()

Definition at line 93 of file IOTest.py.

◆ CacheBranches

IOTest.CacheBranches

Definition at line 49 of file IOTest.py.

◆ EnableFaultHandler

IOTest.EnableFaultHandler

Definition at line 47 of file IOTest.py.

◆ end

def IOTest.end = update()

Definition at line 113 of file IOTest.py.

◆ evt

IOTest.evt = appMgr.evtsvc()

Definition at line 95 of file IOTest.py.

◆ HistogramPersistency

IOTest.HistogramPersistency

Definition at line 41 of file IOTest.py.

◆ Input

IOTest.Input

Definition at line 65 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 21 of file IOTest.py.

◆ N

int IOTest.N = 0

Definition at line 100 of file IOTest.py.

◆ OutputLevel

IOTest.OutputLevel

Definition at line 69 of file IOTest.py.

◆ PrintFreq

IOTest.PrintFreq

Definition at line 68 of file IOTest.py.

◆ rc

IOTest.rc = appMgr.run(1)

Definition at line 102 of file IOTest.py.

◆ root

IOTest.root = Gaudi__RootCnvSvc('RootCnvSvc')

Definition at line 48 of file IOTest.py.

◆ RootCLID

IOTest.RootCLID

Definition at line 46 of file IOTest.py.

◆ sel

IOTest.sel = appMgr.evtsel()

Definition at line 94 of file IOTest.py.

◆ start

def IOTest.start = update()

Definition at line 98 of file IOTest.py.

◆ VetoBranches

IOTest.VetoBranches

Definition at line 50 of file IOTest.py.