1 |
/*****************************************************************************
|
2 |
* Project: RooFit *
|
3 |
* *
|
4 |
* This code was autogenerated by RooClassFactory *
|
5 |
*****************************************************************************/
|
6 |
|
7 |
// Your description goes here...
|
8 |
|
9 |
#include "Riostream.h"
|
10 |
|
11 |
#include "RooSUSYTPdf.h"
|
12 |
#include "RooAbsReal.h"
|
13 |
#include "RooAbsCategory.h"
|
14 |
#include "TMath.h"
|
15 |
|
16 |
//ClassImp(RooSUSYTPdf)
|
17 |
|
18 |
RooSUSYTPdf::RooSUSYTPdf(const char *name, const char *title,
|
19 |
RooAbsReal& _mll,
|
20 |
RooAbsReal& _c,
|
21 |
RooAbsReal& _s,
|
22 |
RooAbsReal& _m0) :
|
23 |
RooAbsPdf(name,title),
|
24 |
mll("mll","mll",this,_mll),
|
25 |
c("c","c",this,_c),
|
26 |
s("s","s",this,_s),
|
27 |
m0("m0","m0",this,_m0)
|
28 |
{
|
29 |
}
|
30 |
|
31 |
|
32 |
RooSUSYTPdf::RooSUSYTPdf(const RooSUSYTPdf& other, const char* name) :
|
33 |
RooAbsPdf(other,name),
|
34 |
mll("mll",this,other.mll),
|
35 |
c("c",this,other.c),
|
36 |
s("s",this,other.s),
|
37 |
m0("m0",this,other.m0)
|
38 |
{
|
39 |
}
|
40 |
|
41 |
|
42 |
|
43 |
Double_t RooSUSYTPdf::evaluate() const
|
44 |
{
|
45 |
// ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
|
46 |
//triangle
|
47 |
Double_t value = c*(TMath::Sqrt(2)*s*(TMath::Exp(-mll*mll/(2*s*s))-TMath::Exp(-(m0-mll)*(m0-mll)/(2*s*s)))+mll*TMath::Sqrt(TMath::Pi())*(TMath::Erf(mll/(TMath::Sqrt(2)*s))+TMath::Erf((m0-mll)/(TMath::Sqrt(2)*s))));
|
48 |
|
49 |
if(value>0) return value;
|
50 |
else return 0.;
|
51 |
|
52 |
}
|
53 |
|
54 |
|
55 |
|