#ifndef ROO_CONV_GEN_CONTEXT
#define ROO_CONV_GEN_CONTEXT
#include "RooAbsGenContext.h"
#include "RooArgSet.h"
class RooAbsAnaConvPdf;
class RooDataSet;
class RooRealIntegral;
class RooAcceptReject;
class TRandom;
class TIterator;
class RooRealVar ;
class RooNumConvPdf ;
class RooFFTConvPdf ;
class RooConvGenContext : public RooAbsGenContext {
public:
RooConvGenContext(const RooFFTConvPdf &model, const RooArgSet &vars, const RooDataSet *prototype= 0,
const RooArgSet* auxProto=0, Bool_t _verbose= kFALSE);
RooConvGenContext(const RooNumConvPdf &model, const RooArgSet &vars, const RooDataSet *prototype= 0,
const RooArgSet* auxProto=0, Bool_t _verbose= kFALSE);
RooConvGenContext(const RooAbsAnaConvPdf &model, const RooArgSet &vars, const RooDataSet *prototype= 0,
const RooArgSet* auxProto=0, Bool_t _verbose= kFALSE);
virtual ~RooConvGenContext();
virtual void setProtoDataOrder(Int_t* lut) ;
virtual void attach(const RooArgSet& params) ;
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
protected:
virtual void initGenerator(const RooArgSet &theEvent);
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining);
RooConvGenContext(const RooConvGenContext& other) ;
RooAbsGenContext* _pdfGen ;
RooAbsGenContext* _modelGen ;
TString _convVarName ;
RooArgSet* _pdfVarsOwned ;
RooArgSet* _modelVarsOwned ;
RooArgSet* _pdfVars ;
RooArgSet* _modelVars ;
RooArgSet* _pdfCloneSet ;
RooArgSet* _modelCloneSet ;
RooRealVar* _cvModel ;
RooRealVar* _cvPdf ;
RooRealVar* _cvOut ;
ClassDef(RooConvGenContext,0)
};
#endif