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 19 of file cmsBatch.py.
def cmsBatch.batchScriptCERN | ( | remoteDir, | |
index | |||
) |
prepare the LSF version of the batch script, to run on LSF
Definition at line 94 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 128 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 81 of file cmsBatch.py.
References eostools.eosToLFN().
Referenced by batchScriptCERN(), and batchScriptLocal().
tuple cmsBatch.batchManager = MyBatchManager() |
Definition at line 200 of file cmsBatch.py.
tuple cmsBatch.cfgFile = open(batchManager.outputDir_+'/base_cfg.py','w') |
Definition at line 321 of file cmsBatch.py.
list cmsBatch.cfgFileName = args[1] |
Definition at line 273 of file cmsBatch.py.
tuple cmsBatch.cfo = imp.load_source("pycfg", cfgFileName, handle) |
Definition at line 287 of file cmsBatch.py.
string cmsBatch.default = "cmsRun" |
Definition at line 242 of file cmsBatch.py.
cmsBatch.doCVSTag = options.tagPackages |
Definition at line 257 of file cmsBatch.py.
tuple cmsBatch.file = open('cmsBatch.txt', 'w') |
Definition at line 203 of file cmsBatch.py.
tuple cmsBatch.fullSource = process.source.clone() |
Definition at line 296 of file cmsBatch.py.
cmsBatch.generator = False |
Definition at line 297 of file cmsBatch.py.
tuple cmsBatch.grouping = int(args[0]) |
Definition at line 271 of file cmsBatch.py.
tuple cmsBatch.handle = open(cfgFileName, 'r') |
Definition at line 286 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 241 of file cmsBatch.py.
Definition at line 304 of file cmsBatch.py.
tuple cmsBatch.log = logger( logDir ) |
Definition at line 343 of file cmsBatch.py.
string cmsBatch.logDir = 'Logger' |
Definition at line 341 of file cmsBatch.py.
tuple cmsBatch.nFiles = len(process.source.fileNames) |
Definition at line 308 of file cmsBatch.py.
Referenced by SiStripSpyMonitorModule.analyze(), FFTJetPileupProcessor.mixExtraGrid(), SiStripSpyMonitorModule.SiStripSpyMonitorModule(), and SiStripSpyMonitorModule.~SiStripSpyMonitorModule().
int cmsBatch.nJobs = grouping |
Definition at line 272 of file cmsBatch.py.
tuple cmsBatch.oldPwd = os.getcwd() |
Definition at line 339 of file cmsBatch.py.
cmsBatch.process = cfo.process |
Definition at line 288 of file cmsBatch.py.
cmsBatch.prog = options.prog |
Definition at line 256 of file cmsBatch.py.
cmsBatch.pycfg_params = options.cmdargs |
Definition at line 277 of file cmsBatch.py.
tuple cmsBatch.runningMode = None |
Definition at line 264 of file cmsBatch.py.
cmsBatch.trueArgv = sys.argv |
Definition at line 278 of file cmsBatch.py.
int cmsBatch.waitingTime = 1 |
Definition at line 327 of file cmsBatch.py.