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

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for SF_BtoAP1_AtoVV0_VtoP2P3:
SF_BtoAP1_AtoVV0_VtoP2P3_BASE SpinFactor MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnComplexForEvent< IDalitzEvent > CachedByEvent< std::complex< double > > MINT::FitParDependent ISpinFactor MINT::IFitParDependent MINT::IFitParRegister MINT::PolymorphVector< FitParRef > MINT::IReturnRealForEvent< IDalitzEvent > MINT::IReturnComplexForEvent< IDalitzEvent > MINT::IFitParDependent

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const
 
 SF_BtoAP1_AtoVV0_VtoP2P3 (const AssociatedDecayTree &theDecay, const int pol, const bool is3body)
 
virtual ~SF_BtoAP1_AtoVV0_VtoP2P3 ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual std::complex< double > getNewVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
int getPolarisation ()
 
bool is3bodyDecay ()
 
- Public Member Functions inherited from SF_BtoAP1_AtoVV0_VtoP2P3_BASE
 SF_BtoAP1_AtoVV0_VtoP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoAP1_AtoVV0_VtoP2P3_BASE ()
 
- Public Member Functions inherited from SpinFactor
virtual double RealVal (IDalitzEvent &evt)
 
virtual std::complex< double > ComplexVal (IDalitzEvent &evt)
 
double mRes (const AssociatedDecayTreeItem &adt, IDalitzEvent &evt)
 
double mRes (const MINT::const_counted_ptr< AssociatedDecayTree > &adt, IDalitzEvent &evt)
 
const AssociatedDecayTreetheDecay () const
 
const AssociatedDecayTreetheDecay (const DalitzEventPattern &) const
 
const AssociatedDecayTreetheDecay (IDalitzEvent &evt) const
 
 SpinFactor (const AssociatedDecayTree &decay, int nFinal=3)
 
 SpinFactor (const SpinFactor &other)
 
virtual void printParsing (std::ostream &os=std::cout) const
 
virtual ~SpinFactor ()
 
- Public Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
virtual ~IReturnRealForEvent ()
 
- Public Member Functions inherited from MINT::IReturnComplexForEvent< IDalitzEvent >
virtual ~IReturnComplexForEvent ()
 
- Public Member Functions inherited from CachedByEvent< std::complex< double > >
 CachedByEvent ()
 
 CachedByEvent (const CachedByEvent &)
 
std::complex< double > getValWithCaching (IDalitzEvent &evt)
 
std::complex< double > getValWithCachingPermutation (IDalitzEvent &evt)
 
- 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
 
- Public Member Functions inherited from ISpinFactor
virtual ~ISpinFactor ()
 

Static Public Member Functions

static const DecayTreegetExampleDecay ()
 

Protected Attributes

int _pol
 
bool _is3bodyDecay
 
- Protected Attributes inherited from SF_BtoAP1_AtoVV0_VtoP2P3_BASE
MINT::const_counted_ptr< AssociatedDecayTreeA
 
MINT::const_counted_ptr< AssociatedDecayTreeV
 
- Protected Attributes inherited from SpinFactor
const AssociatedDecayTree_theDecay
 
int _nFinal
 
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
 
MINT::NamedParameter< int > _useZemachTensors
 
- Protected Attributes inherited from CachedByEvent< std::complex< double > >
long int _rememberNumber
 
std::vector< long int > _rememberNumberPermutation
 
long int _configNumber
 
- Protected Attributes inherited from MINT::PolymorphVector< FitParRef >
std::vector< FitParRef_vec
 

Static Protected Attributes

static DecayTree_exampleDecay =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_BtoAP1_AtoVV0_VtoP2P3_BASE
virtual bool parseTree (const DalitzEventPattern &pat)
 
- Protected Member Functions inherited from SpinFactor
TLorentzVector p (int i, IDalitzEvent &evt)
 
- Protected Member Functions inherited from MINT::IReturnRealForEvent< IDalitzEvent >
 IReturnRealForEvent ()
 
- Protected Member Functions inherited from MINT::IReturnComplexForEvent< IDalitzEvent >
 IReturnComplexForEvent ()
 
- Protected Member Functions inherited from CachedByEvent< std::complex< double > >
long int rememberNumber ()
 
long int rememberNumberPermutation (IDalitzEvent &evt)
 
long int configNumber ()
 
std::complex< double > recalculate (IDalitzEvent &evt)
 
std::complex< double > recalculatePermutation (IDalitzEvent &evt)
 
- Protected Member Functions inherited from ISpinFactor
 ISpinFactor ()
 

Detailed Description

Definition at line 748 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoAP1_AtoVV0_VtoP2P3()

SF_BtoAP1_AtoVV0_VtoP2P3::SF_BtoAP1_AtoVV0_VtoP2P3 ( const AssociatedDecayTree theDecay,
const int  pol,
const bool  is3body 
)
inline

Definition at line 755 of file SpinFactors4Body_FsVector.h.

SF_BtoAP1_AtoVV0_VtoP2P3_BASE(const AssociatedDecayTree &theDecay)
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_BtoAP1_AtoVV0_VtoP2P3()

virtual SF_BtoAP1_AtoVV0_VtoP2P3::~SF_BtoAP1_AtoVV0_VtoP2P3 ( )
inlinevirtual

Definition at line 758 of file SpinFactors4Body_FsVector.h.

758 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_BtoAP1_AtoVV0_VtoP2P3::exampleDecay ( )
virtual

Implements SF_BtoAP1_AtoVV0_VtoP2P3_BASE.

Definition at line 1694 of file SpinFactors4Body_FsVector.cpp.

1694  {
1695  return getExampleDecay();
1696 }
static const DecayTree & getExampleDecay()

◆ getExampleDecay()

const DecayTree & SF_BtoAP1_AtoVV0_VtoP2P3::getExampleDecay ( )
static

Definition at line 1685 of file SpinFactors4Body_FsVector.cpp.

1685  {
1686  if(0==_exampleDecay){
1687  // B->X K; X-> J/psi rho
1688  _exampleDecay = new DecayTree(521);
1689  _exampleDecay->addDgtr(321, 9983)->addDgtr(443, 113)->addDgtr(211,-211);
1690  }
1691  return *_exampleDecay;
1692 }
MINT::counted_ptr< DDTree< ValueType > > addDgtr(const DDTree< ValueType > *treePtr)
Definition: DDTree.h:211
DDTree< DecayTreeItem > DecayTree
Definition: DecayTree.h:35

◆ getNewVal()

complex< double > SF_BtoAP1_AtoVV0_VtoP2P3::getNewVal ( IDalitzEvent evt)
virtual

Implements SF_BtoAP1_AtoVV0_VtoP2P3_BASE.

Definition at line 1752 of file SpinFactors4Body_FsVector.cpp.

1752  {
1753  //bool debugThis = false;
1754 
1755  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
1756 
1757  double MA = mRes(A,evt);
1758  double MV = mRes(V,evt);
1759  double MV0 = mRes(fsPS[0],evt); // ??
1760  //double MV0 = p(0,evt).M(); // ??
1761 
1762  TLorentzVector pV= p(2,evt)+p(3,evt);
1763  TLorentzVector qV= p(2,evt)-p(3,evt);
1764  TLorentzVector pA= p(0,evt)+pV;
1765  //TLorentzVector qA= pV-p(0,evt);
1766  TLorentzVector qB= pA-p(1,evt);
1767  TLorentzVector pB= pA+p(1,evt);
1768  polVector e = polVector(p(0,evt),MV0,getPolarisation());
1769  e.conj();
1770 
1771  complex<double> sfm;
1772  double scale = (p(2,evt)+p(3,evt)).M2() - 4.*mRes(fsPS[3],evt)*mRes(fsPS[3],evt);
1773  //double scale = (p(2,evt)+p(3,evt)).M2() - 4.35*mRes(fsPS[3],evt)*mRes(fsPS[3],evt); ??
1774 
1775  if(is3bodyDecay()){
1776  complex<double> tmp(qB.Dot(e.Re())*scale,qB.Dot(e.Im())*scale);
1777  sfm=tmp/(GeV*GeV*GeV);
1778  //compley<double> tmp(scale,0.);
1779  //sfm=tmp/(GeV*GeV);
1780  //sfm=tmp*scale/(GeV*GeV)
1781  }
1782  else{
1783  //ZTspin1 ZA(qA,pA,MA);
1784  ZTspin1 ZV(qV,pV,MV);
1785  SpinSumV PA(pA,MA);
1786  ZTspin1 ZB(qB,pB,pB.M());
1787 
1788  if(getPolarisation()==0)sfm=complex<double>(LeviCivita(e.Re(),PA.Dot(ZB),ZV,pB),0.);
1789  else sfm=complex<double>(LeviCivita(e.Re(),PA.Dot(ZB),ZV,pA),LeviCivita(e.Im(),PA.Dot(ZB),ZV,pA));
1790  //if(getPolarisation()==0)sfm=complex<double>(LeviCivita(e.Re(),ZA,ZV,pB),0.);
1791  //else sfm=complex<double>(LeviCivita(e.Re(),ZA,ZV,pA),LeviCivita(e.Im(),ZA,ZV,pA));
1792  sfm=sfm/(GeV*GeV*GeV);
1793  }
1794  return sfm;
1795 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
const TLorentzVector & Re() const
MINT::const_counted_ptr< AssociatedDecayTree > V
TLorentzVector p(int i, IDalitzEvent &evt)
Definition: SpinFactor.cpp:11
MINT::const_counted_ptr< AssociatedDecayTree > A
virtual const DalitzEventPattern & eventPattern() const =0
double mRes(const AssociatedDecayTreeItem &adt, IDalitzEvent &evt)
Definition: SpinFactor.cpp:53
static const double GeV
Definition: ZTspin1.h:9
const TLorentzVector & Im() const
double LeviCivita(const TLorentzVector &p0, const TLorentzVector &p1, const TLorentzVector &p2, const TLorentzVector &p3)
Definition: LeviCivita.h:12
virtual bool parseTree(const DalitzEventPattern &pat)

◆ getPolarisation()

int SF_BtoAP1_AtoVV0_VtoP2P3::getPolarisation ( )
inline

Definition at line 768 of file SpinFactors4Body_FsVector.h.

◆ getVal()

virtual double SF_BtoAP1_AtoVV0_VtoP2P3::getVal ( IDalitzEvent evt)
inlinevirtual

Implements SF_BtoAP1_AtoVV0_VtoP2P3_BASE.

Definition at line 759 of file SpinFactors4Body_FsVector.h.

759 {return getNewVal(evt).real();}
virtual std::complex< double > getNewVal(IDalitzEvent &evt)

◆ is3bodyDecay()

bool SF_BtoAP1_AtoVV0_VtoP2P3::is3bodyDecay ( )
inline

Definition at line 769 of file SpinFactors4Body_FsVector.h.

◆ name()

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

Reimplemented from SF_BtoAP1_AtoVV0_VtoP2P3_BASE.

Definition at line 764 of file SpinFactors4Body_FsVector.h.

764  {
765  return "SpinFactor4:SF_BtoAP1_AtoVV0_VtoP2P3("
766  + theDecay().oneLiner() + ")";
767  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

void SF_BtoAP1_AtoVV0_VtoP2P3::printYourself ( std::ostream &  os = std::cout) const
virtual

Implements SF_BtoAP1_AtoVV0_VtoP2P3_BASE.

Definition at line 1796 of file SpinFactors4Body_FsVector.cpp.

1796  {
1797  // bool debugThis = false;
1798 
1799  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
1800  os << "spin factor SF_BtoAP1_AtoVV0_VtoP2P3"
1801  << "\n\t parsed tree " << theDecay().oneLiner()
1802  << "\n like this:" << endl;
1803  this->printParsing(os);
1804 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
virtual void printParsing(std::ostream &os=std::cout) const
Definition: SpinFactor.cpp:57
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

Member Data Documentation

◆ _exampleDecay

DecayTree * SF_BtoAP1_AtoVV0_VtoP2P3::_exampleDecay =0
staticprotected

Definition at line 752 of file SpinFactors4Body_FsVector.h.

◆ _is3bodyDecay

bool SF_BtoAP1_AtoVV0_VtoP2P3::_is3bodyDecay
protected

Definition at line 751 of file SpinFactors4Body_FsVector.h.

◆ _pol

int SF_BtoAP1_AtoVV0_VtoP2P3::_pol
protected

Definition at line 750 of file SpinFactors4Body_FsVector.h.


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