Skip to content

Commit 90d21c6

Browse files
authored
Merge pull request #27 from cms-cat/lumi_unit
2 parents b91cc38 + eda0119 commit 90d21c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmsstyle/cmsstyle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def SetEnergy(energy):
1717
cms_energy = str(energy)
1818

1919

20-
def SetLumi(lumi, round_lumi=False):
20+
def SetLumi(lumi, unit="fb", round_lumi=False):
2121
global cms_lumi
2222
if lumi != "":
2323
cms_lumi = f"{lumi:.0f}" if round_lumi else f"{lumi}"
24-
cms_lumi += " fb^{#minus1}"
24+
cms_lumi += f" {unit}^{{#minus1}}"
2525
else:
2626
cms_lumi = lumi
2727

0 commit comments

Comments
 (0)