MINT2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RooHILLdini Class Reference

#include <RooHILLdini.h>

Inheritance diagram for RooHILLdini:

Public Member Functions

 RooHILLdini (const char *name, const char *title, RooAbsReal &_m, RooAbsReal &_a, RooAbsReal &_b, RooAbsReal &_csi, RooAbsReal &_shift, RooAbsReal &_sigma, RooAbsReal &_ratio_sigma, RooAbsReal &_fraction_sigma)
 
 RooHILLdini (const RooHILLdini &other, const char *name=0)
 
virtual TObject * clone (const char *newname) const
 
virtual ~ RooHILLdini ()
 

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy m
 
RooRealProxy a
 
RooRealProxy b
 
RooRealProxy csi
 
RooRealProxy shift
 
RooRealProxy sigma
 
RooRealProxy ratio_sigma
 
RooRealProxy fraction_sigma
 

Detailed Description

Definition at line 27 of file RooHILLdini.h.

Constructor & Destructor Documentation

◆ RooHILLdini() [1/2]

RooHILLdini::RooHILLdini ( const char *  name,
const char *  title,
RooAbsReal &  _m,
RooAbsReal &  _a,
RooAbsReal &  _b,
RooAbsReal &  _csi,
RooAbsReal &  _shift,
RooAbsReal &  _sigma,
RooAbsReal &  _ratio_sigma,
RooAbsReal &  _fraction_sigma 
)

Definition at line 12 of file RooHILLdini.cpp.

13  :
14 
15 
16  RooAbsPdf(name, title),
17  m("m", "Dependent", this, _m),
18  a("a", "a", this, _a),
19  b("b", "b", this, _b),
20  csi("csi", "csi", this, _csi),
21  shift("shift", "shift", this, _shift),
22  sigma("sigma", "sigma", this, _sigma),
23  ratio_sigma("ratio_sigma", "ratio_sigma", this, _ratio_sigma),
24  fraction_sigma("fraction_sigma", "fraction_sigma", this, _fraction_sigma)
25 {
26 }
RooRealProxy ratio_sigma
Definition: RooHILLdini.h:45
RooRealProxy csi
Definition: RooHILLdini.h:42
RooRealProxy sigma
Definition: RooHILLdini.h:44
RooRealProxy shift
Definition: RooHILLdini.h:43
RooRealProxy b
Definition: RooHILLdini.h:41
RooRealProxy m
Definition: RooHILLdini.h:39
RooRealProxy a
Definition: RooHILLdini.h:40
RooRealProxy fraction_sigma
Definition: RooHILLdini.h:46

◆ RooHILLdini() [2/2]

RooHILLdini::RooHILLdini ( const RooHILLdini other,
const char *  name = 0 
)

Definition at line 29 of file RooHILLdini.cpp.

29  :
30  RooAbsPdf(other, name), m("m", this, other.m), a("a", this, other.a), b("b", this, other.b), csi("csi", this, other.csi), shift("shift", this, other.shift), sigma("sigma", this, other.sigma), ratio_sigma("ratio_sigma", this, other.ratio_sigma), fraction_sigma("fraction_sigma", this, other.fraction_sigma)
31 {
32 }
RooRealProxy ratio_sigma
Definition: RooHILLdini.h:45
RooRealProxy csi
Definition: RooHILLdini.h:42
RooRealProxy sigma
Definition: RooHILLdini.h:44
RooRealProxy shift
Definition: RooHILLdini.h:43
RooRealProxy b
Definition: RooHILLdini.h:41
RooRealProxy m
Definition: RooHILLdini.h:39
RooRealProxy a
Definition: RooHILLdini.h:40
RooRealProxy fraction_sigma
Definition: RooHILLdini.h:46

◆ ~ RooHILLdini()

virtual RooHILLdini::~ RooHILLdini ( )
inlinevirtual

Definition at line 35 of file RooHILLdini.h.

35 {}

Member Function Documentation

◆ clone()

virtual TObject* RooHILLdini::clone ( const char *  newname) const
inlinevirtual

Definition at line 34 of file RooHILLdini.h.

34 { return new RooHILLdini(*this,newname); }
RooHILLdini(const char *name, const char *title, RooAbsReal &_m, RooAbsReal &_a, RooAbsReal &_b, RooAbsReal &_csi, RooAbsReal &_shift, RooAbsReal &_sigma, RooAbsReal &_ratio_sigma, RooAbsReal &_fraction_sigma)
Definition: RooHILLdini.cpp:12

◆ evaluate()

Double_t RooHILLdini::evaluate ( ) const
protected

Definition at line 38 of file RooHILLdini.cpp.

39 {
40 
42  double a_new = a;
43  double b_new = b;
44  double sigma2 = sigma * ratio_sigma;
46 
47 
48 
50  double firstG1 = (2*exp(-((a_new-(m-shift))*(a_new-(m-shift))/(2*(sigma*sigma))))*sigma*(b_new-(m-shift))+2*exp(-((b_new-(m-shift))*(b_new-(m-shift))/(2*(sigma*sigma))))*sigma*(-a_new+(m-shift))-sqrt(2*TMath::Pi())*(a_new*b_new+(sigma*sigma)-(a_new+b_new)*(m-shift)+((m-shift)*(m-shift)))*TMath::Erf((-a_new+(m-shift))/(sqrt(2)*sigma))+sqrt(2*TMath::Pi())*(a_new*b_new+(sigma*sigma)-(a_new+b_new)*(m-shift)+((m-shift)*(m-shift)))*TMath::Erf((-b_new+(m-shift))/(sqrt(2)*sigma)))/(2*sqrt(2*TMath::Pi()));
51  //double CURVEG1 = fabs( (1-csi)/(b_new-a_new)*(m-shift) + (b_new*csi - a_new)/(b_new-a_new) )*fabs(firstG1);
52  double CURVEG1 = fabs( (1-csi)/(b_new-a_new)*(m) + (b_new*csi - a_new)/(b_new-a_new) )*fabs(firstG1);
54 
55 
56 
58  double firstG2 = (2*exp(-((a_new-(m-shift))*(a_new-(m-shift))/(2*(sigma2*sigma2))))*sigma2*(b_new-(m-shift))+2*exp(-((b_new-(m-shift))*(b_new-(m-shift))/(2*(sigma2*sigma2))))*sigma2*(-a_new+(m-shift))-sqrt(2*TMath::Pi())*(a_new*b_new+(sigma2*sigma2)-(a_new+b_new)*(m-shift)+((m-shift)*(m-shift)))*TMath::Erf((-a_new+(m-shift))/(sqrt(2)*sigma2))+sqrt(2*TMath::Pi())*(a_new*b_new+(sigma2*sigma2)-(a_new+b_new)*(m-shift)+((m-shift)*(m-shift)))*TMath::Erf((-b_new+(m-shift))/(sqrt(2)*sigma2)))/(2*sqrt(2*TMath::Pi()));
59  //double CURVEG2 = fabs( (1-csi)/(b_new-a_new)*(m-shift) + (b_new*csi - a_new)/(b_new-a_new) )*fabs(firstG2);
60  double CURVEG2 = fabs( (1-csi)/(b_new-a_new)*(m) + (b_new*csi - a_new)/(b_new-a_new) )*fabs(firstG2);
62 
63 
64  return fabs(fraction_sigma*CURVEG1 + (1-fraction_sigma)*CURVEG2);
65 
66 
67 
68 }
RooRealProxy ratio_sigma
Definition: RooHILLdini.h:45
RooRealProxy csi
Definition: RooHILLdini.h:42
RooRealProxy sigma
Definition: RooHILLdini.h:44
RooRealProxy shift
Definition: RooHILLdini.h:43
RooRealProxy b
Definition: RooHILLdini.h:41
RooRealProxy m
Definition: RooHILLdini.h:39
RooRealProxy a
Definition: RooHILLdini.h:40
RooRealProxy fraction_sigma
Definition: RooHILLdini.h:46

Member Data Documentation

◆ a

RooRealProxy RooHILLdini::a
protected

Definition at line 40 of file RooHILLdini.h.

◆ b

RooRealProxy RooHILLdini::b
protected

Definition at line 41 of file RooHILLdini.h.

◆ csi

RooRealProxy RooHILLdini::csi
protected

Definition at line 42 of file RooHILLdini.h.

◆ fraction_sigma

RooRealProxy RooHILLdini::fraction_sigma
protected

Definition at line 46 of file RooHILLdini.h.

◆ m

RooRealProxy RooHILLdini::m
protected

Definition at line 39 of file RooHILLdini.h.

◆ ratio_sigma

RooRealProxy RooHILLdini::ratio_sigma
protected

Definition at line 45 of file RooHILLdini.h.

◆ shift

RooRealProxy RooHILLdini::shift
protected

Definition at line 43 of file RooHILLdini.h.

◆ sigma

RooRealProxy RooHILLdini::sigma
protected

Definition at line 44 of file RooHILLdini.h.


The documentation for this class was generated from the following files: