Commit fc76140f authored by Sebastien Wertz's avatar Sebastien Wertz
Browse files

fixes for observable unit and latex string

parent c2d4a789
......@@ -258,10 +258,10 @@ class Extra_Jet_AbsEta(Jet_AbsEta):
return f'extra_jet{self._idx(i)+1}_abseta'
def pretty_name(self, i=None):
return r'$\eta(\mathrm{b}^{\mathrm{extra}}_{' + str(self._idx(i)+1) + r'})$'
return r'$|\eta(\mathrm{b}^{\mathrm{extra}}_{' + str(self._idx(i)+1) + r'})|$'
def ROOT_pretty_name(self, i=None):
return r'#eta(b^{extra}_{' + str(self._idx(i)+1) + r'})'
return r'|#eta(b^{extra}_{' + str(self._idx(i)+1) + r'})|'
class Extra_Jet_dR(SingleObservable):
def __init__(self, **kwargs):
......@@ -355,6 +355,9 @@ class Max_Mbb(SingleObservable):
def ROOT_pretty_name(self):
return r'm_{bb}^{max}'
def unit(self):
return 'GeV'
def overflow(self):
return True
......@@ -398,9 +401,6 @@ class Bjet_Pt(Jet_Pt):
def ROOT_pretty_name(self, i=None):
return r'p_{T}(b_{' + str(self._idx(i)+1) + r'})'
def overflow(self):
return True
class Bjet_AbsEta(Jet_AbsEta):
def __init__(self, **kwargs):
super().__init__(**kwargs)
......@@ -416,10 +416,10 @@ class Bjet_AbsEta(Jet_AbsEta):
return f'bjet{self._idx(i)+1}_abseta'
def pretty_name(self, i=None):
return r'$\eta(\mathrm{b}_{' + str(self._idx(i)+1) + r'})$'
return r'$|\eta(\mathrm{b}_{' + str(self._idx(i)+1) + r'})|$'
def ROOT_pretty_name(self, i=None):
return r'#eta(b_{' + str(self._idx(i)+1) + r'})'
return r'|#eta(b_{' + str(self._idx(i)+1) + r'})|'
class bJet_Ht(Jet_Ht):
def __init__(self, **kwargs):
......@@ -438,9 +438,6 @@ class bJet_Ht(Jet_Ht):
def ROOT_pretty_name(self, i=None):
return r"H^{b}_{T}"
def overflow(self):
return True
class lightJet_Ht(Jet_Ht):
def __init__(self, **kwargs):
super().__init__(**kwargs)
......@@ -458,9 +455,6 @@ class lightJet_Ht(Jet_Ht):
def ROOT_pretty_name(self, i=None):
return r"H^{light}_{T}"
def overflow(self):
return True
class extraLightJet_Pt(Jet_Pt):
def __init__(self, **kwargs):
super().__init__(**kwargs)
......@@ -478,9 +472,6 @@ class extraLightJet_Pt(Jet_Pt):
def ROOT_pretty_name(self, i=None):
return r'p_{T}(lj^{extra}_{1})'
def overflow(self):
return True
class NExtraBJet_AboveWP(Observable):
pretty_working_points = {'T' : 'tight',
'M' : 'medium',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment