ATLAS Offline Software
Functions
CscMonUtils Namespace Reference

Functions

def getCSCLabelx (x)
 
def getCSCEfficiency (num, num_err, den, den_err)
 

Function Documentation

◆ getCSCEfficiency()

def CscMonUtils.getCSCEfficiency (   num,
  num_err,
  den,
  den_err 
)

Definition at line 12 of file CscMonUtils.py.

12 def getCSCEfficiency(num, num_err, den, den_err):
13  epsilon = 1.e-3
14  eff = 0
15  err = 0
16  if ( den > epsilon):
17  eff = num / den
18  err = math.fabs( ( (1.-2.*eff)*num_err*num_err + eff*eff*den_err*den_err )/(den*den) )
19 
20  return eff, err

◆ getCSCLabelx()

def CscMonUtils.getCSCLabelx (   x)

Definition at line 8 of file CscMonUtils.py.

8 def getCSCLabelx(x):
9  labelx = getattr(labels, x)
10  return labelx
11 
CscMonUtils.getCSCEfficiency
def getCSCEfficiency(num, num_err, den, den_err)
Definition: CscMonUtils.py:12
CscMonUtils.getCSCLabelx
def getCSCLabelx(x)
Definition: CscMonUtils.py:8