PDFxTMDLib  1.0.0
CLHAPDFBilinearInterpolator.h
Go to the documentation of this file.
1 #pragma once
4 
5 namespace PDFxTMD
6 {
7 // taken from lhapdf library!
8 template<class ReaderType>
10  : public IcPDFInterpolator<CLHAPDFBilinearInterpolator<ReaderType>, ReaderType>
11 {
12  public:
15 
16  // Main interface method - hot path
17  double interpolate(PartonFlavor flavor, double x, double mu2) const;
18  void interpolate(double x, double mu2, std::array<double, DEFAULT_TOTAL_PDFS> &output) const;
19  void initialize(const IReader<ReaderType> *reader);
21 
22  private:
23  const IReader<ReaderType> *m_reader;
24  mutable DefaultAllFlavorShape m_Shape;
25 };
26 } // namespace PDFxTMD
27 #include "./CLHAPDFBilinearInterpolator.tpp"
Definition: CLHAPDFBilinearInterpolator.h:11
const IReader< ReaderType > * getReader() const
double interpolate(PartonFlavor flavor, double x, double mu2) const
void interpolate(double x, double mu2, std::array< double, DEFAULT_TOTAL_PDFS > &output) const
void initialize(const IReader< ReaderType > *reader)
Definition: IInterpolator.h:32
Definition: AllFlavorsShape.h:14
PartonFlavor
Definition: PartonUtils.h:58
int mu2
Definition: pdfset_tutorial.py:14
Definition: AllFlavorsShape.h:30