1 from crabWrap
import crabCreate,crabSubmit,crabWatch,getOutput
2 from tools
import replaceTemplate
8 def __init__(self, dir, crab_cfg, pset=None, pset_name='mypset.py'):
20 if not os.path.exists(dir): os.makedirs(dir)
24 self.crab_cfg.set(
'CMSSW',
'pset',self.
pset_name)
28 self.crab_cfg.write(open(dir +
'/' + self.
crabCfg_name,
'w'))
35 if not self.
project:
raise RuntimeError
39 if not self.
project:
raise RuntimeError
def crabCreate(dir='.', crabCfg_name='crab.cfg')
def initializeTask(self, dir)
def __init__(self, dir, crab_cfg, pset=None, pset_name='mypset.py')