MINT2
FermiPS_BW.h
Go to the documentation of this file.
1 #ifndef FERMIPS_BW_LINESHAPE_HH
2 #define FERMIPS_BW_LINESHAPE_HH
3 // author: Philippe d'Argent (p.dargent@cern.ch)
4 // status: 19 March 2015 GMT
5 
6 #include <complex>
7 #include <string>
8 
9 #include "Mint/ILineshape.h"
10 #include "Mint/BW_BW.h"
11 #include "Mint/NamedParameter.h"
14 #include "Mint/FitParDependent.h"
16 
17 using namespace MINT;
18 
19 class FermiPS_BW : public BW_BW, virtual public ILineshape{
20  public:
21 
22  FermiPS_BW( const AssociatedDecayTree& tree, const std::string& namePrefix):
23  BW_BW(tree, namePrefix), _threshold(0)
24  //, _lambda("Fermi_lambda", 1, 2. , 0, 0, 0, 0, NamedParameterBase::QUIET)
25  //, _s0("Fermi_s0", 1, 2. , 0, 0, 0, 0, NamedParameterBase::QUIET)
26  {
27  /*
28  _fittableLambdaPtr = new FitParRef(_lambda, this);
29  _fittableS0Ptr = new FitParRef(_s0, this);
30  std::cout << "threshold = " << _threshold << std::endl;
31  std::cout << "lambda = " << _lambda << std::endl;
32  std::cout << "s0 = " << _s0 << std::endl;
33  */
34  std::vector<const AssociatedDecayTreeItem*> adti = _theDecay.finalState();
35  for (unsigned int i=0; i<adti.size(); i++) {
36  _threshold += adti[i]->mass();
37  }
38  std::cout << "FermiPS_threshold = " << _threshold << " for decay " << _theDecay.oneLiner() << std::endl;
39  }
40 
41  virtual std::string name() const{
42  return "FermiPS_BW("+_theDecay.oneLiner() +")";
43  }
44 
45  virtual ~FermiPS_BW(){}
46 
47  protected:
48  //MINT::FitParameter _lambda;
49  //MINT::FitParameter _s0;
50  //MINT::FitParRef* _fittableLambdaPtr;
51  //MINT::FitParRef* _fittableS0Ptr;
52  double lambda() const{
53  return mumsFittableProperties().fermiLambda();
54  }
55  double s0() const{
56  return mumsFittableProperties().fermiS0();
57  }
58  double _threshold;
59  double phaseSpace(double s);
60  virtual double GofM();
61 
62 };
63 
64 #endif
65 //
double _threshold
Definition: FermiPS_BW.h:58
double lambda() const
Definition: FermiPS_BW.h:52
double s0() const
Definition: FermiPS_BW.h:55
static const double s
virtual std::string name() const
Definition: FermiPS_BW.h:41
Definition: BW_BW.h:30
Double_t phaseSpace(Double_t *x, Double_t *par)
Definition: Histo_BW.cpp:79
virtual ~FermiPS_BW()
Definition: FermiPS_BW.h:45
FermiPS_BW(const AssociatedDecayTree &tree, const std::string &namePrefix)
Definition: FermiPS_BW.h:22