Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Utilities
ReleaseScripts
python
cmsCodeRules
pickleFileCreater.py
Go to the documentation of this file.
1
from
__future__
import
print_function
2
__author__=
"Aurelija"
3
__date__ =
"$2010-07-26 12.51.12$"
4
5
from
os.path
import
join
6
import
pickle
7
import
os
8
9
def
createPickleFile
(fileName, listRule, path = os.getcwd()):
10
11
dict = {}
12
13
try
:
14
for
filePath, lines
in
listRule:
15
dict[filePath] = lines
16
file = open(
join
(path, fileName),
'w'
)
17
pickle.dump(dict, file)
18
file.close()
19
except
TypeError:
20
print
(
'Wrong types'
)
21
except
IOError:
22
print
(
'Cannot open %s file'
%fileName)
pickleFileCreater.createPickleFile
def createPickleFile(fileName, listRule, path=os.getcwd())
Definition:
pickleFileCreater.py:9
join
static std::string join(char **cmd)
Definition:
RemoteFile.cc:17
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition:
Utilities.cc:46
Generated for CMSSW Reference Manual by
1.8.16