Contact:
Email: <hongbo.zhu AT desy DOT de>
Research Topics
Electron ID & Trigger Efficiency
Useful Links
Tips
Authentication
Kerberos authentication
kinit -5 username@CERN.CH [Note CERN.CH in uppercase] klog username [If you want to access your AFS files as well]
Event Counting
Count number of events in a single pool.root file
checkFile.py
or all pool.root files under a directory
countEvents.py
### entries adder ### import PyUtils.PoolFile as PF PF.PoolOpts.FAST_MODE = True from glob import glob fnames = glob('/some/directory/*.pool.root') summary = {} for fname in fnames: summary[fname] = PF.PoolFile(fname).dataHeader.nEntries print "all entries:",sum(summary.values()) ### EOF ###