// @(#)root/hist:$Id$ // Authors: Lorenzo Moneta, Aurélie Flandi 27/08/14 /********************************************************************** * * * Copyright (c) 2015 ROOT Team, CERN/PH-SFT * * * * * **********************************************************************/ #ifndef ROOT_TF1Convolution__ #define ROOT_TF1Convolution__ #include "TF1AbsComposition.h" #include #include #include "TF1.h" #include "TGraph.h" class TF1Convolution : public TF1AbsComposition { std::unique_ptr fFunction1; ///< First function to be convolved std::unique_ptr fFunction2; ///< Second function to be convolved std::unique_ptr fGraphConv; /// fParams1; std::vector < Double_t > fParams2; std::vector< TString > fParNames; ///< Parameters' names Double_t fXmin; ///< Minimal bound of the range of the convolution Double_t fXmax; ///< Maximal bound of the range of the convolution Int_t fNofParams1; Int_t fNofParams2; Int_t fCstIndex; ///< Index of the constant parameter f the first function Int_t fNofPoints; ///< Number of point for FFT array Bool_t fFlagFFT; ///< Choose FFT or numerical convolution Bool_t fFlagGraph = false; ///