Skip to content
Snippets Groups Projects
Commit 8df8cc3b authored by Aleksandra Poreba's avatar Aleksandra Poreba
Browse files

Fix python warnings

parent ec89dfca
No related branches found
No related tags found
1 merge request!45366TrigCost: Add Sequence cost summary
...@@ -50,8 +50,8 @@ class Sequence_HLT_TableConstructor(TableConstructorBase): ...@@ -50,8 +50,8 @@ class Sequence_HLT_TableConstructor(TableConstructorBase):
def fillColumns(self, histName): def fillColumns(self, histName):
weightedEvents = self.getHistogram("Sequence_perEvent").Integral() weightedEvents = self.getHistogram("Sequence_perEvent").Integral()
weightedCalls = self.getXWeightedIntegral("Sequence_perEvent", isLog=False) #weightedCalls = self.getXWeightedIntegral("Sequence_perEvent", isLog=False)
slowCalls = self.getHistogram("Time_perCall").Integral(self.getHistogram("Time_perCall").FindBin(1000.), self.getHistogram("Time_perCall").GetNbinsX()) #slowCalls = self.getHistogram("Time_perCall").Integral(self.getHistogram("Time_perCall").FindBin(1000.), self.getHistogram("Time_perCall").GetNbinsX())
self.columns["name"].addValue(histName) self.columns["name"].addValue(histName)
self.columns["events"].addValue(self.getHistogram("Sequence_perEvent").GetEntries()) self.columns["events"].addValue(self.getHistogram("Sequence_perEvent").GetEntries())
...@@ -77,4 +77,4 @@ class Sequence_HLT_TableConstructor(TableConstructorBase): ...@@ -77,4 +77,4 @@ class Sequence_HLT_TableConstructor(TableConstructorBase):
totalTime = sum(totalTimeEntries) totalTime = sum(totalTimeEntries)
for entry in totalTimeEntries: for entry in totalTimeEntries:
self.columns["totalTimePerc"].addValue(100 * entry / totalTime) self.columns["totalTimePerc"].addValue(100 * entry / totalTime)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment