37 lines
879 B
C++
37 lines
879 B
C++
#ifndef ROOEXPANDGAUSS_H
|
|
#define ROOEXPANDGAUSS_H
|
|
|
|
#include "RooAbsPdf.h"
|
|
#include "RooRealProxy.h"
|
|
#include "RooAbsReal.h"
|
|
|
|
class RooExpAndGauss : public RooAbsPdf
|
|
{
|
|
public:
|
|
RooExpAndGauss(); // default constructor to make RooFit workspaces happy
|
|
RooExpAndGauss(const char *name, const char *title,
|
|
RooAbsReal& _x,
|
|
RooAbsReal& _sh_mean,
|
|
RooAbsReal& _sh_sigma,
|
|
RooAbsReal& _sh_trans);
|
|
RooExpAndGauss(const RooExpAndGauss& other, const char* name=0) ;
|
|
virtual TObject* clone(const char* newname) const
|
|
{ return new RooExpAndGauss(*this,newname); }
|
|
inline virtual ~RooExpAndGauss() { }
|
|
|
|
protected:
|
|
|
|
RooRealProxy x ;
|
|
RooRealProxy sh_mean ;
|
|
RooRealProxy sh_sigma ;
|
|
RooRealProxy sh_trans ;
|
|
|
|
Double_t evaluate() const ;
|
|
|
|
private:
|
|
ClassDef(RooExpAndGauss, 2)
|
|
|
|
};
|
|
|
|
#endif // ROOEXPANDGAUSS_H
|