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

#include <SpinFactors4Body_Tensors.h>

Inheritance diagram for SF_DtoT1T2_T1toP0P1_T2toP2P3_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_DtoT1T2_T1toP0P1_T2toP2P3_D SF_DtoT1T2_T1toP0P1_T2toP2P3_P SF_DtoT1T2_T1toP0P1_T2toP2P3_S

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const =0
 
 SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE ()
 
virtual double getVal (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)
 
virtual std::complex< double > getNewVal (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< AssociatedDecayTreeT [2]
 
- 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 95 of file SpinFactors4Body_Tensors.h.

Constructor & Destructor Documentation

◆ SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE()

SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE ( const AssociatedDecayTree theDecay)
inline

Definition at line 102 of file SpinFactors4Body_Tensors.h.

103  : SpinFactor(theDecay, 4)
104  {
105  T[0]=T[1]=0;
106  }
SpinFactor(const AssociatedDecayTree &decay, int nFinal=3)
Definition: SpinFactor.h:74
MINT::const_counted_ptr< AssociatedDecayTree > T[2]
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE()

virtual SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::~SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE ( )
inlinevirtual

Definition at line 108 of file SpinFactors4Body_Tensors.h.

108 {}

Member Function Documentation

◆ exampleDecay()

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

◆ getVal()

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

◆ name()

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

Implements SpinFactor.

Reimplemented in SF_DtoT1T2_T1toP0P1_T2toP2P3_D, SF_DtoT1T2_T1toP0P1_T2toP2P3_P, and SF_DtoT1T2_T1toP0P1_T2toP2P3_S.

Definition at line 112 of file SpinFactors4Body_Tensors.h.

112  {
113  return "SpinFactor4:SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE("
114  + theDecay().oneLiner() + ")";
115  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ parseTree()

bool SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::parseTree ( const DalitzEventPattern pat)
protectedvirtual

Definition at line 341 of file SpinFactors4Body_Tensors.cpp.

341  {
342  // bool debugThis=false;
343  if(fsPS.size() < 4) fsPS.reserve(4);
344  if(theDecay(pat).nDgtr() != 2){
345  cout << "ERROR in SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::parseTree"
346  << " expected exactly 2 daughers of D, have "
347  << theDecay(pat).nDgtr();
348  return false;
349  }
350 
351  for(int i=0; i< theDecay(pat).nDgtr(); i++){
353  if(dgtr->getVal().SVPAT() == "T" && ! dgtr->isFinalState()) T[i] = dgtr;
354  else{
355  cout << "ERROR in SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::parseTree"
356  << " expected exactly 2 Tensors, have "
357  << theDecay(pat).nDgtr();
358  cout << "\n so daughter " << i << " is not a tensor." << endl;
359  return false;
360  }
361  }
362 
363  if(0==T[0] || 0==T[1]){
364  cout << "ERROR in SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::parseTree"
365  << " Didn't find T or S " << T[0].get() << ", " << T[1].get() << endl;
366  return false;
367  }
368  if(T[0]->nDgtr() != 2){
369  cout << "ERROR in SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::parseTree"
370  << " T[0] should have 2 daughters, but it says it has "
371  << T[0]->nDgtr() << "."
372  << endl;
373  return false;
374  }
375  fsPS[0] = T[0]->getDgtrTreePtr(0);
376  fsPS[1] = T[0]->getDgtrTreePtr(1);
377  // normalOrder(fsPS[0], fsPS[1]);
378 
379  if(T[1]->nDgtr() != 2){
380  cout << "ERROR in SF_DtoT1T2_T1toP0P1_T2toP2P3_S::parseTree"
381  << " T[1] should have 2 daughters, but it says it has "
382  << T[1]->nDgtr() << "."
383  << endl;
384  return false;
385  }
386  fsPS[2] = T[1]->getDgtrTreePtr(0);
387  fsPS[3] = T[1]->getDgtrTreePtr(1);
388  // normalOrder(fsPS[2], fsPS[3]);
389 
390  // this->printYourself();
391  return true;
392 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
std::string SVPAT() const
MINT::const_counted_ptr< AssociatedDecayTree > T[2]
const ValueType & getVal() const
Definition: DDTree.h:102
bool isFinalState() const
Definition: DDTree.h:93
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_DtoT1T2_T1toP0P1_T2toP2P3_BASE::printYourself ( std::ostream &  os = std::cout) const
pure virtual

Member Data Documentation

◆ T

MINT::const_counted_ptr<AssociatedDecayTree> SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE::T[2]
protected

Definition at line 97 of file SpinFactors4Body_Tensors.h.


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