Skip to content

Commit

Permalink
Merge pull request #27 from cms-cat/lumi_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
clelange authored Feb 8, 2024
2 parents b91cc38 + eda0119 commit 90d21c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmsstyle/cmsstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def SetEnergy(energy):
cms_energy = str(energy)


def SetLumi(lumi, round_lumi=False):
def SetLumi(lumi, unit="fb", round_lumi=False):
global cms_lumi
if lumi != "":
cms_lumi = f"{lumi:.0f}" if round_lumi else f"{lumi}"
cms_lumi += " fb^{#minus1}"
cms_lumi += f" {unit}^{{#minus1}}"
else:
cms_lumi = lumi

Expand Down

0 comments on commit 90d21c6

Please sign in to comment.