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