yadism.coefficient_functions package
Collect all kernels for given FNS.
- class yadism.coefficient_functions.Combiner(esf)[source]
Bases:
objectDoes the matching between coefficient functions and partons with their appropriate coupling strength.
- Parameters:
esf (EvaluatedStructureFunction) – current ESF
- collect_elems()[source]
Collect all kernels according to the FNS.
- Returns:
elems – all participants
- Return type:
list(yadism.kernels.Kernel)
- class yadism.coefficient_functions.Component(heavy, kernels=None)[source]
Bases:
listUsed for organize elements and debugging purpose.
- heavyness = {0: 'light', 4: 'charm', 5: 'bottom', 6: 'top'}
Subpackages
- yadism.coefficient_functions.asy package
- Submodules
- yadism.coefficient_functions.asy.f2_cc module
- yadism.coefficient_functions.asy.f2_nc module
- yadism.coefficient_functions.asy.f3_cc module
- yadism.coefficient_functions.asy.f3_nc module
- yadism.coefficient_functions.asy.fl_cc module
- yadism.coefficient_functions.asy.fl_nc module
- yadism.coefficient_functions.asy.g1_nc module
- yadism.coefficient_functions.asy.g1_nc_raw module
- yadism.coefficient_functions.asy.g4_nc module
- yadism.coefficient_functions.asy.gl_nc module
- yadism.coefficient_functions.asy.kernels module
- yadism.coefficient_functions.asy.partonic_channel module
- yadism.coefficient_functions.asy.raw_nc module
c2g1am0_a0()c2g1am0_aq()c2g2am0_a0()c2g2am0_af()c2g2am0_aq()c2g2am0_aq2()c2g2am0_aqf()c2ns2am0_a0()c2ns2am0_aq()c2ns2am0_aq2()c2ns2bm0_a0()c2ns2bm0_aq()c2ns2bm0_aq2()c2ns2cm0_a0()c2ns2cm0_aq()c2ns2cm0_aq2()c2ps2am0_a0()c2ps2am0_af()c2ps2am0_aq()c2ps2am0_aq2()c2ps2am0_aqf()clg1am0_a0()clg2am0_a0()clg2am0_af()clg2am0_aq()clns2am0_a0()clns2am0_aq()clps2am0_a0()clps2am0_af()clps2am0_aq()wgplg()
- yadism.coefficient_functions.heavy package
- Subpackages
- Submodules
- yadism.coefficient_functions.heavy.f2_cc module
- yadism.coefficient_functions.heavy.f2_nc module
- yadism.coefficient_functions.heavy.f3_cc module
- yadism.coefficient_functions.heavy.f3_nc module
- yadism.coefficient_functions.heavy.fl_cc module
- yadism.coefficient_functions.heavy.fl_nc module
- yadism.coefficient_functions.heavy.g1_nc module
- yadism.coefficient_functions.heavy.g4_nc module
- yadism.coefficient_functions.heavy.gl_nc module
- yadism.coefficient_functions.heavy.kernels module
- yadism.coefficient_functions.heavy.partonic_channel module
- yadism.coefficient_functions.intrinsic package
- Submodules
- yadism.coefficient_functions.intrinsic.f2_cc module
- yadism.coefficient_functions.intrinsic.f2_nc module
- yadism.coefficient_functions.intrinsic.f3_cc module
- yadism.coefficient_functions.intrinsic.f3_nc module
- yadism.coefficient_functions.intrinsic.fl_cc module
- yadism.coefficient_functions.intrinsic.fl_nc module
- yadism.coefficient_functions.intrinsic.g1_nc module
- yadism.coefficient_functions.intrinsic.g4_nc module
- yadism.coefficient_functions.intrinsic.gl_nc module
- yadism.coefficient_functions.intrinsic.kernels module
- yadism.coefficient_functions.intrinsic.partonic_channel module
- yadism.coefficient_functions.intrinsic.raw_cc module
- yadism.coefficient_functions.intrinsic.raw_nc module
C1m()C1p()CRm()Cplus()I1()S()f1_sminus_raw()f1_sminus_soft()f1_sminus_virt()f1_splus_raw()f1_splus_soft()f1_splus_virt()f2_sminus_raw()f2_sminus_soft()f2_sminus_virt()f2_splus_raw()f2_splus_soft()f2_splus_virt()f3_rminus_raw()f3_rminus_soft()f3_rminus_virt()f3_rplus_raw()f3_rplus_soft()f3_rplus_virt()fl_sminus_raw()fl_sminus_soft()fl_sminus_virt()fl_splus_raw()fl_splus_soft()fl_splus_virt()li2()m1_sminus()m1_splus()m2_sminus()m2_splus()m3_rminus()m3_rplus()ml_sminus()ml_splus()
- yadism.coefficient_functions.light package
- Subpackages
- yadism.coefficient_functions.light.n3lo package
- Submodules
- yadism.coefficient_functions.light.n3lo.common module
- yadism.coefficient_functions.light.n3lo.xc2ns3p module
- yadism.coefficient_functions.light.n3lo.xc2sg3p module
- yadism.coefficient_functions.light.n3lo.xc3ns3p module
- yadism.coefficient_functions.light.n3lo.xcdiff3p module
- yadism.coefficient_functions.light.n3lo.xclns3p module
- yadism.coefficient_functions.light.n3lo.xclsg3p module
- yadism.coefficient_functions.light.nlo package
- yadism.coefficient_functions.light.nnlo package
- Submodules
- yadism.coefficient_functions.light.nnlo.g1 module
- yadism.coefficient_functions.light.nnlo.xc2ns2p module
- yadism.coefficient_functions.light.nnlo.xc2sg2p module
- yadism.coefficient_functions.light.nnlo.xc3ns2p module
- yadism.coefficient_functions.light.nnlo.xclns2p module
- yadism.coefficient_functions.light.nnlo.xclsg2p module
- yadism.coefficient_functions.light.nnlo.xk3cnvp module
- yadism.coefficient_functions.light.n3lo package
- Submodules
- yadism.coefficient_functions.light.f2_cc module
- yadism.coefficient_functions.light.f2_nc module
- yadism.coefficient_functions.light.f3_cc module
- yadism.coefficient_functions.light.f3_nc module
- yadism.coefficient_functions.light.fl_cc module
- yadism.coefficient_functions.light.fl_nc module
- yadism.coefficient_functions.light.g1_nc module
- yadism.coefficient_functions.light.g4_nc module
- yadism.coefficient_functions.light.gl_nc module
- yadism.coefficient_functions.light.kernels module
- yadism.coefficient_functions.light.partonic_channel module
- Subpackages
- yadism.coefficient_functions.special package
- yadism.coefficient_functions.splitting_functions package
c110()c211()c220()c220ns()empty_gluon()joint_lo()sector_mapping()- Subpackages
- yadism.coefficient_functions.splitting_functions.nlo package
pgg0()pgq0()pnsm1()pnsp1()pqg0pgg0()pqg0pgq0()pqg1()pqq0_2()pqq0pqg0()pqq1()- Submodules
- yadism.coefficient_functions.splitting_functions.nlo.convolutions module
- yadism.coefficient_functions.splitting_functions.nlo.non_singlet module
- yadism.coefficient_functions.splitting_functions.nlo.singlet module
- yadism.coefficient_functions.splitting_functions.nlo package
- Submodules
- yadism.coefficient_functions.splitting_functions.lo module
Submodules
yadism.coefficient_functions.coupling_constants module
Coupling between QCD particles and EW particles.
- class yadism.coefficient_functions.coupling_constants.CKM2Matrix(elems)[source]
Bases:
objectWrapper for the CKM matrix.
- __hash__ = None
- flav_cols = ['d', 's', 'b']
- flav_rows = ['u', 'c', 't']
- classmethod from_str(theory_string)[source]
Create the object from a string representation.
- Parameters:
theory_string (str) – all elements rowwise in a string
- Returns:
created object
- Return type:
CKMMatrix
- masked(flavs)[source]
Apply a mask according to the flavor.
- Parameters:
flavs (str) – participating flavors as single characters
- Returns:
masked matrix
- Return type:
CKMMatrix
- pid_cols = [1, 3, 5]
- pid_rows = [2, 4, 6]
- class yadism.coefficient_functions.coupling_constants.CouplingConstants(theory_config, obs_config)[source]
Bases:
objectDefines the coupling constants between the QCD particles and the EW particles.
- classmethod from_dict(theory, observables)[source]
Create the object from the theory dictionary.
- Parameters:
- Returns:
created object
- Return type:
- get_fl11_weight(pid, Q2, nf, quark_coupling_type)[source]
Same as
get_weight()but now for the NC flavor class \(fl_{11}\).Combine the charges, both on the leptonic side and the hadronic side, as well as propagator changes and/or corrections.
- get_weight(pid, Q2, quark_coupling_type, cc_mask=None)[source]
Compute the weight for the pid contributions to the structure function.
Combine the charges, both on the leptonic side and the hadronic side, as well as propagator changes and/or corrections.
- leptonic_coupling(mode, quark_coupling_type)[source]
Compute the coupling of the boson to the lepton.
- partonic_coupling(mode, pid, quark_coupling_type, cc_mask=None)[source]
Compute the coupling of the boson to the parton.
- Parameters:
- Returns:
partonic coupling
- Return type:
- partonic_coupling_fl11(mode, pid, nf, quark_coupling_type)[source]
Compute the coupling of the boson to the parton for the flavor class \(fl_{11}\).
This is a generalization of [LNvRV97] Table 2 (see also p. 27 there) for NC. The coupling is given by:
\[W_{q,bb'} = \frac{\text{tr}(Q_b)}{n_f} Q_b'\]where the trace refers to flavor space. The gluon and pure singlet couplings are then build by summing over all the different electroweak channels.
yadism.coefficient_functions.kernels module
Coefficient function kernels.
Kernels are a combination of the coupling structure (which parton with which weight) and the respective ‘raw’ mathematical coefficient function.
- class yadism.coefficient_functions.kernels.Kernel(partons, coeff, max_order=None, min_order=None)[source]
Bases:
objectCombination of partons with their weights and their mathematical expression in this channel.
- Parameters:
partons (dict) – mapping pid -> weight
coeff (PartonicChannel) – mathematical expression
max_order (int) – if given, silence above this order
min_order (int) – if given, silence below this order
- property channel
Abstract classification in physical channels.
- yadism.coefficient_functions.kernels.cc_weights(coupling_constants, Q2, cc_mask, nf, is_pv)[source]
Collect the weights of the partons.
- Parameters:
coupling_constants (CouplingConstants) – manager for coupling constants
Q2 (float) – W virtuality
cc_mask (str) – participating flavors on the CKM matrix
nf (int) – number of light flavors
is_pv (bool) – True if observable violates parity conservation
- Returns:
weights – mapping pid -> weight for q and g channel
- Return type:
- yadism.coefficient_functions.kernels.cc_weights_even(coupling_constants, Q2, cc_mask, nf, is_pv)[source]
Collect the weights of the partons.
- Parameters:
coupling_constants (CouplingConstants) – manager for coupling constants
Q2 (float) – W virtuality
cc_mask (str) – participating flavors on the CKM matrix
nf (int) – number of light flavors
is_pv (bool) – True if observable violates parity conservation
- Returns:
weights – mapping pid -> weight for q and g channel
- Return type:
- yadism.coefficient_functions.kernels.cc_weights_odd(coupling_constants, Q2, cc_mask, nf, is_pv)[source]
Collect the weights of the partons.
- Parameters:
coupling_constants (CouplingConstants) – manager for coupling constants
Q2 (float) – W virtuality
cc_mask (str) – participating flavors on the CKM matrix
nf (int) – number of light flavors
is_pv (bool) – True if observable violates parity conservation
- Returns:
weights – mapping pid -> weight for q and g channel
- Return type:
- yadism.coefficient_functions.kernels.generate_single_flavor_light(esf, nf, ihq)[source]
Add a light-like contribution for a single quark flavor.
The linear dependency to the electric charge is introduce by multiplying and diving by nf. The multiplication is implicit inside the coefficient function, the division is explicit made here.
- Parameters:
esf (EvaluatedStructureFunction) – kinematic point
nf (int) – number of light flavors
ihq (int) – quark flavor to activate
- Returns:
elems – list of elements
- Return type:
list(yadism.kernels.Kernel)
yadism.coefficient_functions.partonic_channel module
- class yadism.coefficient_functions.partonic_channel.EmptyPartonicChannel(*args, **_kwargs)[source]
Bases:
PartonicChannel
- class yadism.coefficient_functions.partonic_channel.PartonicChannel(ESF, nf)[source]
Bases:
dictContainer of partonic coefficient functions
- Parameters:
ESF (yadism.structure_function.esf.EvaluatedStructureFunction) – parent ESF
nf (int) – number of pure light flavors
- __annotations__ = {}
- class yadism.coefficient_functions.partonic_channel.RSL(reg=None, sing=None, loc=None, args=None)[source]
Bases:
objectRSL representation of a distribution, containing Dirac delta and plus distributions.
- Parameters:
reg (callable) – regular part
sing (callable) – singular part
loc (callable) – local part
args (sequence or dict) – arguments to pass to the individual parts (if dict) or to all of them (if sequence); if no arguments needed None is available