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

#include <SpinFactors3Body_ForRunningWidth.h>

Inheritance diagram for SF_VtoAP1_AtoV0P2_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_VtoAP1_AtoV0P2

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const =0
 
 SF_VtoAP1_AtoV0P2_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_VtoAP1_AtoV0P2_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
 
- 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 241 of file SpinFactors3Body_ForRunningWidth.h.

Constructor & Destructor Documentation

◆ SF_VtoAP1_AtoV0P2_BASE()

SF_VtoAP1_AtoV0P2_BASE::SF_VtoAP1_AtoV0P2_BASE ( const AssociatedDecayTree theDecay)
inline

Definition at line 249 of file SpinFactors3Body_ForRunningWidth.h.

250  : SpinFactor(theDecay, 3)
251  , A(0)
252  {}
SpinFactor(const AssociatedDecayTree &decay, int nFinal=3)
Definition: SpinFactor.h:74
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
MINT::const_counted_ptr< AssociatedDecayTree > A

◆ ~SF_VtoAP1_AtoV0P2_BASE()

virtual SF_VtoAP1_AtoV0P2_BASE::~SF_VtoAP1_AtoV0P2_BASE ( )
inlinevirtual

Definition at line 254 of file SpinFactors3Body_ForRunningWidth.h.

254 {}

Member Function Documentation

◆ exampleDecay()

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

Implements SpinFactor.

Implemented in SF_VtoAP1_AtoV0P2.

◆ getNewVal()

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

Reimplemented from SpinFactor.

Implemented in SF_VtoAP1_AtoV0P2.

◆ getVal()

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

Implements SpinFactor.

Implemented in SF_VtoAP1_AtoV0P2.

◆ name()

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

Implements SpinFactor.

Reimplemented in SF_VtoAP1_AtoV0P2.

Definition at line 259 of file SpinFactors3Body_ForRunningWidth.h.

259  {
260  return "SpinFactor3:SF_VtoAP1_AtoV0P2_BASE("
261  + theDecay().oneLiner() + ")";
262  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ parseTree()

bool SF_VtoAP1_AtoV0P2_BASE::parseTree ( const DalitzEventPattern pat)
protectedvirtual

Definition at line 432 of file SpinFactors3Body_ForRunningWidth.cpp.

432  {
433  bool debugThis=false;
434 
435  if(fsPS.size() < 3) fsPS.reserve(3);
436  for(int i=0; i< theDecay(pat).nDgtr(); i++){
438  theDecay(pat).getDgtrTreePtr(i);
439 
440  if(dgtr->getVal().SVPAT() == "A") A = dgtr;
441  else if(dgtr->getVal().SVPAT() == "P") fsPS[1] = dgtr;
442  }
443  if(0==A || 0==fsPS[1]){
444  cout << "ERROR in SF_VtoAP1_AtoV0P2::parseTree"
445  << " Didn't find A or P1 " << A.get() << ", " << fsPS[1].get() << endl;
446  return false;
447  }
448 
449  if(A->nDgtr() != 2){
450  cout << "ERROR in SF_VtoAP1_AtoV0P2::parseTree"
451  << " A should have 2 daughters, but it says it has "
452  << A->nDgtr() << "."
453  << endl;
454  return false;
455  }
456 
457 
458  if(A->getDgtrTreePtr(0)->getVal().SVPAT() == "V") {
459  fsPS[0] = A->getDgtrTreePtr(0);
460  fsPS[2] = A->getDgtrTreePtr(1);
461  }
462  else if(A->getDgtrTreePtr(1)->getVal().SVPAT() == "V") {
463  fsPS[0] = A->getDgtrTreePtr(1);
464  fsPS[2] = A->getDgtrTreePtr(0);
465  }
466 
467  if(0==fsPS[2] || 0==fsPS[0]){
468  cout << "ERROR in SF_VtoAP1_AtoV0P2::parseTree"
469  << " Didn't find V0 or P2 " << fsPS[0].get() << ", " << fsPS[2].get() << endl;
470  return false;
471  }
472 
473  // normalOrder(fsPS[2], fsPS[3]);
474 
475  if(debugThis){
476  cout << "parsed Tree: A:\n"
477  << *A
478  << endl;
479  for(int i=0; i<3; i++){
480  cout << "fsPS[" << i << "]\n"
481  << *(fsPS[i])
482  << endl;
483  }
484  }
485  // this->printYourself();
486  return true;
487 }
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 > A

◆ printYourself()

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

Implements SpinFactor.

Implemented in SF_VtoAP1_AtoV0P2.

Member Data Documentation

◆ A

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

Definition at line 243 of file SpinFactors3Body_ForRunningWidth.h.


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