Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoVertex
BeamSpotProducer
scripts
uploadPayloads.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
import
sys,os,commands
3
from
CommonMethods
import
*
4
5
class
FileObj
:
6
def
__init__
(self):
7
self.
run
= 0
8
self.
iovSince
= 0
9
self.
fileName
=
''
10
11
12
13
def
main
():
14
payloadDir =
"./Payloads_Repro2010Nov09/"
15
aCommand =
"ls "
+ payloadDir +
" | grep BeamSpotObjects_2009_LumiBased_ | grep txt"
16
output = commands.getstatusoutput( aCommand )
17
listOfFiles = output[1].
split
(
'\n'
)
18
# print listOfFiles
19
dropbox =
"/DropBox"
20
for
fileName
in
listOfFiles:
21
fileNameRoot = fileName[0:len(fileName)-4]
22
print
fileNameRoot
23
uploadSqliteFile
(payloadDir, fileNameRoot, dropbox)
24
25
26
27
28
if
__name__ ==
"__main__"
:
29
main
()
uploadPayloads.FileObj.fileName
fileName
Definition:
uploadPayloads.py:9
CommonMethods.uploadSqliteFile
def uploadSqliteFile
Definition:
CommonMethods.py:936
uploadPayloads.FileObj.run
run
Definition:
uploadPayloads.py:7
uploadPayloads.main
def main
Definition:
uploadPayloads.py:13
uploadPayloads.FileObj
Definition:
uploadPayloads.py:5
uploadPayloads.FileObj.__init__
def __init__
Definition:
uploadPayloads.py:6
main
Definition:
main.py:1
uploadPayloads.FileObj.iovSince
iovSince
Definition:
uploadPayloads.py:8
split
double split
Definition:
MVATrainer.cc:139
Generated for CMSSW Reference Manual by
1.8.5