wname += additional_name pstdhepsplit.setWorkflowName(wname) pstdhepsplit.setProdGroup(analysis+"_"+str(energy)) #Add the application res = pstdhepsplit.append(stdhepsplit) if not res['OK']: print(res['Message']) exit(1) pstdhepsplit.addFinalization(True,True,True,True) descrp = "Splitting stdhep files" if additional_name: descrp += ", %s"%additional_name pstdhepsplit.setDescription(descrp) res = pstdhepsplit.createProduction() if not res['OK']: print(res['Message']) res = pstdhepsplit.finalizeProd() if not res['OK']: print(res['Message']) exit(1) #As before: get the metadata for this production to input into the next meta = pstdhepsplit.getMetadata() if sid_sim and meta: #################### ##Define the second production (simulation). Notice the setInputDataQuery call psl = SIDProductionJob() psl.setLogLevel("verbose")
wname += '_%s' % (nameAppendix) pstdhepsplit.setWorkflowName(wname) pstdhepsplit.setProdGroup('%s_%s_%s' % (groupPrefix, process, energy)) #Add the application res = pstdhepsplit.append(stdhepsplit) if not res['OK']: print res['Message'] exit(1) pstdhepsplit.addFinalization(True, True, True, True) descrp = 'Splitting stdhep files' if nameAppendix: descrp += ', %s' % (nameAppendix) pstdhepsplit.setDescription(descrp) res = pstdhepsplit.createProduction() if not res['OK']: print res['Message'] res = pstdhepsplit.finalizeProd() if not res['OK']: print res['Message'] exit(1) # get the metadata for this production to define input for the next step meta = pstdhepsplit.getMetadata() # Define a production step for the simulation if sid_sim and meta: psl = SIDProductionJob() psl.setLogLevel('verbose') psl.setProdType('MCSimulation') res = psl.setInputDataQuery(meta)
wname += '_%s' % ( nameAppendix ) pstdhepsplit.setWorkflowName(wname) pstdhepsplit.setProdGroup( '%s_%s_%s' % ( groupPrefix, process, energy ) ) #Add the application res = pstdhepsplit.append(stdhepsplit) if not res['OK']: print res['Message'] exit(1) pstdhepsplit.addFinalization( True, True, True, True ) descrp = 'Splitting stdhep files' if nameAppendix: descrp += ', %s' % ( nameAppendix ) pstdhepsplit.setDescription(descrp) res = pstdhepsplit.createProduction() if not res['OK']: print res['Message'] res = pstdhepsplit.finalizeProd() if not res['OK']: print res['Message'] exit(1) # get the metadata for this production to define input for the next step meta = pstdhepsplit.getMetadata() # Define a production step for the simulation if sid_sim and meta: psl = SIDProductionJob() psl.setLogLevel( 'verbose' ) psl.setProdType( 'MCSimulation' )
wname += additional_name pstdhepsplit.setWorkflowName(wname) pstdhepsplit.setProdGroup(analysis + "_" + str(energy)) #Add the application res = pstdhepsplit.append(stdhepsplit) if not res['OK']: print res['Message'] exit(1) pstdhepsplit.addFinalization(True, True, True, True) descrp = "Splitting stdhep files" if additional_name: descrp += ", %s" % additional_name pstdhepsplit.setDescription(descrp) res = pstdhepsplit.createProduction() if not res['OK']: print res['Message'] res = pstdhepsplit.finalizeProd() if not res['OK']: print res['Message'] exit(1) #As before: get the metadata for this production to input into the next meta = pstdhepsplit.getMetadata() if sid_sim and meta: #################### ##Define the second production (simulation). Notice the setInputDataQuery call psl = SIDProductionJob() psl.setLogLevel("verbose") psl.setProdType('MCSimulation')