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

#include <phaseSpaceIntegrals.h>

Public Member Functions

 PhaseSpaceIntegral4bodyWith_s12s34 (IGenFct *s12f, IGenFct *s34f, const DalitzEventPattern &pat)
 
double getVal () const
 

Protected Attributes

IGenFct_s12Fct
 
IGenFct_s34Fct
 
DalitzEventPattern _pat
 

Detailed Description

Definition at line 66 of file phaseSpaceIntegrals.h.

Constructor & Destructor Documentation

◆ PhaseSpaceIntegral4bodyWith_s12s34()

PhaseSpaceIntegral4bodyWith_s12s34::PhaseSpaceIntegral4bodyWith_s12s34 ( IGenFct s12f,
IGenFct s34f,
const DalitzEventPattern pat 
)

Definition at line 341 of file phaseSpaceIntegrals.cpp.

345  : _s12Fct(s12f)
346  , _s34Fct(s34f)
347  , _pat(pat)
348 {
349 }

Member Function Documentation

◆ getVal()

double PhaseSpaceIntegral4bodyWith_s12s34::getVal ( ) const

Definition at line 362 of file phaseSpaceIntegrals.cpp.

362  {
363  bool dbThis=true;
364 
365  double xmi = _s12Fct->getRhoMi();
366  double xma = _s12Fct->getRhoMa();
367 
368  double ymi = _s34Fct->getRhoMi();
369  double yma = _s34Fct->getRhoMa();
370 
371  const int numParticles=5;
372 
375 
376  Double_t p[numParticles];
377  for(int i=0; i < numParticles; i++){
378  p[i] = _pat[i].mass();
379  }
380 
381  TF2 intFunc("d_ps4_by_ds12ds34_withFct"
383  , xmi, xma
384  , ymi, yma
385  , numParticles
386  );
387 
388 
389  intFunc.SetParameters(p);
390 
391  Double_t a[2];
392  Double_t b[2];
393  a[0]=xmi; b[0]=xma;
394  a[1]=ymi; b[1]=yma;
395 
396  Int_t nDim = 2;
397  Int_t mipt = 4000000;
398  Int_t mapt = 400000000;
399  Double_t epsilon = 1.e-8;
400  Double_t relerr = -1;
401  Int_t nfnevl = 9999;
402  Int_t iFail = -9999;
403  double returnVal = intFunc.IntegralMultiple(nDim, a, b
404  , mipt, mapt
405  , epsilon, relerr
406  , nfnevl, iFail);
407  if(dbThis){
408  cout << "12, 34: just called : "
409  << " intFunc.IntegralMultiple( " << nDim
410  << ", " << a[0] << "-" << b[0]
411  << ", " << a[1] << "-" << b[1]
412  << ", " << mipt <<", " << mapt
413  << ", " << epsilon << ", " << relerr
414  << ", " << nfnevl << ", " << iFail
415  << " );"
416  << " = " << returnVal << endl;
417  // cout << " ..... compare with: " << intFunc.Integral(xmi, xma, ymi, yma) << endl;
418 
419  }
420  return returnVal;
421 
422 }
IGenFct * Global_s34Fct
IGenFct * Global_s12Fct
virtual double getRhoMi() const
Definition: IGenFct.h:38
double d_ps4_by_ds12ds34_withFct(Double_t *x, Double_t *p)
virtual double getRhoMa() const
Definition: IGenFct.h:39

Member Data Documentation

◆ _pat

DalitzEventPattern PhaseSpaceIntegral4bodyWith_s12s34::_pat
protected

Definition at line 69 of file phaseSpaceIntegrals.h.

◆ _s12Fct

IGenFct* PhaseSpaceIntegral4bodyWith_s12s34::_s12Fct
protected

Definition at line 68 of file phaseSpaceIntegrals.h.

◆ _s34Fct

IGenFct * PhaseSpaceIntegral4bodyWith_s12s34::_s34Fct
protected

Definition at line 68 of file phaseSpaceIntegrals.h.


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