APFEL 4.8.0
A PDF evolution library in C++
Loading...
Searching...
No Matches
tools.h
Go to the documentation of this file.
1//
2// APFEL++ 2017
3//
4// Author: Valerio Bertone: valerio.bertone@cern.ch
5//
6
7#pragma once
8
9#include <vector>
10#include <string>
11
12namespace apfel
13{
21
29 int NF(double const& Q, std::vector<double> const& Thresholds);
30
39 double DeltaFun(double const& a, double const& b, double const& c);
40
50 std::vector<double> ElectroWeakCharges(double const& Q, bool const& virt, int const& Comp = TOTAL);
51
61 std::vector<double> ParityViolatingElectroWeakCharges(double const& Q, bool const& virt, int const& Comp = TOTAL);
62
68 std::vector<double> ElectroWeakChargesNWA();
69
77 std::vector<double> ConcatenateAndSortVectors(std::vector<double> const& v1, std::vector<double> const& v2);
78
88 template<typename T>
89 double dabs(T const& d);
90
96 std::vector<double> ProductExpansion(std::vector<double> const& r);
97
102 int factorial(int const& n);
103
119 double GetSIATotalCrossSection(int const& PerturbativeOrder,
120 double const& Q,
121 double const& AlphaQCD,
122 double const& AlphaQED,
123 std::vector<double> const& Thresholds,
124 QuarkFlavour const& Comp = TOTAL,
125 bool const& NoCharges = false);
127}
The AlphaQCD is a specialization class of the MatchedEvolution class for the computation of the QCD c...
Definition alphaqcd.h:21
The AlphaQED is a specialization class of the MatchedEvolution class for the computation of the QED c...
Definition alphaqed.h:21
Namespace for all APFEL++ functions and classes.
Definition alphaqcd.h:14
int factorial(int const &n)
Factorial of an integer.
double 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.
double dabs(T const &d)
Absolute value of the object T. In the case of a Distribution, this is computed like the squared mean...
std::vector< double > 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...
QuarkFlavour
Definition tools.h:20
@ TOTAL
Definition tools.h:20
@ DOWN
Definition tools.h:20
@ BOTTOM
Definition tools.h:20
@ CHARM
Definition tools.h:20
@ TOP
Definition tools.h:20
@ UP
Definition tools.h:20
@ STRANGE
Definition tools.h:20
std::vector< double > 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 ...
int 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 DeltaFun(double const &a, double const &b, double const &c)
Utility function used by the heavy-quark initiated massive coefficient functions.
std::vector< double > ConcatenateAndSortVectors(std::vector< double > const &v1, std::vector< double > const &v2)
Utility function that concatenates and sort the input vectors.
std::vector< double > ElectroWeakChargesNWA()
Utility function for the computation of the electroweak charges for Drell-Yan in narrow-width apprixi...
std::vector< double > 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 vi...