CMS 3D CMS Logo

Classes | Functions
uploadPayloads Namespace Reference

Classes

class  FileObj
 

Functions

def main ()
 

Function Documentation

◆ main()

def uploadPayloads.main ( )

Definition at line 14 of file uploadPayloads.py.

14 def main():
15  payloadDir = "./Payloads_Repro2010Nov09/"
16  aCommand = "ls " + payloadDir + " | grep BeamSpotObjects_2009_LumiBased_ | grep txt"
17  output = commands.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 

References print(), submitPVValidationJobs.split(), and CommonMethods.uploadSqliteFile().

uploadPayloads.main
def main()
Definition: uploadPayloads.py:14
CommonMethods.uploadSqliteFile
def uploadSqliteFile(sqliteFileDirName, sqliteFileName, dropbox="/DropBox")
Definition: CommonMethods.py:938
submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46