MINT2
Public Member Functions | Protected Attributes | List of all members
TimePdf_mod Class Reference
Inheritance diagram for TimePdf_mod:
MINT::PdfBase< IDalitzEvent > MINT::IPdf< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent >

Public Member Functions

void parametersChanged ()
 
void beginFit ()
 
void endFit ()
 
double un_normalised (IDalitzEvent &evt)
 
virtual double getVal (IDalitzEvent &evt)
 
virtual double getVal_withPs (IDalitzEvent &evt)
 
virtual double getVal_noPs (IDalitzEvent &evt)
 
virtual double getVal (IDalitzEvent *evt)
 
virtual double getVal_withPs (IDalitzEvent *evt)
 
virtual double getVal_noPs (IDalitzEvent *evt)
 
 TimePdf_mod (MINT::FitParameter &r, MINT::FitParameter &delta, MINT::FitParameter &gamma, MINT::FitParameter &k, MINT::FitParameter &tau, MINT::FitParameter &dGamma, MINT::FitParameter &dm, MINT::FitParameter &eff_tag, MINT::FitParameter &w)
 
- Public Member Functions inherited from MINT::PdfBase< IDalitzEvent >
 PdfBase ()
 
 PdfBase (const PdfBase< IDalitzEvent > &)
 
virtual double RealVal (IDalitzEvent &evt)
 
virtual double getNewVal (IDalitzEvent &evt)
 
virtual ~PdfBase ()
 
- Public Member Functions inherited from MINT::IPdf< IDalitzEvent >
virtual void Gradient (IDalitzEvent &evt, std::vector< double > &grad, MINT::MinuitParameterSet *mps)
 
virtual bool useAnalyticGradient ()
 
- Public Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
virtual ~IReturnRealForEvent ()
 

Protected Attributes

FitParameter_r
 
FitParameter_delta
 
FitParameter_gamma
 
FitParameter_k
 
FitParameter_tau
 
FitParameter_dGamma
 
FitParameter_dm
 
FitParameter_eff_tag
 
FitParameter_w
 

Additional Inherited Members

- Protected Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
 IReturnRealForEvent ()
 

Detailed Description

Definition at line 1202 of file BsDsKpipi_TD_ampFit.cpp.

Constructor & Destructor Documentation

◆ TimePdf_mod()

TimePdf_mod::TimePdf_mod ( MINT::FitParameter r,
MINT::FitParameter delta,
MINT::FitParameter gamma,
MINT::FitParameter k,
MINT::FitParameter tau,
MINT::FitParameter dGamma,
MINT::FitParameter dm,
MINT::FitParameter eff_tag,
MINT::FitParameter w 
)
inline

Definition at line 1278 of file BsDsKpipi_TD_ampFit.cpp.

1278  :
1279  _r(r),_delta(delta),_gamma(gamma),_k(k),_tau(tau),_dGamma(dGamma),_dm(dm),_eff_tag(eff_tag), _w(w) {;}
FitParameter & _dGamma
FitParameter & _gamma
FitParameter & _dm
FitParameter & _tau
FitParameter & _eff_tag
FitParameter & _r
FitParameter & _w
FitParameter & _k
FitParameter & _delta

Member Function Documentation

◆ beginFit()

void TimePdf_mod::beginFit ( )
inlinevirtual

Reimplemented from MINT::PdfBase< IDalitzEvent >.

Definition at line 1219 of file BsDsKpipi_TD_ampFit.cpp.

1219  {
1220  }

◆ endFit()

void TimePdf_mod::endFit ( )
inlinevirtual

Reimplemented from MINT::PdfBase< IDalitzEvent >.

Definition at line 1221 of file BsDsKpipi_TD_ampFit.cpp.

1221  {
1222  }

◆ getVal() [1/2]

virtual double TimePdf_mod::getVal ( IDalitzEvent evt)
inlinevirtual

Implements MINT::PdfBase< IDalitzEvent >.

Definition at line 1248 of file BsDsKpipi_TD_ampFit.cpp.

1248  {
1249 
1250  const double f = static_cast<double>((int)evt.getValueFromVector(4));
1251  const double D = (double)_r * cos(((double)_delta-(double)_gamma*f)/360.*2*pi)/(1.+(double)_r*(double)_r);
1252 
1253  const double Gamma = 1./((double) _tau);
1254 
1255  double val = un_normalised(evt);
1256 
1257  double norm = 2.* ((4.*Gamma/(4.*Gamma*Gamma-_dGamma*_dGamma)) - 2.0*_k* D * (2.*_dGamma/(4.*Gamma*Gamma-_dGamma*_dGamma)));
1258 
1259  return val/norm;
1260  }
FitParameter & _dGamma
FitParameter & _gamma
static const double pi
FitParameter & _tau
double un_normalised(IDalitzEvent &evt)
virtual double getValueFromVector(unsigned int i) const =0
FitParameter & _r
FitParameter & _k
FitParameter & _delta

◆ getVal() [2/2]

virtual double TimePdf_mod::getVal ( IDalitzEvent evt)
inlinevirtual

Definition at line 1265 of file BsDsKpipi_TD_ampFit.cpp.

1265  {
1266  if(0 == evt) return 0;
1267  return getVal(*evt);
1268  }
virtual double getVal(IDalitzEvent &evt)

◆ getVal_noPs() [1/2]

virtual double TimePdf_mod::getVal_noPs ( IDalitzEvent evt)
inlinevirtual

Definition at line 1263 of file BsDsKpipi_TD_ampFit.cpp.

1263 {return getVal(evt);}
virtual double getVal(IDalitzEvent &evt)

◆ getVal_noPs() [2/2]

virtual double TimePdf_mod::getVal_noPs ( IDalitzEvent evt)
inlinevirtual

Definition at line 1273 of file BsDsKpipi_TD_ampFit.cpp.

1273  {
1274  if(0 == evt) return 0;
1275  return getVal_noPs(*evt);
1276  }
virtual double getVal_noPs(IDalitzEvent &evt)

◆ getVal_withPs() [1/2]

virtual double TimePdf_mod::getVal_withPs ( IDalitzEvent evt)
inlinevirtual

Definition at line 1262 of file BsDsKpipi_TD_ampFit.cpp.

1262 {return getVal(evt);}
virtual double getVal(IDalitzEvent &evt)

◆ getVal_withPs() [2/2]

virtual double TimePdf_mod::getVal_withPs ( IDalitzEvent evt)
inlinevirtual

Definition at line 1269 of file BsDsKpipi_TD_ampFit.cpp.

1269  {
1270  if(0 == evt) return 0;
1271  return getVal_withPs(*evt);
1272  }
virtual double getVal_withPs(IDalitzEvent &evt)

◆ parametersChanged()

void TimePdf_mod::parametersChanged ( )
inlinevirtual

Reimplemented from MINT::PdfBase< IDalitzEvent >.

Definition at line 1217 of file BsDsKpipi_TD_ampFit.cpp.

1217  {
1218  }

◆ un_normalised()

double TimePdf_mod::un_normalised ( IDalitzEvent evt)
inline

Definition at line 1224 of file BsDsKpipi_TD_ampFit.cpp.

1224  {
1225  const double t = (double) evt.getValueFromVector(0);
1226  const double dt = (double) evt.getValueFromVector(1);
1227  const double q = static_cast<double>((int)evt.getValueFromVector(2));
1228  const double w = (double) evt.getValueFromVector(3);
1229  const double f = static_cast<double>((int)evt.getValueFromVector(4));
1230 
1231  const double e_eff = fabs(q)*_eff_tag + (1.-fabs(q))*(1.-_eff_tag);
1232 
1233  const double C = (1.-(double)_r*(double)_r)/(1.+(double)_r*(double)_r);
1234  const double D = (double)_r * cos(((double)_delta-(double)_gamma*f)/360.*2*pi)/(1.+(double)_r*(double)_r);
1235  const double S = (double)_r * sin(((double)_delta-(double)_gamma*f)/360.*2*pi)/(1.+(double)_r*(double)_r);
1236 
1237  const double val = exp(-fabs(t)/(double)_tau) *
1238  (
1239  (2.-fabs(q))*cosh((double)_dGamma/2.*t)
1240  +f*q*(1.-2.*w)* C *cos((double)_dm*t)
1241  -(2.-fabs(q))*2.0*_k* D *sinh((double)_dGamma/2.*t)
1242  -f*2.0*q*(1.-2.*w)*_k* S *sin((double)_dm*t)
1243  )*e_eff;
1244 
1245  return val;
1246  }
FitParameter & _dGamma
FitParameter & _gamma
static const double pi
FitParameter & _dm
FitParameter & _tau
virtual double getValueFromVector(unsigned int i) const =0
FitParameter & _eff_tag
FitParameter & _r
FitParameter & _k
FitParameter & _delta

Member Data Documentation

◆ _delta

FitParameter& TimePdf_mod::_delta
protected

Definition at line 1206 of file BsDsKpipi_TD_ampFit.cpp.

◆ _dGamma

FitParameter& TimePdf_mod::_dGamma
protected

Definition at line 1211 of file BsDsKpipi_TD_ampFit.cpp.

◆ _dm

FitParameter& TimePdf_mod::_dm
protected

Definition at line 1212 of file BsDsKpipi_TD_ampFit.cpp.

◆ _eff_tag

FitParameter& TimePdf_mod::_eff_tag
protected

Definition at line 1213 of file BsDsKpipi_TD_ampFit.cpp.

◆ _gamma

FitParameter& TimePdf_mod::_gamma
protected

Definition at line 1207 of file BsDsKpipi_TD_ampFit.cpp.

◆ _k

FitParameter& TimePdf_mod::_k
protected

Definition at line 1208 of file BsDsKpipi_TD_ampFit.cpp.

◆ _r

FitParameter& TimePdf_mod::_r
protected

Definition at line 1205 of file BsDsKpipi_TD_ampFit.cpp.

◆ _tau

FitParameter& TimePdf_mod::_tau
protected

Definition at line 1210 of file BsDsKpipi_TD_ampFit.cpp.

◆ _w

FitParameter& TimePdf_mod::_w
protected

Definition at line 1214 of file BsDsKpipi_TD_ampFit.cpp.


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