73 |
|
compactList = lumiList.getCompactList() |
74 |
|
#print "compactList = ", compactList |
75 |
|
|
76 |
< |
totalLumiFilename = self.fjrDirectory + 'InputLumiSummaryOfTask.json' |
76 |
> |
totalLumiFilename = self.fjrDirectory + 'inputLumiSummaryOfTask.json' |
77 |
|
totalLumiSummary = open(totalLumiFilename, 'w') |
78 |
|
json.dump(compactList, totalLumiSummary) |
79 |
|
totalLumiSummary.write('\n') |
80 |
|
totalLumiSummary.close() |
81 |
+ |
msg = "Summary file of input run and lumi to be analize with this task: %s\n" % totalLumiFilename |
82 |
+ |
common.logger.info(msg) |
83 |
|
return totalLumiFilename |
84 |
|
|
85 |
|
def compareJsonFile(self,inputJsonFile): |
86 |
|
|
87 |
|
#if (self.fjrDirectory + 'lumiSummary.json'): |
88 |
|
reportFileName = self.fjrDirectory + 'lumiSummary.json' |
89 |
< |
command = 'compareJSON.py --sub ' + inputJsonFile + ' ' + reportFileName + ' ' + self.fjrDirectory + 'missingLumiSummary.json' |
89 |
> |
missingLumiFile=self.fjrDirectory + 'missingLumiSummary.json' |
90 |
> |
command = 'compareJSON.py --sub ' + inputJsonFile + ' ' + reportFileName + ' ' + missingLumiFile |
91 |
|
#common.logger.info(command) |
92 |
|
os.system(command) |
93 |
+ |
msg = "json file containing the difference in run and lumi between input and analyzed files: %s\n" % missingLumiFile |
94 |
+ |
common.logger.info(msg) |
95 |
|
return |
96 |
|
|
97 |
|
def run(self): |