25 |
|
""" |
26 |
|
|
27 |
|
try: |
28 |
< |
userprocessedData = cfg_params['USER.publish_data_name'] |
28 |
> |
self.userprocessedData = cfg_params['USER.publish_data_name'] |
29 |
|
self.processedData = None |
30 |
|
except KeyError: |
31 |
|
raise CrabException('Cannot publish output data, because you did not specify USER.publish_data_name parameter in the crab.cfg file') |
143 |
|
#### for production data |
144 |
|
self.processedData = dataset['ProcessedDataset'] |
145 |
|
if (dataset['PrimaryDataset'] == 'null'): |
146 |
< |
dataset['PrimaryDataset'] = dataset['ProcessedDataset'] |
147 |
< |
else: # add parentage from input dataset |
146 |
> |
#dataset['PrimaryDataset'] = dataset['ProcessedDataset'] |
147 |
> |
dataset['PrimaryDataset'] = self.userprocessedData |
148 |
> |
#else: # add parentage from input dataset |
149 |
> |
elif self.datasetpath.upper() != 'NONE': |
150 |
|
dataset['ParentDataset']= self.datasetpath |
151 |
|
|
152 |
|
dataset['PSetContent']=self.content |
198 |
|
# lumi info are now in run hash |
199 |
|
file.runs = {} |
200 |
|
for ds in file.dataset: |
199 |
– |
### FEDE FOR NEW LFN ### |
200 |
– |
#ds['ProcessedDataset']=procdataset |
201 |
– |
######################## |
201 |
|
### Fede for production |
202 |
|
if (ds['PrimaryDataset'] == 'null'): |
203 |
< |
ds['PrimaryDataset']=procdataset |
203 |
> |
#ds['PrimaryDataset']=procdataset |
204 |
> |
ds['PrimaryDataset']=self.userprocessedData |
205 |
|
filestopublish.append(file) |
206 |
|
else: |
207 |
|
self.noEventsFiles.append(file['LFN']) |
231 |
|
good_list=[] |
232 |
|
for fjr in file_list: |
233 |
|
reports = readJobReport(fjr) |
234 |
< |
if reports[0].status == "Success": |
235 |
< |
good_list.append(fjr) |
234 |
> |
if len(reports)>0: |
235 |
> |
if reports[0].status == "Success": |
236 |
> |
good_list.append(fjr) |
237 |
|
file_list=good_list |
238 |
|
## |
239 |
|
common.logger.debug(6, "file_list = "+str(file_list)) |