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

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for SF_BtoVP1_VtoAP2_AtoV0P3_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_BtoVP1_VtoAP2_AtoV0P3

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const =0
 
 SF_BtoVP1_VtoAP2_AtoV0P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoVP1_VtoAP2_AtoV0P3_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< 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
 

Detailed Description

Definition at line 1113 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoVP1_VtoAP2_AtoV0P3_BASE()

SF_BtoVP1_VtoAP2_AtoV0P3_BASE::SF_BtoVP1_VtoAP2_AtoV0P3_BASE ( const AssociatedDecayTree theDecay)
inline

Definition at line 1122 of file SpinFactors4Body_FsVector.h.

1123  : SpinFactor(theDecay, 4)
1124  , A(0), V(0)
1125  {
1126  //if( ! parseTree(const DalitzEventPattern& pat)){
1127  // throw "error in parseTree in constructor of SF_BtoAV0_AtoVP1_VtoP2P3_BASE";
1128  //}
1129  //printYourself();
1130  }
MINT::const_counted_ptr< AssociatedDecayTree > A
SpinFactor(const AssociatedDecayTree &decay, int nFinal=3)
Definition: SpinFactor.h:74
MINT::const_counted_ptr< AssociatedDecayTree > V
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_BtoVP1_VtoAP2_AtoV0P3_BASE()

virtual SF_BtoVP1_VtoAP2_AtoV0P3_BASE::~SF_BtoVP1_VtoAP2_AtoV0P3_BASE ( )
inlinevirtual

Definition at line 1132 of file SpinFactors4Body_FsVector.h.

1132 {}

Member Function Documentation

◆ exampleDecay()

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

Implements SpinFactor.

Implemented in SF_BtoVP1_VtoAP2_AtoV0P3.

◆ getNewVal()

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

Reimplemented from SpinFactor.

Implemented in SF_BtoVP1_VtoAP2_AtoV0P3.

◆ getVal()

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

Implements SpinFactor.

Implemented in SF_BtoVP1_VtoAP2_AtoV0P3.

◆ name()

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

Implements SpinFactor.

Reimplemented in SF_BtoVP1_VtoAP2_AtoV0P3.

Definition at line 1137 of file SpinFactors4Body_FsVector.h.

1137  {
1138  return "SpinFactor4:SF_BtoVP1_VtoAP2_AtoV0P3_BASE("
1139  + theDecay().oneLiner() + ")";
1140  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ parseTree()

bool SF_BtoVP1_VtoAP2_AtoV0P3_BASE::parseTree ( const DalitzEventPattern pat)
protectedvirtual

Definition at line 2615 of file SpinFactors4Body_FsVector.cpp.

2615  {
2616  bool debugThis=false;
2617 
2618  if(fsPS.size() < 4) fsPS.reserve(4);
2619  for(int i=0; i< theDecay(pat).nDgtr(); i++){
2621  if(dgtr->getVal().SVPAT() == "V") V = dgtr;
2622  else if(dgtr->getVal().SVPAT() == "P") fsPS[1] = dgtr;
2623  }
2624  if(0==V || 0==fsPS[1]){
2625  cout << "ERROR in SF_BtoVP1_VtoAP2_AtoV0P3::parseTree"
2626  << " Didn't find V or P1 " << V.get() << ", " << fsPS[1].get() << endl;
2627  return false;
2628  }
2629 
2630  for(int i=0; i< V->nDgtr(); i++){
2631  const_counted_ptr<AssociatedDecayTree> dgtr= V->getDgtrTreePtr(i);
2632  if(dgtr->getVal().SVPAT() == "A") A = dgtr;
2633  else if(dgtr->getVal().SVPAT() == "P") fsPS[2] = dgtr;
2634  }
2635  if(0==A || 0==fsPS[2]){
2636  cout << "ERROR in SF_BtoVP1_VtoAP2_AtoV0P3::parseTree"
2637  << " Didn't find A or P2 " << A.get() << ", " << fsPS[2].get() << endl;
2638  return false;
2639  }
2640 
2641  if(A->nDgtr() != 2){
2642  cout << "ERROR in SF_BtoVP1_VtoAP2_AtoV0P3::parseTree"
2643  << " A should have 2 daughters, but it says it has "
2644  << A->nDgtr() << "."
2645  << endl;
2646  return false;
2647  }
2648 
2649  for(int i=0; i< A->nDgtr(); i++){
2650  const_counted_ptr<AssociatedDecayTree> dgtr= A->getDgtrTreePtr(i);
2651  if(dgtr->getVal().SVPAT() == "V") fsPS[0] = dgtr;
2652  else if(dgtr->getVal().SVPAT() == "P") fsPS[3] = dgtr;
2653  }
2654 
2655  if(debugThis){
2656  cout << "parsed Tree: V:\n"
2657  << *V
2658  << "\n A:"
2659  << *A
2660  << endl;
2661  for(int i=0; i<4; i++){
2662  cout << "fsPS[" << i << "]\n"
2663  << *(fsPS[i])
2664  << endl;
2665  }
2666  }
2667  // this->printYourself();
2668  return true;
2669 }
MINT::const_counted_ptr< AssociatedDecayTree > A
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
std::string SVPAT() const
MINT::const_counted_ptr< AssociatedDecayTree > V
const ValueType & getVal() const
Definition: DDTree.h:102
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

◆ printYourself()

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

Implements SpinFactor.

Implemented in SF_BtoVP1_VtoAP2_AtoV0P3.

Member Data Documentation

◆ A

MINT::const_counted_ptr<AssociatedDecayTree> SF_BtoVP1_VtoAP2_AtoV0P3_BASE::A
protected

Definition at line 1116 of file SpinFactors4Body_FsVector.h.

◆ V

MINT::const_counted_ptr<AssociatedDecayTree> SF_BtoVP1_VtoAP2_AtoV0P3_BASE::V
protected

Definition at line 1116 of file SpinFactors4Body_FsVector.h.


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