CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
normFunctors Namespace Reference

Classes

class  normFunctionFactory
 

Functions

def normFunctionCaller
 

Variables

list argvals = [luminonorm,intglumi,nBXs,0.0,0.0]
 
dictionary constParams = {'a0':1.0}
 
float intglumi = 3.309
 
float luminonorm = 0.5061
 
int nBXs = 1331
 
dictionary polyParams = {'a0':7.268,'a1':0.063,'a2':-0.0037,'drift':0.01258,'c1':6.37,'afterglow':'[(213,0.992), (321,0.99), (423,0.988), (597,0.985), (700,0.984), (873,0.981), (1041,0.979), (1179,0.977),(1317,0.975)]'}
 

Function Documentation

def normFunctors.normFunctionCaller (   funcName,
  args,
  kwds 
)

Definition at line 49 of file normFunctors.py.

Referenced by lumiCalcAPI.deliveredLumiForIds().

49 
50 def normFunctionCaller(funcName,*args,**kwds):
52  try:
53  myfunc=getattr(fac,funcName,None)
54  except AttributeError:
55  print '[ERROR] unknown correction function '+funcName
56  raise
57  if callable(myfunc):
58  return myfunc(*args,**kwds)
59  else:
raise ValueError('uncallable function '+funcName)
def normFunctionCaller
Definition: normFunctors.py:49

Variable Documentation

list normFunctors.argvals = [luminonorm,intglumi,nBXs,0.0,0.0]

Definition at line 66 of file normFunctors.py.

dictionary normFunctors.constParams = {'a0':1.0}

Definition at line 65 of file normFunctors.py.

float normFunctors.intglumi = 3.309

Definition at line 63 of file normFunctors.py.

Referenced by LumiCorrectionSource.fillparamcache(), and lumi::fPoly.getCorrection().

float normFunctors.luminonorm = 0.5061

Definition at line 62 of file normFunctors.py.

int normFunctors.nBXs = 1331

Definition at line 64 of file normFunctors.py.

Referenced by lumi::fPoly.getCorrection().

dictionary normFunctors.polyParams = {'a0':7.268,'a1':0.063,'a2':-0.0037,'drift':0.01258,'c1':6.37,'afterglow':'[(213,0.992), (321,0.99), (423,0.988), (597,0.985), (700,0.984), (873,0.981), (1041,0.979), (1179,0.977),(1317,0.975)]'}

Definition at line 68 of file normFunctors.py.