Exemplo n.º 1
0
 def run(self, input):
     from CMGTools.Production.addToDatasets import addToDatasets
     name = "%s/%s" % (self.dataset,self.options.tier)
     name = name.replace('//','/')
     user = self.options.batch_user
     added = addToDatasets(name, user = user)
     return {'Added':added, 'Name':name, 'User':user}       
Exemplo n.º 2
0
 def run(self, input):
     from CMGTools.Production.addToDatasets import addToDatasets
     name = "%s/%s" % (self.dataset,self.options.tier)
     name = name.replace('//','/')
     user = self.options.batch_user
     added = addToDatasets(name, user = user)
     return {'Added':added, 'Name':name, 'User':user}       
Exemplo n.º 3
0
    # find and copy json file
    match = patternLumiMask.match( line )
    if match != None:
        json  = match.group(1)
        newJson = ldir + "/" + match.group(1)
        os.system('cp %s %s' % (json, newJson) )
   
    newCrab.write( line )

newCrab.write('[CMSSW]\n')
newCrab.write('datasetpath = '+sampleName+'\n')

newCrab.write('[USER]\n')
newCrab.write('user_remote_dir = %s\n' % castortools.castorToLFN(cdir)  )

addToDatasets( sampleNameDir , user = options.user) 

from logger import logger

oldPwd = os.getcwd()
os.chdir(ldir)
logDir = 'Logger'
os.system( 'mkdir ' + logDir )
log = logger( logDir )
log.logCMSSW()
#COLIN not so elegant... but tar is behaving in a strange way.
log.addFile( oldPwd + '/' + pset )
log.addFile( oldPwd + '/' + 'crab.cfg' )
log.stageOut( cdir )

print ''
Exemplo n.º 4
0
    # find and copy json file
    match = patternLumiMask.match(line)
    if match != None:
        json = match.group(1)
        newJson = ldir + "/" + match.group(1)
        os.system('cp %s %s' % (json, newJson))

    newCrab.write(line)

newCrab.write('[CMSSW]\n')
newCrab.write('datasetpath = ' + sampleName + '\n')

newCrab.write('[USER]\n')
newCrab.write('user_remote_dir = %s\n' % castortools.castorToLFN(cdir))

addToDatasets(sampleNameDir, user=options.user)

from logger import logger

oldPwd = os.getcwd()
os.chdir(ldir)
logDir = 'Logger'
os.system('mkdir ' + logDir)
log = logger(logDir)
log.logCMSSW()
#COLIN not so elegant... but tar is behaving in a strange way.
log.addFile(oldPwd + '/' + pset)
log.addFile(oldPwd + '/' + 'crab.cfg')
log.stageOut(cdir)

print ''