ATLAS Offline Software
Reconstruction
RecExample
RecExOnline
python
distributions.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2
3
import
datatable
as
dt
4
import
numpy
as
np
5
def
CVM
(cvm, mean, var):
6
z = (cvm - mean) / (45. * var)**0.5 + 1./6
7
z_i = dt.cvm_ztable
8
p_i = dt.cvm_ptable
9
if
z > z_i[-1]:
10
return
1.
11
elif
z < z_i[0]:
12
return
0.
13
else
:
14
return
np.interp(z, z_i, p_i)
python.distributions.CVM
def CVM(cvm, mean, var)
Definition:
distributions.py:5
Generated on Wed Jan 8 2025 21:09:03 for ATLAS Offline Software by
1.8.18