Belle II Software  release-06-01-15
Plotter Class Reference

Public Member Functions

def __init__ (self, location)
 
def plotEcmsComparison (self, limits=None, tag='')
 
def plotSpreadComparison (self, limits=None)
 
def plotShift (self, limits=None)
 
def plotEcms (self, limits=None, tag='')
 
def plotPulls (self, limits=None)
 

Static Public Member Functions

def plotLine (df, var, color, label)
 
def plotCurve (df, var, label, withBand=True, withCurve=True)
 

Public Attributes

 dfB
 
 dfC
 
 dfM
 

Detailed Description

Definition at line 128 of file ecms.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  location 
)
Data are loaded from text files to pandas

Definition at line 129 of file ecms.py.

129  def __init__(self, location):
130  """
131  Data are loaded from text files to pandas
132  """
133 
134  # read B-only calibration
135  self.dfB = pd.read_csv(f'{location}/BonlyEcmsCalib.txt', delim_whitespace=True)
136 
137  # read combined calibration
138  self.dfC = pd.read_csv(f'{location}/finalEcmsCalib.txt', delim_whitespace=True)
139 
140  # read mumu calibration
141  self.dfM = pd.read_csv(f'{location}/mumuEcalib.txt', delim_whitespace=True)
142 
143  # add the state
144  dfM = self.dfM
145  dfC = self.dfC
146  state = -1
147  dfM['type'] = 1
148  dfC['type'] = 1
149  for i in range(len(dfM)):
150  if (dfM['id'][i]) == 0:
151  state *= -1
152 
153  dfM.at[i, 'type'] = state
154  dfC.at[i, 'type'] = state
155 

Member Function Documentation

◆ plotCurve()

def plotCurve (   df,
  var,
  label,
  withBand = True,
  withCurve = True 
)
static
Plot curve with possible error band where large intervals are distinguished by color

Definition at line 235 of file ecms.py.

◆ plotEcms()

def plotEcms (   self,
  limits = None,
  tag = '' 
)
Plot Ecms of the combined fit, 'tag' can be '4S' means that y-axis is zoomed to 4S mass region, 'Off' to off-resonance

Definition at line 288 of file ecms.py.

◆ plotEcmsComparison()

def plotEcmsComparison (   self,
  limits = None,
  tag = '' 
)
Plot Ecms obtained from combined, hadB and mumu method

Definition at line 179 of file ecms.py.

◆ plotLine()

def plotLine (   df,
  var,
  color,
  label 
)
static
Plot single line with error band

Definition at line 157 of file ecms.py.

◆ plotPulls()

def plotPulls (   self,
  limits = None 
)
Plot pulls of the combined fit.

Definition at line 311 of file ecms.py.

◆ plotShift()

def plotShift (   self,
  limits = None 
)
Plot shift between Bhad and mumu method

Definition at line 266 of file ecms.py.

◆ plotSpreadComparison()

def plotSpreadComparison (   self,
  limits = None 
)
Plot Ecms spread estimated from the combined method and B-decay method

Definition at line 210 of file ecms.py.


The documentation for this class was generated from the following file: