MINT2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE Class Referenceabstract

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for 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 SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const =0
 
 SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE ()
 
virtual double getVal (IDalitzEvent &evt)=0
 
virtual std::complex< double > getNewVal (IDalitzEvent &evt)=0
 
virtual const DecayTreeexampleDecay ()=0
 
virtual std::string name () const
 
- 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 ()
 

Protected Member Functions

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 ()
 

Protected Attributes

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
 

Detailed Description

Definition at line 518 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE()

SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE ( const AssociatedDecayTree theDecay)
inline

Definition at line 527 of file SpinFactors4Body_FsVector.h.

528  : SpinFactor(theDecay, 4), PT(0), T(0) {}
SpinFactor(const AssociatedDecayTree &decay, int nFinal=3)
Definition: SpinFactor.h:74
MINT::const_counted_ptr< AssociatedDecayTree > T
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
MINT::const_counted_ptr< AssociatedDecayTree > PT

◆ ~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE()

virtual SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::~SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE ( )
inlinevirtual

Definition at line 530 of file SpinFactors4Body_FsVector.h.

530 {}

Member Function Documentation

◆ exampleDecay()

virtual const DecayTree& SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::exampleDecay ( )
pure virtual

◆ getNewVal()

virtual std::complex<double> SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::getNewVal ( IDalitzEvent evt)
pure virtual

Reimplemented from SpinFactor.

Implemented in SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P.

◆ getVal()

virtual double SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::getVal ( IDalitzEvent evt)
pure virtual

◆ name()

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

Implements SpinFactor.

Reimplemented in SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_P.

Definition at line 535 of file SpinFactors4Body_FsVector.h.

535  {
536  return "SpinFactor4:SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE("
537  + theDecay().oneLiner() + ")";
538  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ parseTree()

bool SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::parseTree ( const DalitzEventPattern pat)
protectedvirtual

Definition at line 1185 of file SpinFactors4Body_FsVector.cpp.

1185  {
1186  bool debugThis=false;
1187 
1188  if(fsPS.size() < 4) fsPS.reserve(4);
1189  for(int i=0; i< theDecay(pat).nDgtr(); i++){
1191  if(dgtr->getVal().SVPAT() == "PT") PT = dgtr;
1192  else if(dgtr->getVal().SVPAT() == "V") fsPS[0] = dgtr;
1193  }
1194  if(0==PT || 0==fsPS[0]){
1195  cout << "ERROR in SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3::parseTree"
1196  << " Didn't find PT or V0 " << PT.get() << ", " << fsPS[0].get() << endl;
1197  return false;
1198  }
1199 
1200  for(int i=0; i< PT->nDgtr(); i++){
1201  const_counted_ptr<AssociatedDecayTree> dgtr= PT->getDgtrTreePtr(i);
1202  if(dgtr->getVal().SVPAT() == "T") T = dgtr;
1203  else if(dgtr->getVal().SVPAT() == "P") fsPS[1] = dgtr;
1204  }
1205  if(0==T || 0==fsPS[1]){
1206  cout << "ERROR in SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3::parseTree"
1207  << " Didn't find T or P1 " << T.get() << ", " << fsPS[1].get() << endl;
1208  return false;
1209  }
1210 
1211  if(T->nDgtr() != 2){
1212  cout << "ERROR in SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3::parseTree"
1213  << " T should have 2 daughters, but it says it has "
1214  << T->nDgtr() << "."
1215  << endl;
1216  return false;
1217  }
1218  fsPS[2] = T->getDgtrTreePtr(0);
1219  fsPS[3] = T->getDgtrTreePtr(1);
1220 
1221  //normalOrder(fsPS[2], fsPS[3]);
1222 
1223  if(debugThis){
1224  cout << "parsed Tree: T:\n"
1225  << *T
1226  << "\n PT:"
1227  << *PT
1228  << endl;
1229  for(int i=0; i<4; i++){
1230  cout << "fsPS[" << i << "]\n"
1231  << *(fsPS[i])
1232  << endl;
1233  }
1234  }
1235  // this->printYourself();
1236  return true;
1237 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
std::string SVPAT() const
const ValueType & getVal() const
Definition: DDTree.h:102
MINT::const_counted_ptr< AssociatedDecayTree > T
MINT::const_counted_ptr< DDTree< ValueType > > getDgtrTreePtr(int i) const
Definition: DDTree.h:114
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
int nDgtr() const
Definition: DDTree.h:96
MINT::const_counted_ptr< AssociatedDecayTree > PT

◆ printYourself()

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

Member Data Documentation

◆ PT

MINT::const_counted_ptr<AssociatedDecayTree> SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::PT
protected

Definition at line 521 of file SpinFactors4Body_FsVector.h.

◆ T

MINT::const_counted_ptr<AssociatedDecayTree> SF_BtoPseudoTV0_PseudoTtoTP1_TtoP2P3_BASE::T
protected

Definition at line 521 of file SpinFactors4Body_FsVector.h.


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