MINT2
DalitzSumPdf.h
Go to the documentation of this file.
1 #ifndef DALITZ_SUM_PDF_HH
2 #define DALITZ_SUM_PDF_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:18:02 GMT
5 
6 #include "Mint/SumPdf.h"
7 #include "Mint/IDalitzEvent.h"
8 #include "Mint/PdfBase.h"
9 
10 #include "Mint/IDalitzPdf.h"
11 #include "Mint/FitParameter.h"
12 #include "Mint/IPdf.h"
13 #include "Mint/IEventList.h"
14 
15 #include "Mint/IDalitzEvent.h"
17 
18 
20 : public MINT::SumPdf<IDalitzEvent>
21 , virtual public IDalitzPdf{
22  protected:
25 
26  private: // no copying
27  DalitzSumPdf(const DalitzSumPdf& other);
28 
29  public:
31  , IDalitzPdf& pdf_1
32  , IDalitzPdf& pdf_2);
33 
34  virtual double phaseSpace(IDalitzEvent& evt);
35  virtual double getVal(IDalitzEvent& evt);
36  virtual double getVal_noPs(IDalitzEvent& evt);
37  virtual double getVal_withPs(IDalitzEvent& evt);
38  virtual double RealVal(IDalitzEvent& evt){return getVal(evt);}
39 
40  // the next three are for backward compatibility only
41  // and will disappear in the near future.
42  virtual double getVal(IDalitzEvent* evt){
43  if(0 == evt) return 0;
44  return getVal(*evt);
45  }
46  virtual double getVal_noPs(IDalitzEvent* evt){
47  if(0 == evt) return 0;
48  return getVal_noPs(*evt);
49  }
50  virtual double getVal_withPs(IDalitzEvent* evt){
51  if(0 == evt) return 0;
52  return getVal_withPs(*evt);
53  }
54 
57  hset += (1.0-_f1)*_dalitz_pdf_2.histoSet();
58  return hset;
59  }
60 
61 };
62 
63 #endif
64 //
virtual DalitzHistoSet histoSet()=0
DalitzSumPdf(const DalitzSumPdf &other)
virtual double getVal_withPs(IDalitzEvent &evt)
virtual double RealVal(IDalitzEvent &evt)
Definition: DalitzSumPdf.h:38
IDalitzPdf & _dalitz_pdf_1
Definition: DalitzSumPdf.h:23
virtual double getVal_noPs(IDalitzEvent *evt)
Definition: DalitzSumPdf.h:46
FitParameter & _f1
Definition: SumPdf.h:19
virtual double getVal_withPs(IDalitzEvent *evt)
Definition: DalitzSumPdf.h:50
virtual DalitzHistoSet histoSet()
Definition: DalitzSumPdf.h:55
virtual double phaseSpace(IDalitzEvent &evt)
IDalitzPdf & _dalitz_pdf_2
Definition: DalitzSumPdf.h:24
virtual double getVal(IDalitzEvent &evt)
virtual double getVal_noPs(IDalitzEvent &evt)
virtual double getVal(IDalitzEvent *evt)
Definition: DalitzSumPdf.h:42