APFEL 4.8.0
A PDF evolution library in C++
Loading...
Searching...
No Matches
Namespaces
tools.h File Reference
#include <vector>
#include <string>

Go to the source code of this file.

Namespaces

namespace  apfel
 Namespace for all APFEL++ functions and classes.
 

Tools

Collection of useful tools.

enum  apfel::QuarkFlavour : int {
  apfel::TOTAL , apfel::DOWN , apfel::UP , apfel::STRANGE ,
  apfel::CHARM , apfel::BOTTOM , apfel::TOP
}
 
int apfel::NF (double const &Q, std::vector< double > const &Thresholds)
 Return the number of active flavours at the scale Q given the (ordered) vector of thresholds.
 
double apfel::DeltaFun (double const &a, double const &b, double const &c)
 Utility function used by the heavy-quark initiated massive coefficient functions.
 
std::vector< double > apfel::ElectroWeakCharges (double const &Q, bool const &virt, int const &Comp=TOTAL)
 Utility function for the computation of the electroweak charges, for both time-like and space-like virtualities (Reference: https://arxiv.org/pdf/hep-ph/9711387.pdf).
 
std::vector< double > apfel::ParityViolatingElectroWeakCharges (double const &Q, bool const &virt, int const &Comp=TOTAL)
 Utility function for the computation of the parity-violating electroweak charges, for both time-like and space-like virtualities.
 
std::vector< double > apfel::ElectroWeakChargesNWA ()
 Utility function for the computation of the electroweak charges for Drell-Yan in narrow-width appriximation.
 
std::vector< double > apfel::ConcatenateAndSortVectors (std::vector< double > const &v1, std::vector< double > const &v2)
 Utility function that concatenates and sort the input vectors.
 
template<typename T >
double apfel::dabs (T const &d)
 Absolute value of the object T. In the case of a Distribution, this is computed like the squared mean average of the entries of the joint grid. In the case of a set of distributions, the minimum dabs over the distributions is returned.
 
std::vector< double > apfel::ProductExpansion (std::vector< double > const &r)
 Function that computes the coefficients of the expansion of a product of n binomials with zero's in r.
 
int apfel::factorial (int const &n)
 Factorial of an integer.
 
double apfel::GetSIATotalCrossSection (int const &PerturbativeOrder, double const &Q, double const &AlphaQCD, double const &AlphaQED, std::vector< double > const &Thresholds, QuarkFlavour const &Comp=TOTAL, bool const &NoCharges=false)
 Function that computes the total cross section in a electron-positron annihilation process.