-
Notifications
You must be signed in to change notification settings - Fork 4
/
auxfunctions.h
48 lines (46 loc) · 1.94 KB
/
auxfunctions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// cHNLdecay -- calculate decay widths of Heavy Neutral Leptons
// Copyright (C) 2018 - Fabian A.J. Thiele, <fabian.thiele@posteo.de>
//
// This file is part of cHNLdecay.
//
// cHNLdecay is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// cHNLdecay is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#ifndef AUXFUNCTIONS_H
#define AUXFUNCTIONS_H
#include "Config.h"
#include "HNL.h"
#include "Lepton.h"
#include "Meson.h"
#include "TGraph.h"
#include <gmp.h>
#include <mpfr.h>
void kaellen(std::shared_ptr<Config> cfg, mpfr_t result, mpfr_t a, mpfr_t b,
mpfr_t c);
Double_t kaellen(Double_t a, Double_t b, Double_t c);
Double_t int__i(Double_t *x, Double_t *par);
Double_t I_xu_xd_xl(Double_t xu, Double_t xd, Double_t xl);
Double_t gamma2ctau(std::shared_ptr<Config> cfg, Double_t gamma);
Double_t qcd_coupling(Double_t *x, Double_t *par);
Double_t qcd_coupling(Double_t mass);
Double_t qcd_correction(Double_t alpha);
Double_t f_qcd_correction(Double_t *x, Double_t *par);
Double_t ctauToU2(std::shared_ptr<Config> cfg, Double_t target,
const std::vector<Lepton> &leptons,
const std::vector<Quark> &quarks, HNL &N,
Double_t start = 1e-4);
TString pdgIdToLaTeX(Int_t p);
TGraph *create_graph(Double_t xd, Double_t xl, Float_t low = 0,
Float_t high = 0.5, Float_t stepsize = 0.001);
std::vector<std::vector<Double_t>> parseFile(std::string name);
void plot_I();
#endif