MINT2
singleTopHatShape.h
Go to the documentation of this file.
1 #ifndef MINTLINESHAPES_SINGLE_HAT_SHAPE_HH
2 #define MINTLINESHAPES_SINGLE_HAT_SHAPE_HH
3 
4 #include <complex>
5 #include <string>
6 //
7 #include <complex>
8 #include <string>
9 #include <iostream>
10 
11 #include "Mint/FitParDependent.h"
12 
13 #include "Mint/ILineshape.h"
15 #include "Mint/IDalitzEvent.h"
16 
17 #include "Mint/DalitzCoordinate.h"
18 #include "Mint/IGenFct.h"
19 
20 class singleTopHatShape : virtual public ILineshape, public MINT::FitParDependent{
21  private:
23  void makeGeneratingFunction() const;
24  protected:
25 
27  double _min_sij, _max_sij;
28 
29  double min()const{return _min_sij;}
30  double max()const{return _max_sij;}
31 
32  bool startOfDecayChain() const{return !(_theDecay.hasParent());}
33  double mumsRecoMass2(IDalitzEvent& evt) const;
34 
35  std::string _prefix;
36  const std::string& prefix() const{return _prefix;}
37 
38  public:
40  , double mini, double maxi, const std::string& namePrefix="");
42 
43  virtual std::complex<double> getVal(IDalitzEvent& evt);
44  virtual std::complex<double> getValue(IDalitzEvent& evt) const; // not required, but useful
45 
46  virtual DalitzCoordinate getDalitzCoordinate(double nSigma=3) const;
47  virtual void print(IDalitzEvent& evt, std::ostream& out = std::cout) const;
48  virtual void print(std::ostream& out = std::cout) const;
49  virtual std::string name() const;
51 
52 
53  virtual ~singleTopHatShape(){};
54 };
55 std::ostream& operator<<(std::ostream& out, const singleTopHatShape& amp);
56 
57 #endif
58 //
const std::string & prefix() const
void makeGeneratingFunction() const
virtual DalitzCoordinate getDalitzCoordinate(double nSigma=3) const
double max() const
virtual std::string name() const
virtual std::complex< double > getValue(IDalitzEvent &evt) const
const AssociatedDecayTree & _theDecay
MINT::counted_ptr< IGenFct > _genFct
virtual ~singleTopHatShape()
virtual MINT::counted_ptr< IGenFct > generatingFunction() const
std::ostream & operator<<(std::ostream &out, const singleTopHatShape &amp)
singleTopHatShape(const AssociatedDecayTree &decay, double mini, double maxi, const std::string &namePrefix="")
bool hasParent() const
Definition: DDTree.h:154
virtual void print(IDalitzEvent &evt, std::ostream &out=std::cout) const
double mumsRecoMass2(IDalitzEvent &evt) const
bool startOfDecayChain() const
virtual std::complex< double > getVal(IDalitzEvent &evt)
double min() const