PDFxTMDLib  1.0.0
CErrExtrapolator.h
Go to the documentation of this file.
1 // This file is based on the LHAPDF code
2 
3 #pragma once
4 #include <stdexcept>
5 #include <string>
6 
9 namespace PDFxTMD
10 {
11 class CErrExtrapolator : public IcPDFExtrapolator<CErrExtrapolator>
12 {
13  public:
14  double extrapolate(PartonFlavor flavor, double x, double mu2) const
15  {
16  throw std::runtime_error("Point x=" + std::to_string(x) + ", Q2=" + std::to_string(mu2) +
17  " is outside the PDF grid boundaries");
18  }
19  void extrapolate(double x, double mu2, std::array<double, DEFAULT_TOTAL_PDFS> &output) const
20  {
21  throw std::runtime_error("Point x=" + std::to_string(x) + ", Q2=" + std::to_string(mu2) +
22  " is outside the PDF grid boundaries");
23  }
24 };
25 } // namespace PDFxTMD
Definition: CErrExtrapolator.h:12
double extrapolate(PartonFlavor flavor, double x, double mu2) const
Definition: CErrExtrapolator.h:14
void extrapolate(double x, double mu2, std::array< double, DEFAULT_TOTAL_PDFS > &output) const
Definition: CErrExtrapolator.h:19
Definition: IExtrapolator.h:34
Definition: AllFlavorsShape.h:14
PartonFlavor
Definition: PartonUtils.h:58
int mu2
Definition: pdfset_tutorial.py:14