Skip to content

Commit ed98ad9

Browse files
committed
Fix for L1TMuonGlobalParams_PayloadInspector
1 parent 9f8ff8e commit ed98ad9

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

CondCore/L1TPlugins/plugins/BuildFile.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
<use name="CondCore/CondDB"/>
44
<use name="CondFormats/L1TObjects"/>
55
</library>
6+
7+
<library file="L1TMuonGlobalParams_PayloadInspector.cc" name="L1TMuonGlobalParams_PayloadInspector">
8+
<use name="CondCore/Utilities"/>
9+
<use name="CondCore/CondDB"/>
10+
<use name="CondFormats/L1TObjects"/>
11+
<use name="L1Trigger/L1TMuon"/>
12+
<use name="FWCore/MessageLogger"/>
13+
</library>

CondCore/L1TPlugins/plugins/L1TMuonGlobalParams_PayloadInspector.cc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "L1Trigger/L1TMuon/interface/L1TMuonGlobalParamsHelper.h"
1919
#include "L1Trigger/L1TMuon/interface/L1TMuonGlobalParams_PUBLIC.h"
2020

21-
#include <bitset>
21+
#include <fmt/format.h>
2222

2323
// include ROOT
2424
#include "TH1F.h"
@@ -93,13 +93,11 @@ namespace {
9393
leg.Draw();
9494
lzero.Draw();
9595

96-
tl.DrawLatexNDC(
97-
0.12,
98-
0.85,
99-
(fmt::v8::format(
100-
"fwVersion: {}, bx Min, Max: {}, {}", l1tmgph.fwVersion(), payload->bxMin(), payload->bxMax()))
101-
.c_str());
102-
tl.DrawLatexNDC(0.1, 0.92, (fmt::v8::format("{}, iov: {}", tag.name, IOVsince)).c_str());
96+
auto const label_fw =
97+
fmt::format("fwVersion: {}, bx Min, Max: {}, {}", l1tmgph.fwVersion(), payload->bxMin(), payload->bxMax());
98+
auto const label_tag = fmt::format("{}, iov: {}", tag.name, IOVsince);
99+
tl.DrawLatexNDC(0.12, 0.85, label_fw.c_str());
100+
tl.DrawLatexNDC(0.10, 0.92, label_tag.c_str());
103101
tl.DrawLatexNDC(0.07, 0.59, "1");
104102
tl.DrawLatexNDC(0.07, 0.27, "1");
105103

0 commit comments

Comments
 (0)