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
n
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
c
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
RecoVertex
BeamSpotProducer
scripts
copyFromCastor.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
import
sys,os
3
from
CommonMethods
import
*
4
def
main
():
5
if
len(sys.argv) < 3:
6
error =
"Usage: cpFromCastor fromDir toDir (optional filter)"
7
exit
(error)
8
user = os.getenv(
"USER"
)
9
castorDir =
"/castor/cern.ch/cms/store/caf/user/"
+ user +
"/"
+ sys.argv[1] +
"/"
10
filter =
""
11
if
len(sys.argv) > 3:
12
filter = sys.argv[3]
13
fileList =
ls
(castorDir,filter)
14
destDir = sys.argv[2]
15
copiedFiles =
cp
(castorDir,destDir,fileList)
16
17
if
len(copiedFiles) != len(fileList):
18
error =
"ERROR: I couldn't copy all files from castor"
19
exit
(error)
20
21
if
__name__ ==
"__main__"
:
22
main
()
copyFromCastor.main
def main()
Definition:
copyFromCastor.py:4
hgcal_conditions::parameters
Definition:
HGCConditions.h:86
eostools.ls
def ls(path, rec=False)
Definition:
eostools.py:349
main
Definition:
main.py:1
beamvalidation.exit
def exit(msg="")
Definition:
beamvalidation.py:52
Generated for CMSSW Reference Manual by
1.8.14