MINT2
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Flatte Class Reference

#include <Flatte.h>

Inheritance diagram for Flatte:
BW_BW ILineshape ILineshape MINT::FitParDependent MINT::IFitParDependent MINT::IFitParDependent MINT::IFitParRegister MINT::PolymorphVector< FitParRef > MINT::IFitParDependent

Public Member Functions

 Flatte (const AssociatedDecayTree &decay, const std::string &namePrefix="")
 
virtual std::string name () const
 
virtual ~Flatte ()
 
- Public Member Functions inherited from BW_BW
virtual double prSq () const
 
virtual double prSqForGofM () const
 
virtual double pABSq ()
 
virtual double prSqMax () const
 
 BW_BW (const AssociatedDecayTree &decay, const std::string &lineshapePrefix="", MINT::MinuitParameterSet *mps=0)
 
 BW_BW (const BW_BW &other)
 
virtual ~BW_BW ()
 
virtual std::complex< double > getVal (IDalitzEvent &evt)
 
virtual void print (IDalitzEvent &evt, std::ostream &out=std::cout)
 
virtual void print (std::ostream &out=std::cout) const
 
virtual DalitzCoordinate getDalitzCoordinate (double nSigma=3) const
 
virtual MINT::counted_ptr< IGenFctgeneratingFunction () const
 
virtual void setGenerationLimits (double mi, double ma)
 
virtual int twoLPlusOne () const
 
virtual std::complex< double > EvtGenValue (IDalitzEvent &evt)
 
- Public Member Functions inherited from ILineshape
virtual ~ILineshape ()
 
- Public Member Functions inherited from MINT::FitParDependent
virtual unsigned int size () const
 
virtual const FitParRefoperator[] (unsigned int i) const
 
virtual FitParRefoperator[] (unsigned int i)
 
virtual bool changedSinceLastCall () const
 
virtual void rememberFitParValues ()
 
virtual bool registerFitParDependence (const IFitParDependent &fpd)
 
bool registerFitParDependence (const FitParRef &fpr)
 
void removeAllFitParDependencies ()
 
 FitParDependent (IFitParRegister *daddy=0)
 
 FitParDependent (const FitParDependent &other, IFitParRegister *newDaddy=0)
 
void listFitParDependencies (std::ostream &os=std::cout) const
 
- Public Member Functions inherited from MINT::PolymorphVector< FitParRef >
 PolymorphVector ()
 
 PolymorphVector (unsigned int N)
 
 PolymorphVector (unsigned int N, const FitParRef &c)
 
 PolymorphVector (const PolymorphVector &other)
 
 PolymorphVector (const typename std::vector< FitParRef > &other)
 
virtual ~PolymorphVector ()
 
std::vector< FitParRef > & theVector ()
 
const std::vector< FitParRef > & theVector () const
 
FitParRefoperator[] (unsigned int i)
 
const FitParRefoperator[] (unsigned int i) const
 
FitParRefat (unsigned int i)
 
const FitParRefat (unsigned int i) const
 
std::vector< FitParRef >::iterator begin ()
 
std::vector< FitParRef >::const_iterator begin () const
 
std::vector< FitParRef >::iterator end ()
 
std::vector< FitParRef >::const_iterator end () const
 
std::vector< FitParRef >::iterator find (const FitParRef &c)
 
std::vector< FitParRef >::const_iterator find (const FitParRef &c) const
 
FitParReffront ()
 
const FitParReffront () const
 
FitParRefback ()
 
const FitParRefback () const
 
unsigned int size () const
 
bool empty () const
 
void push_back (const FitParRef &c)
 
void pop_back ()
 
void erase (typename std::vector< FitParRef >::iterator pos)
 
void erase (typename std::vector< FitParRef >::iterator first, typename std::vector< FitParRef >::iterator last)
 
PolymorphVector< FitParRef > & operator= (const PolymorphVector< FitParRef > &other)
 
void clear ()
 
void resize (unsigned int N)
 
void resize (unsigned int N, const FitParRef &c)
 
 operator const typename std::vector< FitParRef > & () const
 
 operator typename std::vector< FitParRef > & ()
 
bool operator== (const MINT::PolymorphVector< FitParRef > &v2) const
 
bool operator!= (const MINT::PolymorphVector< FitParRef > &v2) const
 
bool operator< (const MINT::PolymorphVector< FitParRef > &v2) const
 
bool operator> (const MINT::PolymorphVector< FitParRef > &v2) const
 

Protected Member Functions

double gPi () const
 
double gK () const
 
virtual double GofM ()
 
std::complex< double > complexGofM ()
 
virtual std::complex< double > BreitWigner ()
 
double mPi0 ()
 
double mPiPlus ()
 
double mK0 ()
 
double mKPlus ()
 
- Protected Member Functions inherited from BW_BW
const MINT::MinuitParameterSetgetMinuitParameterSet () const
 
MINT::MinuitParameterSetgetMinuitParameterSet ()
 
const std::string & prefix () const
 
bool substitutePDGForReco () const
 
virtual double twoBody_dgtPsq_in_MumsFrame (double mumsMass, double mA, double mB) const
 
virtual double twoBody_dgtPsq_in_MumsPDGFrame () const
 
virtual double twoBody_recodgtPsq_in_MumsPDGFrame () const
 
virtual double twoBody_dgtPsq_in_MumsRecoFrame ()
 
bool setEventPtr (IDalitzEvent &evt) const
 
IDalitzEventgetEvent () const
 
bool setAllFitParameters ()
 
ResonancePropertiesListresonancePropertiesList () const
 
const ResonancePropertiesresonanceProperties () const
 
virtual const ParticlePropertiesmumsProperties () const
 
virtual ResonancePropertiesFitRefmumsFittableProperties () const
 
virtual int mumsPID () const
 
virtual double mumsMass () const
 
virtual double mumsWidth () const
 
virtual double mumsRadius () const
 
virtual double globalRadius () const
 
virtual double Radius () const
 
double GetAlpha () const
 
virtual int lowestPossibleTwoLPlusOne () const
 
virtual int maxDaughterSpinSum () const
 
virtual int minDaughterSpinSum () const
 
virtual int minDaughterSpinSum2 () const
 
virtual int minDaughterSpinSum3 () const
 
virtual int minDaughterSpinSum4 () const
 
virtual int maxDaughterPairSpinSum (int i, int j) const
 
virtual int minDaughterPairSpinSum (int i, int j) const
 
virtual std::string mumsSpin () const
 
virtual int mumsSpinValue () const
 
virtual int mumsParity () const
 
virtual bool startOfDecayChain () const
 
virtual bool parityConservingL (int L) const
 
virtual double mumsRecoMass2 () const
 
virtual double mumsRecoMass () const
 
virtual MultiQuarkContent mumsQuarkContent () const
 
bool nonResonant () const
 
virtual int numDaughters () const
 
virtual TLorentzVector daughterP4 (int i) const
 
virtual double daughterPDGMass (const int &i) const
 
virtual double daughterWidth (int i) const
 
virtual double daughterRecoMass2 (int i) const
 
virtual double daughterRecoMass (int i) const
 
virtual std::string daughterSpin (int i) const
 
virtual int daughterSpinValue (int i) const
 
virtual MultiQuarkContent daughterQuarkContent (int i) const
 
virtual int daughterP (int i) const
 
virtual int dgtrsInternalParity () const
 
virtual MultiQuarkContent dgtrsQuarkContent () const
 
virtual bool isWeakDecay () const
 
virtual double Fr_PDG_BL ()
 
virtual double Fr_BELLE (double prSquared)
 
virtual double Fr_BELLE_Max ()
 
virtual double Fr ()
 
virtual double FrForGofM ()
 
virtual double FrMax ()
 
virtual void resetInternals ()
 
virtual void resetPDG ()
 

Static Protected Member Functions

static std::complex< double > aSqrtTerm (const double &a, const double &b)
 
static double pdgMass (int PDG_ID)
 

Protected Attributes

double _pi0Mass
 
double _piPlusMass
 
double _K0Mass
 
double _KPlusMass
 
- Protected Attributes inherited from BW_BW
MINT::MinuitParameterSet_mps
 
std::string _prefix
 
MINT::NamedParameter< int > _normBF
 
bool _useGlobalRadius
 
const AssociatedDecayTree_theDecay
 
double _gen_s_mi
 
double _gen_s_ma
 
ResonancePropertiesList_RPL
 
ResonancePropertiesFitRef_fittableResonancePropertiesPtr
 
MINT::FitParRef_fittableGlobalRadiusPtr
 
- Protected Attributes inherited from MINT::PolymorphVector< FitParRef >
std::vector< FitParRef_vec
 

Detailed Description

Definition at line 19 of file Flatte.h.

Constructor & Destructor Documentation

◆ Flatte()

Flatte::Flatte ( const AssociatedDecayTree decay,
const std::string &  namePrefix = "" 
)
inline

Definition at line 42 of file Flatte.h.

43  : BW_BW(decay, namePrefix)
44  , _pi0Mass(-9999.0)
45  , _piPlusMass(-9999.0)
46  , _K0Mass(-9999.0)
47  , _KPlusMass(-9999.0)
48  {
49  }
double _piPlusMass
Definition: Flatte.h:22
BW_BW(const AssociatedDecayTree &decay, const std::string &lineshapePrefix="", MINT::MinuitParameterSet *mps=0)
Definition: BW_BW.cpp:26
double _K0Mass
Definition: Flatte.h:23
double _pi0Mass
Definition: Flatte.h:21
double _KPlusMass
Definition: Flatte.h:24

◆ ~Flatte()

virtual Flatte::~Flatte ( )
inlinevirtual

Definition at line 60 of file Flatte.h.

60 {}

Member Function Documentation

◆ aSqrtTerm()

std::complex< double > Flatte::aSqrtTerm ( const double &  a,
const double &  b 
)
staticprotected

Definition at line 49 of file Flatte.cpp.

49  {
50  const bool dbThis=false;
51 
52  const double a2 = 1.0 - (2*m0/m)*(2*m0/m);
53  std::complex<double> a;
54 
55  if( a2 < 0 ){
56  if(dbThis){
57  std::cout << "WARNING in Flatte::aSqrtTerm()"
58  << " sqrt( 1.0 - (2m0/m)^2 ) imaginary"
59  << " (returning an imaginary number)."
60  << std::endl;
61  }
62  const std::complex<double> i(0.0, 1.0);
63  a = i * sqrt(fabs(a2));
64  }else{
65  const std::complex<double> unit(1.0, 0.0);
66  a = ((std::complex<double>) sqrt(a2)) * unit;
67  }
68  return a;
69 }
static const double m

◆ BreitWigner()

std::complex< double > Flatte::BreitWigner ( )
protectedvirtual

Reimplemented from BW_BW.

Definition at line 99 of file Flatte.cpp.

99  {
100  double mpdg = mumsMass();
101  std::complex<double> i(0.0, 1.0);
102  std::complex<double> invBW = (((std::complex<double>) mpdg*mpdg -
103  mumsRecoMass2()) - i * mpdg * complexGofM());
104  return 1.*GeV*GeV/invBW;
105 
106 }
virtual double mumsMass() const
Definition: BW_BW.cpp:453
std::complex< double > complexGofM()
Definition: Flatte.cpp:72
virtual double mumsRecoMass2() const
Definition: BW_BW.cpp:548
static const double GeV

◆ complexGofM()

std::complex< double > Flatte::complexGofM ( )
protected

Definition at line 72 of file Flatte.cpp.

72  {
73  bool dbThis=false;
74 
75  double m = BW_BW::mumsRecoMass();
76 
77  std::complex<double> Gpipi = (1./3.) * aSqrtTerm( mPi0(), m )
78  + (2./3.) * aSqrtTerm( mPiPlus(), m );
79 
80 
81  std::complex<double> GKK = (1./2.) * aSqrtTerm( mK0(), m )
82  + (1./2.) * aSqrtTerm( mKPlus(), m );
83 
84  std::complex<double> FlatteWidth = gPi() * Gpipi + gK() * GKK;
85  if(dbThis){
86  cout << "Flatte: compare Flatte Width = " << FlatteWidth
87  << " BW_BW::GofM() " << BW_BW::GofM()
88  << endl;
89  }
90  return FlatteWidth;
91 }
double mK0()
Definition: Flatte.cpp:36
static std::complex< double > aSqrtTerm(const double &a, const double &b)
Definition: Flatte.cpp:49
double mPi0()
Definition: Flatte.cpp:24
double gPi() const
Definition: Flatte.cpp:14
static const double m
double mPiPlus()
Definition: Flatte.cpp:30
double gK() const
Definition: Flatte.cpp:17
virtual double GofM()
Definition: BW_BW.cpp:1035
double mKPlus()
Definition: Flatte.cpp:42
virtual double mumsRecoMass() const
Definition: BW_BW.cpp:631

◆ gK()

double Flatte::gK ( ) const
protected

Definition at line 17 of file Flatte.cpp.

17  {
19 }
double gPi() const
Definition: Flatte.cpp:14
virtual ResonancePropertiesFitRef & mumsFittableProperties() const
Definition: BW_BW.cpp:414

◆ GofM()

double Flatte::GofM ( )
protectedvirtual

Reimplemented from BW_BW.

Definition at line 93 of file Flatte.cpp.

93  {
94  cout << "ERROR Flatte::GofM() called should not have happenned!" <<endl;
95  std::complex<double> val = complexGofM();
96  return abs(val);
97 }
std::complex< double > complexGofM()
Definition: Flatte.cpp:72

◆ gPi()

double Flatte::gPi ( ) const
protected

Definition at line 14 of file Flatte.cpp.

14  {
16 }
virtual ResonancePropertiesFitRef & mumsFittableProperties() const
Definition: BW_BW.cpp:414

◆ mK0()

double Flatte::mK0 ( )
protected

Definition at line 36 of file Flatte.cpp.

36  {
37  if (_K0Mass <= 0){
38  _K0Mass = pdgMass(311);
39  }
40  return _K0Mass;
41 }
static double pdgMass(int PDG_ID)
Definition: Flatte.cpp:21
double _K0Mass
Definition: Flatte.h:23

◆ mKPlus()

double Flatte::mKPlus ( )
protected

Definition at line 42 of file Flatte.cpp.

42  {
43  if (_KPlusMass <= 0){
44  _KPlusMass = pdgMass(321);
45  }
46  return _KPlusMass;
47 }
static double pdgMass(int PDG_ID)
Definition: Flatte.cpp:21
double _KPlusMass
Definition: Flatte.h:24

◆ mPi0()

double Flatte::mPi0 ( )
protected

Definition at line 24 of file Flatte.cpp.

24  {
25  if (_pi0Mass <= 0){
26  _pi0Mass = pdgMass(111);
27  }
28  return _pi0Mass;
29 }
static double pdgMass(int PDG_ID)
Definition: Flatte.cpp:21
double _pi0Mass
Definition: Flatte.h:21

◆ mPiPlus()

double Flatte::mPiPlus ( )
protected

Definition at line 30 of file Flatte.cpp.

30  {
31  if (_piPlusMass <= 0){
32  _piPlusMass = pdgMass(211);
33  }
34  return _piPlusMass;
35 }
double _piPlusMass
Definition: Flatte.h:22
static double pdgMass(int PDG_ID)
Definition: Flatte.cpp:21

◆ name()

virtual std::string Flatte::name ( ) const
inlinevirtual

Reimplemented from BW_BW.

Definition at line 56 of file Flatte.h.

56  {
57  return "FLATTE_alaBaBar_pipi("+prefix()+_theDecay.oneLiner() +")";
58  }
const AssociatedDecayTree & _theDecay
Definition: BW_BW.h:69
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375
const std::string & prefix() const
Definition: BW_BW.h:72

◆ pdgMass()

double Flatte::pdgMass ( int  PDG_ID)
staticprotected

Definition at line 21 of file Flatte.cpp.

21  {
22  return ParticlePropertiesList::mass(PDG_ID);
23 }
static double mass(const std::string &name)

Member Data Documentation

◆ _K0Mass

double Flatte::_K0Mass
protected

Definition at line 23 of file Flatte.h.

◆ _KPlusMass

double Flatte::_KPlusMass
protected

Definition at line 24 of file Flatte.h.

◆ _pi0Mass

double Flatte::_pi0Mass
protected

Definition at line 21 of file Flatte.h.

◆ _piPlusMass

double Flatte::_piPlusMass
protected

Definition at line 22 of file Flatte.h.


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