ATLAS Offline Software
CscMonUtils.py
Go to the documentation of this file.
1 #
2 #Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 import CscRawDataMonitoring.CscRawMonLabels as labels
6 import math
7 
8 def getCSCLabelx(x):
9  labelx = getattr(labels, x)
10  return labelx
11 
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
CscMonUtils.getCSCEfficiency
def getCSCEfficiency(num, num_err, den, den_err)
Definition: CscMonUtils.py:12
CscMonUtils.getCSCLabelx
def getCSCLabelx(x)
Definition: CscMonUtils.py:8