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

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for SF_BtoPS_PtoP1V0_StoP2P3_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_BtoPS_PtoP1V0_StoP2P3

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const =0
 
 SF_BtoPS_PtoP1V0_StoP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoPS_PtoP1V0_StoP2P3_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< AssociatedDecayTreeP
 
MINT::const_counted_ptr< AssociatedDecayTreeS
 
- 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 966 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoPS_PtoP1V0_StoP2P3_BASE()

SF_BtoPS_PtoP1V0_StoP2P3_BASE::SF_BtoPS_PtoP1V0_StoP2P3_BASE ( const AssociatedDecayTree theDecay)
inline

Definition at line 975 of file SpinFactors4Body_FsVector.h.

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

◆ ~SF_BtoPS_PtoP1V0_StoP2P3_BASE()

virtual SF_BtoPS_PtoP1V0_StoP2P3_BASE::~SF_BtoPS_PtoP1V0_StoP2P3_BASE ( )
inlinevirtual

Definition at line 978 of file SpinFactors4Body_FsVector.h.

978 {}

Member Function Documentation

◆ exampleDecay()

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

Implements SpinFactor.

Implemented in SF_BtoPS_PtoP1V0_StoP2P3.

◆ getNewVal()

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

Reimplemented from SpinFactor.

Implemented in SF_BtoPS_PtoP1V0_StoP2P3.

◆ getVal()

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

Implements SpinFactor.

Implemented in SF_BtoPS_PtoP1V0_StoP2P3.

◆ name()

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

Implements SpinFactor.

Reimplemented in SF_BtoPS_PtoP1V0_StoP2P3.

Definition at line 983 of file SpinFactors4Body_FsVector.h.

983  {
984  return "SpinFactor4:SF_BtoPS_PtoP1V0_StoP2P3_BASE("
985  + theDecay().oneLiner() + ")";
986  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ parseTree()

bool SF_BtoPS_PtoP1V0_StoP2P3_BASE::parseTree ( const DalitzEventPattern pat)
protectedvirtual

Definition at line 2271 of file SpinFactors4Body_FsVector.cpp.

2271  {
2272  bool debugThis=false;
2273 
2274  if(fsPS.size() < 4) fsPS.reserve(4);
2275  for(int i=0; i< theDecay(pat).nDgtr(); i++){
2277  if(dgtr->getVal().SVPAT() == "P") P = dgtr;
2278  else if(dgtr->getVal().SVPAT() == "S") S = dgtr;
2279  }
2280  if(0==P || 0==S){
2281  cout << "ERROR in SF_BtoPS_PtoP1V0_StoP2P3::parseTree"
2282  << " Didn't find P or S " << P.get() << ", " << S.get() << endl;
2283  return false;
2284  }
2285 
2286  if(P->nDgtr() != 2){
2287  cout << "ERROR in SF_BtoPS_PtoP1V0_StoP2P3::parseTree"
2288  << " P should have 2 daughters, but it says it has "
2289  << P->nDgtr() << "."
2290  << endl;
2291  return false;
2292  }
2293  if(S->nDgtr() != 2){
2294  cout << "ERROR in SF_BtoPS_PtoP1V0_StoP2P3::parseTree"
2295  << " S should have 2 daughters, but it says it has "
2296  << S->nDgtr() << "."
2297  << endl;
2298  return false;
2299  }
2300 
2301  for(int i=0; i< P->nDgtr(); i++){
2302  const_counted_ptr<AssociatedDecayTree> dgtr= P->getDgtrTreePtr(i);
2303  if(dgtr->getVal().SVPAT() == "V") fsPS[0] = dgtr;
2304  else if(dgtr->getVal().SVPAT() == "P") fsPS[1] = dgtr;
2305  }
2306 
2307  if(0==fsPS[0] || 0==fsPS[1]){
2308  cout << "ERROR in SF_BtoPS_PtoP1V0_StoP2P3::parseTree"
2309  << " Didn't find V0 or P1 " << fsPS[0].get() << ", " << fsPS[1].get() << endl;
2310  return false;
2311  }
2312  fsPS[2] = S->getDgtrTreePtr(0);
2313  fsPS[3] = S->getDgtrTreePtr(1);
2315 
2316  if(debugThis){
2317  cout << "parsed Tree: P:\n"
2318  << *P
2319  << "\n S:"
2320  << *S
2321  << endl;
2322  for(int i=0; i<4; i++){
2323  cout << "fsPS[" << i << "]\n"
2324  << *(fsPS[i])
2325  << endl;
2326  }
2327  }
2328  // this->printYourself();
2329  return true;
2330 }
MINT::const_counted_ptr< AssociatedDecayTree > P
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< 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 > S

◆ printYourself()

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

Implements SpinFactor.

Implemented in SF_BtoPS_PtoP1V0_StoP2P3.

Member Data Documentation

◆ P

MINT::const_counted_ptr<AssociatedDecayTree> SF_BtoPS_PtoP1V0_StoP2P3_BASE::P
protected

Definition at line 969 of file SpinFactors4Body_FsVector.h.

◆ S

MINT::const_counted_ptr<AssociatedDecayTree> SF_BtoPS_PtoP1V0_StoP2P3_BASE::S
protected

Definition at line 969 of file SpinFactors4Body_FsVector.h.


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