Main Page
Namespaces
Classes
Package Documentation
PhysicsTools
Heppy
python
utils
edmUtils.py
Go to the documentation of this file.
1
import
ROOT, subprocess, json, re
2
3
def
edmFileLs
(fname):
4
# if it's not a cms LFN and it does not have a protocol, put file: for it
5
if
not
re.match(
r"(/store|\w+:).*"
,fname): fname =
"file:"
+fname
6
out = subprocess.check_output([
'edmFileUtil'
,
'--ls'
,
'-j'
,fname])
7
jdata = json.loads(out)
8
return
jdata[0]
edmUtils.edmFileLs
def edmFileLs(fname)
Definition:
edmUtils.py:3
Generated for CMSSW Reference Manual by
1.8.11