Classes | |
class | CmsBatchException |
class | MyBatchManager |
Functions | |
def | batchScriptCCIN2P3 |
def | batchScriptCERN |
def | batchScriptLocal |
def | rootfiles_to_eos_script |
Variables | |
tuple | batchManager = MyBatchManager() |
tuple | cfgFile = open(batchManager.outputDir_+'/base_cfg.py','w') |
list | cfgFileName = args[1] |
tuple | cfo = imp.load_source("pycfg", cfgFileName, handle) |
string | default = "cmsRun" |
doCVSTag = options.tagPackages | |
tuple | file = open('cmsBatch.txt', 'w') |
tuple | fullSource = process.source.clone() |
generator = False | |
tuple | grouping = int(args[0]) |
tuple | handle = open(cfgFileName, 'r') |
string | help = "program to run on your cfg file" |
batchManager.parser_.add_option("-b", "--batch", dest="batch", help="batch command. default is: 'bsub -q 8nh < batchScript.sh'. You can also use 'nohup < ./batchScript.sh &' to run locally.", default="bsub -q 8nh < .batchScript.sh") More... | |
list | listOfValues = [i+1 for i in range( nJobs )] |
tuple | log = logger( logDir ) |
string | logDir = 'Logger' |
tuple | nFiles = len(process.source.fileNames) |
nJobs = grouping | |
tuple | oldPwd = os.getcwd() |
process = cfo.process | |
prog = options.prog | |
pycfg_params = options.cmdargs | |
runningMode = None | |
trueArgv = sys.argv | |
int | waitingTime = 1 |
def cmsBatch.batchScriptCCIN2P3 | ( | ) |
Definition at line 17 of file cmsBatch.py.
def cmsBatch.batchScriptCERN | ( | remoteDir, | |
index | |||
) |
prepare the LSF version of the batch script, to run on LSF
Definition at line 92 of file cmsBatch.py.
References rootfiles_to_eos_script().
Referenced by cmsBatch.MyBatchManager.PrepareJobUser().
def cmsBatch.batchScriptLocal | ( | remoteDir, | |
index | |||
) |
prepare a local version of the batch script, to run using nohup
Definition at line 126 of file cmsBatch.py.
References rootfiles_to_eos_script().
Referenced by cmsBatch.MyBatchManager.PrepareJobUser().
def cmsBatch.rootfiles_to_eos_script | ( | index, | |
remoteDir | |||
) |
Definition at line 79 of file cmsBatch.py.
References eostools.eosToLFN().
Referenced by batchScriptCERN(), and batchScriptLocal().
tuple cmsBatch.batchManager = MyBatchManager() |
Definition at line 198 of file cmsBatch.py.
tuple cmsBatch.cfgFile = open(batchManager.outputDir_+'/base_cfg.py','w') |
Definition at line 319 of file cmsBatch.py.
list cmsBatch.cfgFileName = args[1] |
Definition at line 271 of file cmsBatch.py.
tuple cmsBatch.cfo = imp.load_source("pycfg", cfgFileName, handle) |
Definition at line 285 of file cmsBatch.py.
string cmsBatch.default = "cmsRun" |
Definition at line 240 of file cmsBatch.py.
cmsBatch.doCVSTag = options.tagPackages |
Definition at line 255 of file cmsBatch.py.
tuple cmsBatch.file = open('cmsBatch.txt', 'w') |
Definition at line 201 of file cmsBatch.py.
tuple cmsBatch.fullSource = process.source.clone() |
Definition at line 294 of file cmsBatch.py.
cmsBatch.generator = False |
Definition at line 295 of file cmsBatch.py.
tuple cmsBatch.grouping = int(args[0]) |
Definition at line 269 of file cmsBatch.py.
tuple cmsBatch.handle = open(cfgFileName, 'r') |
Definition at line 284 of file cmsBatch.py.
batchManager.parser_.add_option("-b", "--batch", dest="batch", help="batch command. default is: 'bsub -q 8nh < batchScript.sh'. You can also use 'nohup < ./batchScript.sh &' to run locally.", default="bsub -q 8nh < .batchScript.sh")
Definition at line 239 of file cmsBatch.py.
Definition at line 302 of file cmsBatch.py.
tuple cmsBatch.log = logger( logDir ) |
Definition at line 341 of file cmsBatch.py.
string cmsBatch.logDir = 'Logger' |
Definition at line 339 of file cmsBatch.py.
tuple cmsBatch.nFiles = len(process.source.fileNames) |
Definition at line 306 of file cmsBatch.py.
Referenced by SiStripSpyMonitorModule.analyze(), FFTJetPileupProcessor.mixExtraGrid(), SiStripSpyMonitorModule.SiStripSpyMonitorModule(), and SiStripSpyMonitorModule.~SiStripSpyMonitorModule().
int cmsBatch.nJobs = grouping |
Definition at line 270 of file cmsBatch.py.
tuple cmsBatch.oldPwd = os.getcwd() |
Definition at line 337 of file cmsBatch.py.
cmsBatch.process = cfo.process |
Definition at line 286 of file cmsBatch.py.
cmsBatch.prog = options.prog |
Definition at line 254 of file cmsBatch.py.
cmsBatch.pycfg_params = options.cmdargs |
Definition at line 275 of file cmsBatch.py.
tuple cmsBatch.runningMode = None |
Definition at line 262 of file cmsBatch.py.
cmsBatch.trueArgv = sys.argv |
Definition at line 276 of file cmsBatch.py.
int cmsBatch.waitingTime = 1 |
Definition at line 325 of file cmsBatch.py.