MINT2
Public Member Functions | Private Attributes | List of all members
DalitzMCIntegrator::integrationWeight Class Reference
Inheritance diagram for DalitzMCIntegrator::integrationWeight:
MINT::IReturnRealForEvent< IDalitzEvent >

Public Member Functions

 integrationWeight (MINT::IReturnRealForEvent< IDalitzEvent > *externalPdf)
 
void setWeight (MINT::IReturnRealForEvent< IDalitzEvent > *pdf)
 
double RealVal (IDalitzEvent &evt)
 
- Public Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
virtual ~IReturnRealForEvent ()
 

Private Attributes

MINT::IReturnRealForEvent< IDalitzEvent > * _externalPdf
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file DalitzMCIntegrator.h.

Constructor & Destructor Documentation

◆ integrationWeight()

DalitzMCIntegrator::integrationWeight::integrationWeight ( MINT::IReturnRealForEvent< IDalitzEvent > *  externalPdf)

Definition at line 268 of file DalitzMCIntegrator.cpp.

269  : _externalPdf(externalPdf)
270 {
271  cout << "after construction, externalPdf = " << _externalPdf << endl;
272 }
MINT::IReturnRealForEvent< IDalitzEvent > * _externalPdf

Member Function Documentation

◆ RealVal()

double DalitzMCIntegrator::integrationWeight::RealVal ( IDalitzEvent evt)
virtual

Implements MINT::IReturnRealForEvent< IDalitzEvent >.

Definition at line 275 of file DalitzMCIntegrator.cpp.

275  {
276  double den = evt.getGeneratorPdfRelativeToPhaseSpace();
277  double weight = evt.getWeight();
278  if(0 != den) weight /= den;
279  double val = _externalPdf->RealVal(evt) * weight;
280 
281  return val;
282 }
virtual double getWeight() const =0
virtual double RealVal(EVENT_TYPE &evt)=0
MINT::IReturnRealForEvent< IDalitzEvent > * _externalPdf
virtual double getGeneratorPdfRelativeToPhaseSpace() const =0

◆ setWeight()

void DalitzMCIntegrator::integrationWeight::setWeight ( MINT::IReturnRealForEvent< IDalitzEvent > *  pdf)

Definition at line 285 of file DalitzMCIntegrator.cpp.

285  {
286  _externalPdf = pdf;
287 }
MINT::IReturnRealForEvent< IDalitzEvent > * _externalPdf

Member Data Documentation

◆ _externalPdf

MINT::IReturnRealForEvent<IDalitzEvent>* DalitzMCIntegrator::integrationWeight::_externalPdf
private

Definition at line 32 of file DalitzMCIntegrator.h.


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