Functions | |
def | articleExist |
def | fileUpload |
def | findXrdDir |
def | lastArticle |
Variables | |
string | __version__ = "$Revision: 1.12 $" |
string | action = 'store_true' |
string | default = '' |
string | defaultEOScpCommand = 'xrdcp -np ' |
string | defaultEOSfeCommand = 'xrd eoscms existfile ' |
string | defaultEOSlistCommand = 'xrd eoscms dirlist ' |
string | defaultEOSLoadPath = 'root://eoscms/' |
string | defaultEOSmkdirCommand = 'xrd eoscms mkdir ' |
string | defaultEOSRootPath = '/eos/cms/store/lhe' |
string | dest = 'fileList' |
tuple | exeCheckIntegrity = subprocess.Popen(["/bin/sh","-c", theCheckIntegrityCommand]) |
tuple | exeCheckSum = subprocess.Popen(["/afs/cern.ch/cms/caf/bin/cms_adler32",f], stdout=subprocess.PIPE) |
tuple | exeCompression = subprocess.Popen(["/bin/sh","-c",theCompressionCommand]) |
tuple | exeFullList = subprocess.Popen(["/bin/sh","-c",theCommand]) |
tuple | exeList = subprocess.Popen(["/bin/sh","-c",theCommand], stdout=subprocess.PIPE) |
tuple | exeUpload = subprocess.Popen(["/bin/sh","-c",theCommand]) |
tuple | f = open(options.files_from) |
tuple | getCheckSum = subprocess.Popen(["awk", "{print $1}"], stdin=exeCheckSum.stdout, stdout=subprocess.PIPE) |
string | help = 'LHE local file list to be uploaded, separated by ","' |
tuple | intCode = exeCheckIntegrity.wait() |
tuple | l = l.strip() |
string | listPath = defaultEOSRootPath+'/' |
int | newArt = 0 |
tuple | oldArt = lastArticle() |
tuple | parser = optparse.OptionParser(usage) |
reallyDoIt = notoptions.dryRun | |
string | theCheckIntegrityCommand = 'xmllint -noout ' |
list | theCheckSumList = [] |
string | theCommand = defaultEOSmkdirCommand+' ' |
list | theCompressedFilesList = [] |
string | theCompressionCommand = 'xz ' |
list | theList = [] |
string | uploadPath = '' |
string | usage = 'cmsLHEtoEOSManager.py <options>' |
def cmsLHEtoEOSManager.articleExist | ( | artId | ) |
def cmsLHEtoEOSManager.fileUpload | ( | uploadPath, | |
lheList, | |||
checkSumList, | |||
reallyDoIt | |||
) |
Definition at line 52 of file cmsLHEtoEOSManager.py.
def cmsLHEtoEOSManager.findXrdDir | ( | theDirRecord | ) |
Definition at line 17 of file cmsLHEtoEOSManager.py.
References split.
Referenced by articleExist(), and lastArticle().
def cmsLHEtoEOSManager.lastArticle | ( | ) |
Definition at line 36 of file cmsLHEtoEOSManager.py.
References findXrdDir(), and bookConverter.max.
string cmsLHEtoEOSManager.__version__ = "$Revision: 1.12 $" |
Definition at line 3 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.action = 'store_true' |
Definition at line 122 of file cmsLHEtoEOSManager.py.
int cmsLHEtoEOSManager.default = '' |
Definition at line 114 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.defaultEOScpCommand = 'xrdcp -np ' |
Definition at line 15 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.defaultEOSfeCommand = 'xrd eoscms existfile ' |
Definition at line 14 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.defaultEOSlistCommand = 'xrd eoscms dirlist ' |
Definition at line 12 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.defaultEOSLoadPath = 'root://eoscms/' |
Definition at line 11 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.defaultEOSmkdirCommand = 'xrd eoscms mkdir ' |
Definition at line 13 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.defaultEOSRootPath = '/eos/cms/store/lhe' |
Definition at line 10 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.dest = 'fileList' |
Definition at line 115 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.exeCheckIntegrity = subprocess.Popen(["/bin/sh","-c", theCheckIntegrityCommand]) |
Definition at line 215 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.exeCheckSum = subprocess.Popen(["/afs/cern.ch/cms/caf/bin/cms_adler32",f], stdout=subprocess.PIPE) |
Definition at line 204 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.exeCompression = subprocess.Popen(["/bin/sh","-c",theCompressionCommand]) |
Definition at line 224 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.exeFullList = subprocess.Popen(["/bin/sh","-c",theCommand]) |
Definition at line 278 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.exeList = subprocess.Popen(["/bin/sh","-c",theCommand], stdout=subprocess.PIPE) |
Definition at line 265 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.exeUpload = subprocess.Popen(["/bin/sh","-c",theCommand]) |
Definition at line 248 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.f = open(options.files_from) |
Definition at line 184 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.getCheckSum = subprocess.Popen(["awk", "{print $1}"], stdin=exeCheckSum.stdout, stdout=subprocess.PIPE) |
Definition at line 205 of file cmsLHEtoEOSManager.py.
Definition at line 113 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.intCode = exeCheckIntegrity.wait() |
Definition at line 216 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.l = l.strip() |
Definition at line 188 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.listPath = defaultEOSRootPath+'/' |
Definition at line 263 of file cmsLHEtoEOSManager.py.
int cmsLHEtoEOSManager.newArt = 0 |
Definition at line 236 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.oldArt = lastArticle() |
Definition at line 242 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.parser = optparse.OptionParser(usage) |
Definition at line 111 of file cmsLHEtoEOSManager.py.
cmsLHEtoEOSManager.reallyDoIt = notoptions.dryRun |
Definition at line 158 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.theCheckIntegrityCommand = 'xmllint -noout ' |
Definition at line 214 of file cmsLHEtoEOSManager.py.
list cmsLHEtoEOSManager.theCheckSumList = [] |
Definition at line 194 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.theCommand = defaultEOSmkdirCommand+' ' |
Definition at line 246 of file cmsLHEtoEOSManager.py.
list cmsLHEtoEOSManager.theCompressedFilesList = [] |
Definition at line 193 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.theCompressionCommand = 'xz ' |
Definition at line 223 of file cmsLHEtoEOSManager.py.
tuple cmsLHEtoEOSManager.theList = [] |
Definition at line 178 of file cmsLHEtoEOSManager.py.
Referenced by MuonAlignment.recursiveList().
string cmsLHEtoEOSManager.uploadPath = '' |
Definition at line 237 of file cmsLHEtoEOSManager.py.
string cmsLHEtoEOSManager.usage = 'cmsLHEtoEOSManager.py <options>' |
Definition at line 110 of file cmsLHEtoEOSManager.py.