Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23493 from kreczko/kreczko-issue-CMSLITDPG-588-part4
[L1T][DQMOffline] Minor adjustments to Jets & energy sums plots
- Loading branch information
Showing
6 changed files
with
109 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def generateEfficiencyStrings(variables, plots): | ||
stringTemplate = "{plot} " + \ | ||
"'{var} efficiency; Offline E_{{T}}^{{miss}} (GeV); {var} efficiency'" + \ | ||
" {num_path} {den_path}" | ||
for variable, thresholds in variables.iteritems(): | ||
for plot in plots[variable]: | ||
for threshold in thresholds: | ||
plotName = '{0}_threshold_{1}'.format(plot, threshold) | ||
varName = plot.replace('efficiency', '') | ||
yield stringTemplate.format( | ||
var=varName, | ||
plot=plotName, | ||
num_path='efficiency_raw/' + plotName + '_Num', | ||
den_path='efficiency_raw/' + plotName + '_Den', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters