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

#include <NonRes.h>

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

Public Member Functions

 NonRes (const AssociatedDecayTree &tree, const std::string &type="", const std::string &namePrefix="")
 
virtual std::complex< double > getVal (IDalitzEvent &evt)
 
virtual void print (std::ostream &out=std::cout) const
 
virtual void print (IDalitzEvent &evt, std::ostream &out=std::cout)
 
virtual std::string name () const
 
virtual ~NonRes ()
 
- 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 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 GetAlpha () const
 
double c1 () const
 
double c2 () const
 
double c3 () const
 
double c4 () const
 
double c5 () const
 
- 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 double GofM ()
 
virtual std::complex< double > BreitWigner ()
 
virtual void resetInternals ()
 
virtual void resetPDG ()
 

Protected Attributes

const std::string _type
 
- 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 13 of file NonRes.h.

Constructor & Destructor Documentation

◆ NonRes()

NonRes::NonRes ( const AssociatedDecayTree tree,
const std::string &  type = "",
const std::string &  namePrefix = "" 
)

Constructor

Definition at line 14 of file NonRes.cpp.

16  : BW_BW(tree, namePrefix)
17  , _type(type)
18  //, _alpha("NonRes::alpha", 1.0)
19 {
20  //cout << _alpha << endl;
21 }
const std::string _type
Definition: NonRes.h:71
BW_BW(const AssociatedDecayTree &decay, const std::string &lineshapePrefix="", MINT::MinuitParameterSet *mps=0)
Definition: BW_BW.cpp:26

◆ ~NonRes()

virtual NonRes::~NonRes ( )
inlinevirtual

Destructor

Definition at line 48 of file NonRes.h.

48 {}

Member Function Documentation

◆ c1()

double NonRes::c1 ( ) const
inlineprotected

Definition at line 56 of file NonRes.h.

56  {
57  return _RPL->get(mumsPID())->c1();
58  }
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const

◆ c2()

double NonRes::c2 ( ) const
inlineprotected

Definition at line 59 of file NonRes.h.

59  {
60  return _RPL->get(mumsPID())->c2();
61  }
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const

◆ c3()

double NonRes::c3 ( ) const
inlineprotected

Definition at line 62 of file NonRes.h.

62  {
63  return _RPL->get(mumsPID())->c3();
64  }
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const

◆ c4()

double NonRes::c4 ( ) const
inlineprotected

Definition at line 65 of file NonRes.h.

65  {
66  return _RPL->get(mumsPID())->c4();
67  }
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const

◆ c5()

double NonRes::c5 ( ) const
inlineprotected

Definition at line 68 of file NonRes.h.

68  {
69  return _RPL->get(mumsPID())->c5();
70  }
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const

◆ GetAlpha()

double NonRes::GetAlpha ( ) const
protected

Return shape parameter alpha Not possible to vary this in the fit in the current implementation

Definition at line 82 of file NonRes.cpp.

82  {
83  return _RPL->get(mumsPID())->alpha();
84 }
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const

◆ getVal()

std::complex< double > NonRes::getVal ( IDalitzEvent evt)
virtual

Evaluate non-res lineshape

Reimplemented from BW_BW.

Definition at line 23 of file NonRes.cpp.

23  {
24  setEventPtr(evt);
26 
27  const double m2hh = mumsRecoMass2()/GeV/GeV;
28 
29  std::vector<int> asi = _theDecay.getVal().asi();
30  double min = getEvent()->eventPattern().sijMin(asi)/(GeV*GeV);
31  double max = getEvent()->eventPattern().sijMax(asi)/(GeV*GeV);
32 
33  double x = 2.* (m2hh - min)/(max - min) - 1.;
34 
35  double non_res;
36  if( _type == "Exp" )
37  non_res = exp(-GetAlpha()*x);
38  else if( _type == "Pow" ){
39  non_res = 1.
40  + c1()*x
41  + c2()*(2.* pow(x,2) - 1.)
42  + c3()*(4.* pow(x,3) - 3.*x)
43  + c4()*(8.* pow(x,4) - 8.*pow(x,2)+1.)
44  + c5()*(16.* pow(x,5) - 20.*pow(x,3)+5.*x);
45  }
46  else if( _type == "EvtGen" ){
47  non_res = pow(pABSq(),GetAlpha());
48  }
49  else
50  non_res = 1.0;
51 
52  double formFactor= 1.;
53  if( _normBF == 1 ) formFactor = Fr();
54  else if( _normBF == 0 ) formFactor = Fr_PDG_BL();
55  else if(_normBF == 2 ) formFactor = Fr_BELLE(0.);
56 
57  return formFactor*non_res;
58 }
double sijMax(const MINT::PolymorphVector< int > &indices) const
virtual void resetInternals()
Definition: BW_BW.cpp:1114
virtual double Fr()
Definition: BW_BW.cpp:710
const AssociatedDecayTree & _theDecay
Definition: BW_BW.h:69
bool setEventPtr(IDalitzEvent &evt) const
Definition: BW_BW.cpp:141
const std::string _type
Definition: NonRes.h:71
const ValueType & getVal() const
Definition: DDTree.h:102
virtual double Fr_PDG_BL()
Definition: BW_BW.cpp:830
IDalitzEvent * getEvent() const
Definition: BW_BW.cpp:147
double sijMin(const MINT::PolymorphVector< int > &indices) const
virtual double mumsRecoMass2() const
Definition: BW_BW.cpp:548
virtual const DalitzEventPattern & eventPattern() const =0
virtual double pABSq()
Definition: BW_BW.cpp:1014
MINT::NamedParameter< int > _normBF
Definition: BW_BW.h:66
static const double GeV
double GetAlpha() const
Definition: NonRes.cpp:82
virtual double Fr_BELLE(double prSquared)
Definition: BW_BW.cpp:720
double c2() const
Definition: NonRes.h:59
const std::vector< int > & asi() const
double c3() const
Definition: NonRes.h:62
double c1() const
Definition: NonRes.h:56
double c4() const
Definition: NonRes.h:65
double c5() const
Definition: NonRes.h:68

◆ name()

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

Decay Name

Reimplemented from BW_BW.

Definition at line 41 of file NonRes.h.

41  {
42  return "NonRes("+_theDecay.oneLiner() +")";
43  }
const AssociatedDecayTree & _theDecay
Definition: BW_BW.h:69
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ print() [1/2]

void NonRes::print ( std::ostream &  out = std::cout) const
virtual

Print decay

Reimplemented from BW_BW.

Definition at line 61 of file NonRes.cpp.

61  {
62  out << name();
63 }
virtual std::string name() const
Definition: NonRes.h:41

◆ print() [2/2]

void NonRes::print ( IDalitzEvent evt,
std::ostream &  out = std::cout 
)
virtual

Print decay

Reimplemented from BW_BW.

Definition at line 65 of file NonRes.cpp.

65  {
66  setEventPtr(evt);
68  out << name()
69  << "\n\t> co-ordinate: " << getDalitzCoordinate()
70  << "\n\t> This is the decay I'm looking at:"
71  << "\n" << _theDecay
72  << "\n\t> These are a few values: "
73  << " startOfDecayChain? " << startOfDecayChain()
74  << ", BreitWigner = "
75  << BreitWigner()
76  << ", Blatt-Weisskopf penetration factor: "
77  << Fr()
78  << ", total BW_BW: "
79  << getVal(evt);
80 }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Definition: NonRes.cpp:23
virtual void resetInternals()
Definition: BW_BW.cpp:1114
virtual double Fr()
Definition: BW_BW.cpp:710
const AssociatedDecayTree & _theDecay
Definition: BW_BW.h:69
bool setEventPtr(IDalitzEvent &evt) const
Definition: BW_BW.cpp:141
virtual bool startOfDecayChain() const
Definition: BW_BW.cpp:532
virtual std::string name() const
Definition: NonRes.h:41
virtual std::complex< double > BreitWigner()
Definition: BW_BW.cpp:1093
virtual DalitzCoordinate getDalitzCoordinate(double nSigma=3) const
Definition: BW_BW.cpp:537

Member Data Documentation

◆ _type

const std::string NonRes::_type
protected

Definition at line 71 of file NonRes.h.


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