#ifndef ROO_ADD_PDF
#define ROO_ADD_PDF
#include "RooAbsPdf.h"
#include "RooListProxy.h"
#include "RooAICRegistry.h"
#include "RooNormSetCache.h"
#include "RooNameSet.h"
#include "RooNormListManager.h"
class RooAddPdf : public RooAbsPdf {
public:
RooAddPdf(const char *name, const char *title);
RooAddPdf(const char *name, const char *title,
RooAbsPdf& pdf1, RooAbsPdf& pdf2, RooAbsReal& coef1) ;
RooAddPdf(const char *name, const char *title, const RooArgList& pdfList) ;
RooAddPdf(const char *name, const char *title, const RooArgList& pdfList, const RooArgList& coefList) ;
RooAddPdf(const RooAddPdf& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooAddPdf(*this,newname) ; }
virtual ~RooAddPdf() ;
Double_t evaluate() const ;
virtual Bool_t checkObservables(const RooArgSet* nset) const ;
virtual Bool_t forceAnalyticalInt(const RooAbsArg& ) const { return kTRUE ; }
Int_t getAnalyticalIntegralWN(RooArgSet& allVars, RooArgSet& numVars, const RooArgSet* normSet, const char* rangeName=0) const ;
Double_t analyticalIntegralWN(Int_t code, const RooArgSet* normSet, const char* rangeName=0) const ;
virtual Bool_t selfNormalized() const { return kTRUE ; }
virtual ExtendMode extendMode() const { return (_haveLastCoef || _allExtendable) ? MustBeExtended : CanNotBeExtended; }
virtual Double_t expectedEvents(const RooArgSet* nset) const ;
virtual Double_t expectedEvents(const RooArgSet& nset) const { return expectedEvents(&nset) ; }
const RooArgList& pdfList() const { return _pdfList ; }
const RooArgList& coefList() const { return _coefList ; }
void fixCoefNormalization(const RooArgSet& refCoefNorm) ;
void fixCoefRange(const char* rangeName) ;
virtual void resetErrorCounters(Int_t resetValue=10) ;
protected:
virtual void selectNormalization(const RooArgSet* depSet=0, Bool_t force=kFALSE) ;
virtual void selectNormalizationRange(const char* rangeName=0, Bool_t force=kFALSE) ;
mutable RooSetProxy _refCoefNorm ;
mutable TNamed* _refCoefRangeName ;
Bool_t _projectCoefs ;
void syncCoefProjList(const RooArgSet* nset, const RooArgSet* iset=0, const char* rangeName=0) const ;
mutable RooNormListManager _projListMgr ;
mutable RooArgList* _pdfProjList ;
void syncSuppNormList(const RooArgSet* nset, const char* rangeName) const ;
mutable RooNormListManager _suppListMgr ;
mutable RooArgSet* _lastSupNormSet ;
void updateCoefCache(const RooArgSet* nset, const RooArgSet* snset, const char* rangeName) const ;
mutable Double_t* _coefCache ;
friend class RooAddGenContext ;
virtual RooAbsGenContext* genContext(const RooArgSet &vars, const RooDataSet *prototype=0,
const RooArgSet* auxProto=0, Bool_t verbose= kFALSE) const ;
virtual void operModeHook() ;
virtual Bool_t redirectServersHook(const RooAbsCollection& newServerList,
Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive) ;
mutable RooAICRegistry _codeReg ;
RooListProxy _pdfList ;
RooListProxy _coefList ;
mutable RooArgList* _snormList ;
TIterator* _pdfIter ;
TIterator* _coefIter ;
Bool_t _haveLastCoef ;
Bool_t _allExtendable ;
mutable Int_t _coefErrCount ;
private:
ClassDef(RooAddPdf,0)
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.