QSigExDis* GetFunction(const QList<TString>& pdfentry, TDirectory* fluxdir, const TCut& fgcuts, QList<TString>* inputs, Bool_t *pdfneedscuts)
This protected function uses the pdf card file formatted entry pdfentry to
create a function used in QSigExPDFs::Get() to produce a marginal PDF. The
input function can be a TH1F, TH1D, TF1, TH2F, TH2D or TF2 object.
GetFunction() returns a QSigExDis pointer to an object of type QSigExDisTH or QSigExDisTF,
depending on the input function class. It fills inputs with the list of
coordinates in the PDF domain. pdfneedscuts is set to kTRUE since the
function doesn't apply cuts on the output function.
Syntax of a card file entry: pdf [...] [objname] [filename] [c1] [c2] [c3]
where [...] are the fields defined in QSigExPDFs::LoadCardFile, [objname]
the name of the object in the ROOT file [filename] and where [c1], [c2] and
[c3] are the coordinate names. [c2] is needed only by 2d and 3d functions
and [c3] only be 3d functions. The [typeid] field defined in QSigExPDFs must
be one of the ROOT class names that are recognized as input functions by
QSigExStdPDFs (TH* , TF*). If it's not the case, the pdf entry is ignored
and GetFunction() returns NULL.