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

#include <FocusFlatte.h>

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

Public Member Functions

 FocusFlatte (const AssociatedDecayTree &decay, const std::string &namePrefix)
 
virtual std::string name () const
 
virtual ~FocusFlatte ()
 
- 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 (double a, double b)
 
static double pdgMass (int PDG_ID)
 

Protected Attributes

MINT::NamedParameter< double > _gPi
 
MINT::NamedParameter< double > _gK_by_gPi
 
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 21 of file FocusFlatte.h.

Constructor & Destructor Documentation

◆ FocusFlatte()

FocusFlatte::FocusFlatte ( const AssociatedDecayTree decay,
const std::string &  namePrefix 
)
inline

Definition at line 44 of file FocusFlatte.h.

45  : BW_BW(decay, namePrefix)
46  , _gPi("Flatte::gPi", 0.20*GeV)
47  , _gK_by_gPi("Flatte::gK_by_gPi", 2.50) // same as b in Flatte paper
48  , _pi0Mass(-9999.0)
49  , _piPlusMass(-9999.0)
50  , _K0Mass(-9999.0)
51  , _KPlusMass(-9999.0)
52  {
53  }
double _KPlusMass
Definition: FocusFlatte.h:27
double _pi0Mass
Definition: FocusFlatte.h:24
MINT::NamedParameter< double > _gPi
Definition: FocusFlatte.h:23
BW_BW(const AssociatedDecayTree &decay, const std::string &lineshapePrefix="", MINT::MinuitParameterSet *mps=0)
Definition: BW_BW.cpp:26
MINT::NamedParameter< double > _gK_by_gPi
Definition: FocusFlatte.h:23
double _piPlusMass
Definition: FocusFlatte.h:25
static const double GeV
double _K0Mass
Definition: FocusFlatte.h:26

◆ ~FocusFlatte()

virtual FocusFlatte::~FocusFlatte ( )
inlinevirtual

Definition at line 64 of file FocusFlatte.h.

64 {}

Member Function Documentation

◆ aSqrtTerm()

std::complex< double > FocusFlatte::aSqrtTerm ( double  a,
double  b 
)
staticprotected

Definition at line 49 of file FocusFlatte.cpp.

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

◆ BreitWigner()

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

Reimplemented from BW_BW.

Definition at line 97 of file FocusFlatte.cpp.

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

◆ complexGofM()

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

Definition at line 70 of file FocusFlatte.cpp.

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

◆ gK()

double FocusFlatte::gK ( ) const
protected

Definition at line 17 of file FocusFlatte.cpp.

17  {
18  return _gK_by_gPi * gPi();
19 }
double gPi() const
Definition: FocusFlatte.cpp:14
MINT::NamedParameter< double > _gK_by_gPi
Definition: FocusFlatte.h:23

◆ GofM()

double FocusFlatte::GofM ( )
protectedvirtual

Reimplemented from BW_BW.

Definition at line 91 of file FocusFlatte.cpp.

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

◆ gPi()

double FocusFlatte::gPi ( ) const
protected

Definition at line 14 of file FocusFlatte.cpp.

14  {
15  return _gPi;
16 }
MINT::NamedParameter< double > _gPi
Definition: FocusFlatte.h:23

◆ mK0()

double FocusFlatte::mK0 ( )
protected

Definition at line 36 of file FocusFlatte.cpp.

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

◆ mKPlus()

double FocusFlatte::mKPlus ( )
protected

Definition at line 42 of file FocusFlatte.cpp.

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

◆ mPi0()

double FocusFlatte::mPi0 ( )
protected

Definition at line 24 of file FocusFlatte.cpp.

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

◆ mPiPlus()

double FocusFlatte::mPiPlus ( )
protected

Definition at line 30 of file FocusFlatte.cpp.

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

◆ name()

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

Reimplemented from BW_BW.

Definition at line 60 of file FocusFlatte.h.

60  {
61  return "Flatte_alaFOCUS_KK("+prefix()+_theDecay.oneLiner() +")";
62  }
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 FocusFlatte::pdgMass ( int  PDG_ID)
staticprotected

Definition at line 21 of file FocusFlatte.cpp.

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

Member Data Documentation

◆ _gK_by_gPi

MINT::NamedParameter<double> FocusFlatte::_gK_by_gPi
protected

Definition at line 23 of file FocusFlatte.h.

◆ _gPi

MINT::NamedParameter<double> FocusFlatte::_gPi
protected

Definition at line 23 of file FocusFlatte.h.

◆ _K0Mass

double FocusFlatte::_K0Mass
protected

Definition at line 26 of file FocusFlatte.h.

◆ _KPlusMass

double FocusFlatte::_KPlusMass
protected

Definition at line 27 of file FocusFlatte.h.

◆ _pi0Mass

double FocusFlatte::_pi0Mass
protected

Definition at line 24 of file FocusFlatte.h.

◆ _piPlusMass

double FocusFlatte::_piPlusMass
protected

Definition at line 25 of file FocusFlatte.h.


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