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

#include <DalitzSumPdf.h>

Inheritance diagram for DalitzSumPdf:
MINT::SumPdf< IDalitzEvent > IDalitzPdf MINT::PdfBase< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent > MINT::IPdf< IDalitzEvent > MINT::IPdf< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnRealForEvent< IDalitzEvent >

Public Member Functions

 DalitzSumPdf (MINT::FitParameter &f1, IDalitzPdf &pdf_1, IDalitzPdf &pdf_2)
 
virtual double phaseSpace (IDalitzEvent &evt)
 
virtual double getVal (IDalitzEvent &evt)
 
virtual double getVal_noPs (IDalitzEvent &evt)
 
virtual double getVal_withPs (IDalitzEvent &evt)
 
virtual double RealVal (IDalitzEvent &evt)
 
virtual double getVal (IDalitzEvent *evt)
 
virtual double getVal_noPs (IDalitzEvent *evt)
 
virtual double getVal_withPs (IDalitzEvent *evt)
 
virtual DalitzHistoSet histoSet ()
 
- Public Member Functions inherited from MINT::SumPdf< IDalitzEvent >
 SumPdf (FitParameter &f1, IPdf< IDalitzEvent > &pdf_1, IPdf< IDalitzEvent > &pdf_2)
 
 SumPdf (const SumPdf &other)
 
virtual void beginFit ()
 
virtual void parametersChanged ()
 
virtual void endFit ()
 
virtual void Gradient (IDalitzEvent &evt, std::vector< double > &grad, MINT::MinuitParameterSet *mps)
 
virtual bool useAnalyticGradient ()
 
virtual ~SumPdf ()
 
- Public Member Functions inherited from MINT::PdfBase< IDalitzEvent >
 PdfBase ()
 
 PdfBase (const PdfBase< IDalitzEvent > &)
 
virtual double getNewVal (IDalitzEvent &evt)
 
virtual ~PdfBase ()
 
- Public Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
virtual ~IReturnRealForEvent ()
 

Protected Attributes

IDalitzPdf_dalitz_pdf_1
 
IDalitzPdf_dalitz_pdf_2
 
- Protected Attributes inherited from MINT::SumPdf< IDalitzEvent >
FitParameter_f1
 
IPdf< IDalitzEvent > & _pdf_1
 
IPdf< IDalitzEvent > & _pdf_2
 

Private Member Functions

 DalitzSumPdf (const DalitzSumPdf &other)
 

Additional Inherited Members

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

Detailed Description

Definition at line 19 of file DalitzSumPdf.h.

Constructor & Destructor Documentation

◆ DalitzSumPdf() [1/2]

DalitzSumPdf::DalitzSumPdf ( const DalitzSumPdf other)
private

Definition at line 20 of file DalitzSumPdf.cpp.

23  , IDalitzPdf()
24  , SumPdf<IDalitzEvent>(other)
26 {
27  cout << "DON'T USE copy-constructor WITH DalitzSumPdf!!" << endl;
28 }
IDalitzPdf & _dalitz_pdf_1
Definition: DalitzSumPdf.h:23
IDalitzPdf & _dalitz_pdf_2
Definition: DalitzSumPdf.h:24

◆ DalitzSumPdf() [2/2]

DalitzSumPdf::DalitzSumPdf ( MINT::FitParameter f1,
IDalitzPdf pdf_1,
IDalitzPdf pdf_2 
)

Definition at line 30 of file DalitzSumPdf.cpp.

34  , pdf_1
35  , pdf_2)
36  , _dalitz_pdf_1(pdf_1)
37  , _dalitz_pdf_2(pdf_2)
38 {
39 }
IDalitzPdf & _dalitz_pdf_1
Definition: DalitzSumPdf.h:23
IDalitzPdf & _dalitz_pdf_2
Definition: DalitzSumPdf.h:24

Member Function Documentation

◆ getVal() [1/2]

double DalitzSumPdf::getVal ( IDalitzEvent evt)
virtual

Implements IDalitzPdf.

Definition at line 44 of file DalitzSumPdf.cpp.

44  {
45  bool dbThis=false;
46  if(dbThis) cout << "DalitzSumPdf::getVal(): you called? " << endl;
47  return getVal_noPs(evt);
48 }
virtual double getVal_noPs(IDalitzEvent &evt)

◆ getVal() [2/2]

virtual double DalitzSumPdf::getVal ( IDalitzEvent evt)
inlinevirtual

Implements IDalitzPdf.

Definition at line 42 of file DalitzSumPdf.h.

42  {
43  if(0 == evt) return 0;
44  return getVal(*evt);
45  }
virtual double getVal(IDalitzEvent &evt)

◆ getVal_noPs() [1/2]

double DalitzSumPdf::getVal_noPs ( IDalitzEvent evt)
virtual

Implements IDalitzPdf.

Definition at line 49 of file DalitzSumPdf.cpp.

49  {
50  bool dbThis=false;
51  if(dbThis) {
52  cout << "DalitzSumPdf::getVal_noPs(): you called? " << endl;
53  cout << "DalitzSumPdf::getVal_noPs(): about to return:" << endl;
54  cout << "DalitzSumPdf::getVal_noPs(): " << _f1 << " * " << endl;
55  cout << "DalitzSumPdf::getVal_noPs(): " << _dalitz_pdf_1.getVal_noPs(evt)
56  << " + " << endl;
57  cout << "DalitzSumPdf::getVal_noPs(): (" << 1 - _f1 << ") * "
58  << _dalitz_pdf_1.getVal_noPs(evt) << endl;
59  }
60  double returnVal =
62  (1.0 - _f1) * _dalitz_pdf_2.getVal_noPs(evt);
63  if(dbThis) cout << "DalitzSumPdf::getVal_noPs(): returning "
64  << returnVal << endl;
65  return returnVal;
66 }
IDalitzPdf & _dalitz_pdf_1
Definition: DalitzSumPdf.h:23
FitParameter & _f1
Definition: SumPdf.h:19
IDalitzPdf & _dalitz_pdf_2
Definition: DalitzSumPdf.h:24
virtual double getVal_noPs(IDalitzEvent &evt)=0

◆ getVal_noPs() [2/2]

virtual double DalitzSumPdf::getVal_noPs ( IDalitzEvent evt)
inlinevirtual

Implements IDalitzPdf.

Definition at line 46 of file DalitzSumPdf.h.

46  {
47  if(0 == evt) return 0;
48  return getVal_noPs(*evt);
49  }
virtual double getVal_noPs(IDalitzEvent &evt)

◆ getVal_withPs() [1/2]

double DalitzSumPdf::getVal_withPs ( IDalitzEvent evt)
virtual

Implements IDalitzPdf.

Definition at line 67 of file DalitzSumPdf.cpp.

67  {
68  return getVal_noPs(evt)*phaseSpace(evt);
69 }
virtual double phaseSpace(IDalitzEvent &evt)
virtual double getVal_noPs(IDalitzEvent &evt)

◆ getVal_withPs() [2/2]

virtual double DalitzSumPdf::getVal_withPs ( IDalitzEvent evt)
inlinevirtual

Implements IDalitzPdf.

Definition at line 50 of file DalitzSumPdf.h.

50  {
51  if(0 == evt) return 0;
52  return getVal_withPs(*evt);
53  }
virtual double getVal_withPs(IDalitzEvent &evt)

◆ histoSet()

virtual DalitzHistoSet DalitzSumPdf::histoSet ( )
inlinevirtual

Implements IDalitzPdf.

Definition at line 55 of file DalitzSumPdf.h.

55  {
57  hset += (1.0-_f1)*_dalitz_pdf_2.histoSet();
58  return hset;
59  }
virtual DalitzHistoSet histoSet()=0
IDalitzPdf & _dalitz_pdf_1
Definition: DalitzSumPdf.h:23
FitParameter & _f1
Definition: SumPdf.h:19
IDalitzPdf & _dalitz_pdf_2
Definition: DalitzSumPdf.h:24

◆ phaseSpace()

double DalitzSumPdf::phaseSpace ( IDalitzEvent evt)
virtual

Definition at line 41 of file DalitzSumPdf.cpp.

41  {
42  return evt.phaseSpace();
43 }
virtual double phaseSpace() const =0

◆ RealVal()

virtual double DalitzSumPdf::RealVal ( IDalitzEvent evt)
inlinevirtual

Implements MINT::IPdf< IDalitzEvent >.

Definition at line 38 of file DalitzSumPdf.h.

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

Member Data Documentation

◆ _dalitz_pdf_1

IDalitzPdf& DalitzSumPdf::_dalitz_pdf_1
protected

Definition at line 23 of file DalitzSumPdf.h.

◆ _dalitz_pdf_2

IDalitzPdf& DalitzSumPdf::_dalitz_pdf_2
protected

Definition at line 24 of file DalitzSumPdf.h.


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