1 /*****************************************************************************
4 * This code was autogenerated by RooClassFactory *
5 *****************************************************************************/
7 // Your description goes here...
12 #include "RooAbsReal.h"
13 #include "RooAbsCategory.h"
19 AliLnM2::AliLnM2(const char *name, const char *title,
25 RooAbsPdf(name,title),
27 mu("mu","mu",this,_mu),
28 sigma("sigma","sigma",this,_sigma),
29 tau("tau","tau",this,_tau),
35 AliLnM2::AliLnM2(const AliLnM2& other, const char* name) :
36 RooAbsPdf(other,name),
38 mu("mu",this,other.mu),
39 sigma("sigma",this,other.sigma),
40 tau("tau",this,other.tau),
45 Double_t AliLnM2::evaluate() const
52 return TMath::Exp(-(x-mu)*(x-mu)/(2.*sigma*sigma));
55 Double_t lambda = 2.*tau*TMath::Sqrt(p*p+mu+tau)/(sigma*sigma);
56 Double_t a = TMath::Exp(-tau*tau/(2.*sigma*sigma)+2.*tau*(p*p+mu+tau)/(sigma*sigma));
58 return a*TMath::Exp(-lambda*TMath::Sqrt(p*p + x));