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

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P:
SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_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_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P (const AssociatedDecayTree &theDecay, const int pol)
 
virtual ~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual std::complex< double > getNewVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
int getPolarisation ()
 
- Public Member Functions inherited from SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE
 SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_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
 
- Protected Attributes inherited from SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE
MINT::const_counted_ptr< AssociatedDecayTreePT
 
MINT::const_counted_ptr< AssociatedDecayTreeT
 
- 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_exampleDecayP =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_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 542 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P()

SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P ( const AssociatedDecayTree theDecay,
const int  pol 
)
inline

Definition at line 548 of file SpinFactors4Body_FsVector.h.

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

◆ ~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P()

virtual SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P ( )
inlinevirtual

Definition at line 551 of file SpinFactors4Body_FsVector.h.

551 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::exampleDecay ( )
virtual

Implements SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE.

Definition at line 1248 of file SpinFactors4Body_FsVector.cpp.

1248  {
1249  return getExampleDecay();
1250 }

◆ getExampleDecay()

const DecayTree & SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::getExampleDecay ( )
static

Definition at line 1239 of file SpinFactors4Body_FsVector.cpp.

1239  {
1240  if(0==_exampleDecayP){
1241  // B->J/psi K2(1770); K2->K f2(1270); f2->pi pi
1242  _exampleDecayP = new DecayTree(521);
1243  _exampleDecayP->addDgtr(443, 10325)->addDgtr(321, 225)->addDgtr(211,-211);
1244  }
1245  return *_exampleDecayP;
1246 }
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_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::getNewVal ( IDalitzEvent evt)
virtual

Implements SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE.

Definition at line 1252 of file SpinFactors4Body_FsVector.cpp.

1252  {
1253  //bool debugThis = false;
1254 
1255  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
1256 
1257  double MPT = mRes(PT,evt);
1258  double MT = mRes(T,evt);
1259  double MV0 = mRes(fsPS[0],evt); // ??
1260  //double MV0 = p(0,evt).M(); // ??
1261  TLorentzVector pT= p(2,evt)+p(3,evt);
1262  TLorentzVector qT= p(2,evt)-p(3,evt);
1263  TLorentzVector pPT= pT+p(1,evt);
1264  TLorentzVector qPT= pT-p(1,evt);
1265  TLorentzVector pB= pPT+p(0,evt);
1266  TLorentzVector qB= pPT-p(0,evt);
1267 
1268  SpinSumT D_PT(pPT,MPT);
1269  ZTspin1 Z_1T(qT,pT,MT);
1270  ZTspin1 Z_B(qB,pB,pB.M());
1271 
1272  // SpinSumV P_PT(pPT,MPT);
1273  //ZTgperp P_PT_matrix(pPT,MPT);
1274  //ZTspin2 ZT(qT, pT, MT);
1275 
1276  polVector e = polVector(p(0,evt),MV0,getPolarisation());
1277  e.conj();
1278 
1279  //TLorentzVector tmp= P_PT.Dot(qB);
1280  //TLorentzVector tmp2= ZT.Contract(tmp);
1281  //double tmp3= (P_PT_matrix.Contract_2(ZT))/(GeV*GeV);
1282  //complex<double> sf(P_PT.Sandwich(e.Re(),tmp2)-1./3.*(P_PT.Sandwich(e.Re(),qB)*tmp3),P_PT.Sandwich(e.Im(),tmp2)-1./3.*(P_PT.Sandwich(e.Im(),qB)*tmp3));
1283 
1284  complex<double> sf(D_PT.Sandwich(e.Re(),Z_B,Z_1T,Z_1T)+1./3.*Z_1T.Mag2()/MT/MT * D_PT.Sandwich(e.Re(),Z_B,pT,pT), D_PT.Sandwich(e.Im(),Z_B,Z_1T,Z_1T)+1./3.*Z_1T.Mag2()/MT/MT * D_PT.Sandwich(e.Im(),Z_B,pT,pT) );
1285  return sf/(GeV*GeV*GeV);
1286 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
MINT::const_counted_ptr< AssociatedDecayTree > T
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
virtual bool parseTree(const DalitzEventPattern &pat)
MINT::const_counted_ptr< AssociatedDecayTree > PT

◆ getPolarisation()

int SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::getPolarisation ( )
inline

◆ getVal()

virtual double SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::getVal ( IDalitzEvent evt)
inlinevirtual

Implements SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE.

Definition at line 552 of file SpinFactors4Body_FsVector.h.

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

◆ name()

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

Reimplemented from SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE.

Definition at line 557 of file SpinFactors4Body_FsVector.h.

557  {
558  return "SpinFactor4:SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P("
559  + theDecay().oneLiner() + ")";
560  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE.

Definition at line 1287 of file SpinFactors4Body_FsVector.cpp.

1287  {
1288  // bool debugThis = false;
1289 
1290  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
1291  os << "spin factor SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P"
1292  << "\n\t e_c.Dot(ZT.Contract(qB))"
1293  << "\n\t /GeV^3"
1294  << "\n\t parsed tree " << theDecay().oneLiner()
1295  << "\n like this:" << endl;
1296  this->printParsing(os);
1297 }
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

◆ _exampleDecayP

DecayTree * SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::_exampleDecayP =0
staticprotected

Definition at line 545 of file SpinFactors4Body_FsVector.h.

◆ _pol

int SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P::_pol
protected

Definition at line 544 of file SpinFactors4Body_FsVector.h.


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