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

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for SF_BtoV1P1_V1toV2V0_V2toP2P3:
SF_BtoV1P1_V1toV2V0_V2toP2P3_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_BtoV1P1_V1toV2V0_V2toP2P3 (const AssociatedDecayTree &theDecay, const int pol, const int LS_s=0)
 
virtual ~SF_BtoV1P1_V1toV2V0_V2toP2P3 ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual std::complex< double > getNewVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
int getPolarisation ()
 
int getLS_S ()
 
- Public Member Functions inherited from SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE
 SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoV1P1_V1toV2V0_V2toP2P3_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
 
int _LS_s
 
- Protected Attributes inherited from SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE
MINT::const_counted_ptr< AssociatedDecayTreeV1
 
MINT::const_counted_ptr< AssociatedDecayTreeV2
 
- 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_BtoV1P1_V1toV2V0_V2toP2P3_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 694 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoV1P1_V1toV2V0_V2toP2P3()

SF_BtoV1P1_V1toV2V0_V2toP2P3::SF_BtoV1P1_V1toV2V0_V2toP2P3 ( const AssociatedDecayTree theDecay,
const int  pol,
const int  LS_s = 0 
)
inline

Definition at line 701 of file SpinFactors4Body_FsVector.h.

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

◆ ~SF_BtoV1P1_V1toV2V0_V2toP2P3()

virtual SF_BtoV1P1_V1toV2V0_V2toP2P3::~SF_BtoV1P1_V1toV2V0_V2toP2P3 ( )
inlinevirtual

Definition at line 704 of file SpinFactors4Body_FsVector.h.

704 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_BtoV1P1_V1toV2V0_V2toP2P3::exampleDecay ( )
virtual

Implements SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE.

Definition at line 1569 of file SpinFactors4Body_FsVector.cpp.

1569  {
1570  return getExampleDecay();
1571 }
static const DecayTree & getExampleDecay()

◆ getExampleDecay()

const DecayTree & SF_BtoV1P1_V1toV2V0_V2toP2P3::getExampleDecay ( )
static

Definition at line 1560 of file SpinFactors4Body_FsVector.cpp.

1560  {
1561  if(0==_exampleDecay){
1562  // B->psi(2S) K; psi(2S)-> J/psi rho
1563  _exampleDecay = new DecayTree(521);
1564  _exampleDecay->addDgtr(321, 100443)->addDgtr(443, 113)->addDgtr(211,-211);
1565  }
1566  return *_exampleDecay;
1567 }
MINT::counted_ptr< DDTree< ValueType > > addDgtr(const DDTree< ValueType > *treePtr)
Definition: DDTree.h:211
DDTree< DecayTreeItem > DecayTree
Definition: DecayTree.h:35

◆ getLS_S()

int SF_BtoV1P1_V1toV2V0_V2toP2P3::getLS_S ( )
inline

Definition at line 715 of file SpinFactors4Body_FsVector.h.

◆ getNewVal()

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

Implements SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE.

Definition at line 1627 of file SpinFactors4Body_FsVector.cpp.

1627  {
1628  //bool debugThis = false;
1629 
1630  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
1631 
1632  double MV1 = mRes(V1,evt);
1633  double MV2 = mRes(V2,evt);
1634  double MV0 = mRes(fsPS[0],evt); // ??
1635  //double MV0 = p(0,evt).M(); // ??
1636 
1637  TLorentzVector pV2= p(2,evt)+p(3,evt);
1638  TLorentzVector qV2= p(2,evt)-p(3,evt);
1639  TLorentzVector pV1= p(0,evt)+pV2;
1640  TLorentzVector qV1= pV2-p(0,evt);
1641  TLorentzVector qB= pV1-p(1,evt);
1642  TLorentzVector pB= pV1+p(1,evt);
1643 
1644  polVector e = polVector(p(0,evt),MV0,getPolarisation());
1645  e.conj();
1646 
1647  ZTspin1 ZB(qB,pB,pB.M());
1648  ZTspin1 Z1(qV1,pV1,MV1);
1649  ZTspin1 Z2(qV2,pV2,MV2);
1650 
1651  if(getLS_S()==0){
1652  complex<double> sf(Z2.Dot(e.Re()),Z2.Dot(e.Im()));
1653  return sf*Z1.Dot(ZB)/(GeV*GeV*GeV);
1654  }
1655  else if(getLS_S()==1){
1656  SpinSumV PV1(pV1,MV1);
1657  TLorentzVector tmp= PV1.Dot(ZB);
1658  complex<double> sf(tmp.Dot(Z2)*Z1.Dot(e.Re())-tmp.Dot(e.Re())*Z1.Dot(Z2),tmp.Dot(Z2)*Z1.Dot(e.Im())-tmp.Dot(e.Im())*Z1.Dot(Z2));
1659  return sf*pV1.M2()/(GeV*GeV*GeV*GeV*GeV);
1660  }
1661  if(getLS_S()==2){
1662  SpinSumV PV1(pV1,MV1);
1663  SpinSumT DV1(pV1,MV1);
1664  TLorentzVector tmp= PV1.Dot(ZB);
1665  complex<double> sf(DV1.Sandwich(tmp,Z1,e.Re(),Z2),DV1.Sandwich(tmp,Z1,e.Im(),Z2));
1666  return sf/(GeV*GeV*GeV);
1667  }
1668  return 1;
1669 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
const TLorentzVector & Re() const
MINT::const_counted_ptr< AssociatedDecayTree > V1
TLorentzVector p(int i, IDalitzEvent &evt)
Definition: SpinFactor.cpp:11
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
virtual bool parseTree(const DalitzEventPattern &pat)
MINT::const_counted_ptr< AssociatedDecayTree > V2

◆ getPolarisation()

int SF_BtoV1P1_V1toV2V0_V2toP2P3::getPolarisation ( )
inline

Definition at line 714 of file SpinFactors4Body_FsVector.h.

◆ getVal()

virtual double SF_BtoV1P1_V1toV2V0_V2toP2P3::getVal ( IDalitzEvent evt)
inlinevirtual

Implements SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE.

Definition at line 705 of file SpinFactors4Body_FsVector.h.

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

◆ name()

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

Reimplemented from SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE.

Definition at line 710 of file SpinFactors4Body_FsVector.h.

710  {
711  return "SpinFactor4:SF_BtoV1P1_V1toV2V0_V2toP2P3("
712  + theDecay().oneLiner() + ")";
713  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_BtoV1P1_V1toV2V0_V2toP2P3_BASE.

Definition at line 1670 of file SpinFactors4Body_FsVector.cpp.

1670  {
1671  // bool debugThis = false;
1672 
1673  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
1674  os << "spin factor SF_BtoV1P1_V1toV2V0_V2toP2P3"
1675  << "\n\t parsed tree " << theDecay().oneLiner()
1676  << "\n like this:" << endl;
1677  this->printParsing(os);
1678 }
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_BtoV1P1_V1toV2V0_V2toP2P3::_exampleDecay =0
staticprotected

Definition at line 698 of file SpinFactors4Body_FsVector.h.

◆ _LS_s

int SF_BtoV1P1_V1toV2V0_V2toP2P3::_LS_s
protected

Definition at line 697 of file SpinFactors4Body_FsVector.h.

◆ _pol

int SF_BtoV1P1_V1toV2V0_V2toP2P3::_pol
protected

Definition at line 696 of file SpinFactors4Body_FsVector.h.


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