707 |
|
lumisCreated = 0 |
708 |
|
list_of_blocks = [] |
709 |
|
if not self.limitJobLumis: |
710 |
< |
self.lumisPerJob = pubdata.getMaxLumis() // self.theNumberOfJobs + 1 |
710 |
> |
if self.totalNLumis > 0: |
711 |
> |
self.lumisPerJob = max(self.totalNLumis // self.theNumberOfJobs,1) |
712 |
> |
else: |
713 |
> |
self.lumisPerJob = pubdata.getMaxLumis() // self.theNumberOfJobs + 1 |
714 |
|
common.logger.info('Each job will process about %s lumis.' % |
715 |
|
self.lumisPerJob) |
716 |
|
|
725 |
|
lumis = [] |
726 |
|
lfns = [] |
727 |
|
if self.useParent==1: |
728 |
< |
parentlfns = [] |
728 |
> |
parentlfns = [] |
729 |
|
pString ="" |
730 |
|
|
731 |
|
locations = [] |
761 |
|
common.logger.debug("Files: "+fileString+" with the following parents: "+pString[:-1]) |
762 |
|
pfileString = pString[:-1] |
763 |
|
list_of_lists.append([fileString, pfileString, str(-1), str(0), lumiString]) |
764 |
< |
else: |
764 |
> |
else: |
765 |
|
list_of_lists.append([fileString, str(-1), str(0), lumiString]) |
766 |
|
list_of_blocks.append(blocks) |
767 |
|
jobDestination.append(locations) |
775 |
|
# Prepare dict output matching back to non-WMBS job creation |
776 |
|
dictOut = {} |
777 |
|
dictOut['params'] = ['InputFiles', 'MaxEvents', 'SkipEvents', 'Lumis'] |
778 |
< |
if self.useParent==1: |
778 |
> |
if self.useParent==1: |
779 |
|
dictOut['params']= ['InputFiles','ParentFiles','MaxEvents','SkipEvents','Lumis'] |
780 |
|
dictOut['args'] = list_of_lists |
781 |
|
dictOut['jobDestination'] = jobDestination |