MINT2
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
SF_DtoT1T2_T1toP0P1_T2toP2P3_D Class Reference

#include <SpinFactors4Body_Tensors.h>

Inheritance diagram for SF_DtoT1T2_T1toP0P1_T2toP2P3_D:
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

Public Member Functions

virtual void printYourself (std::ostream &os=std::cout) const
 
 SF_DtoT1T2_T1toP0P1_T2toP2P3_D (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoT1T2_T1toP0P1_T2toP2P3_D ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
- Public Member Functions inherited from SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE
 SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE ()
 
- 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 ()
 

Static Public Member Functions

static const DecayTreegetExampleDecay ()
 

Static Protected Attributes

static DecayTree_exampleDecay =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE
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 inherited from SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE
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 170 of file SpinFactors4Body_Tensors.h.

Constructor & Destructor Documentation

◆ SF_DtoT1T2_T1toP0P1_T2toP2P3_D()

SF_DtoT1T2_T1toP0P1_T2toP2P3_D::SF_DtoT1T2_T1toP0P1_T2toP2P3_D ( const AssociatedDecayTree theDecay)
inline

Definition at line 177 of file SpinFactors4Body_Tensors.h.

179  {
180  //printYourself();
181  }
SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE(const AssociatedDecayTree &theDecay)
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_DtoT1T2_T1toP0P1_T2toP2P3_D()

virtual SF_DtoT1T2_T1toP0P1_T2toP2P3_D::~SF_DtoT1T2_T1toP0P1_T2toP2P3_D ( )
inlinevirtual

Definition at line 183 of file SpinFactors4Body_Tensors.h.

183 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_DtoT1T2_T1toP0P1_T2toP2P3_D::exampleDecay ( )
virtual

Implements SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE.

Definition at line 104 of file SpinFactors4Body_Tensors.cpp.

104  {
105  return getExampleDecay();
106 }
static const DecayTree & getExampleDecay()

◆ getExampleDecay()

const DecayTree & SF_DtoT1T2_T1toP0P1_T2toP2P3_D::getExampleDecay ( )
static

Definition at line 96 of file SpinFactors4Body_Tensors.cpp.

96  {
97  // D->f2 f2 (with L=2)
98  _exampleDecay = new DecayTree(421);
99  _exampleDecay->addDgtr(225)->addDgtr(211, -211);
100  _exampleDecay->addDgtr(225)->addDgtr(211, -211);
101  _exampleDecay->getVal().setL(2);
102  return *_exampleDecay;
103 }
MINT::counted_ptr< DDTree< ValueType > > addDgtr(const DDTree< ValueType > *treePtr)
Definition: DDTree.h:211
const ValueType & getVal() const
Definition: DDTree.h:102
void setL(int l)
Definition: DecayTreeItem.h:61
DDTree< DecayTreeItem > DecayTree
Definition: DecayTree.h:35

◆ getVal()

double SF_DtoT1T2_T1toP0P1_T2toP2P3_D::getVal ( IDalitzEvent evt)
virtual

Implements SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE.

Definition at line 486 of file SpinFactors4Body_Tensors.cpp.

486  {
487  bool dbThis=false;
488  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
489 
490  TLorentzVector pT1 = p(0, evt) + p(1, evt);
491  TLorentzVector qT1 = p(0, evt) - p(1, evt);
492  TLorentzVector pT2 = p(2, evt) + p(3, evt);
493  TLorentzVector qT2 = p(2, evt) - p(3, evt);
494  TLorentzVector qD = pT1 - pT2;
495  TLorentzVector pD = pT1 + pT2;
496 
497  double MT1 = mRes(T[0], evt);
498  double MT2 = mRes(T[1], evt);
499 
500  ZTspin2 tT1(qT1, pT1, MT1);
501  ZTspin2 tT2(qT2, pT2, MT2);
502 
503  TLorentzVector X1(tT1.Contract(qD));
504  TLorentzVector X2(tT2.Contract(qD));
505 
506  const double units = GeV*GeV*GeV * GeV*GeV*GeV;
507 
508  if (_useZemachTensors) {
509  ZTspin1 tD(qD,pD,pD.M());
510  double val = (tT1.Contract(tD)).Dot(tT2.Contract(tD));
511  val -= 1./3. * tD.Dot(tD) * tT1.Contract_2(tT2);
512  val += 1./3. * tD.Dot(tD) / (pD.Dot(pD)) * (tT1.Contract(pD)).Dot(tT2.Contract(pD));
513  return val/units;
514  }
515 
516  double returnVal = X1.Dot(X2) / units;
517 
518  if(dbThis){
519  cout << " SF_DtoT1T2_T1toP0P1_T2toP2P3_D::getVal "
520  << " returning " << returnVal
521  << endl;
522  }
523  return returnVal;
524 
525 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
MINT::const_counted_ptr< AssociatedDecayTree > T[2]
MINT::NamedParameter< int > _useZemachTensors
Definition: SpinFactor.h:31
virtual bool parseTree(const DalitzEventPattern &pat)
TLorentzVector p(int i, IDalitzEvent &evt)
Definition: SpinFactor.cpp:11
virtual const DalitzEventPattern & eventPattern() const =0
double mRes(const AssociatedDecayTreeItem &adt, IDalitzEvent &evt)
Definition: SpinFactor.cpp:53
static const double GeV
Definition: ZTspin1.h:9

◆ name()

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

Reimplemented from SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE.

Definition at line 188 of file SpinFactors4Body_Tensors.h.

188  {
189  return "SpinFactor4:SF_DtoT1T2_T1toP0P1_T2toP2P3_D("
190  + theDecay().oneLiner() + ")";
191  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_DtoT1T2_T1toP0P1_T2toP2P3_BASE.

Definition at line 527 of file SpinFactors4Body_Tensors.cpp.

527  {
528  // bool debugThis = false;
529  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
530  os << "spin factor SF_DtoT1T2_T1toP0P1_T2toP2P3_D"
531  << "\n\t ZTspin2 tT1(qT1, pT1, MT1);"
532  << "\n\t ZTspin2 tT2(qT2, pT2, MT2);"
533  << "\n\t qD = pT1 - pT2"
534  << "\n\t return: (tT1.Contract(qD))* (tT2.Contract(qD))/ GeV^4"
535  << "\n\t with pT1 = p(0) + p(1), qT = p(0) - p(1), pT2 = p(2) + p(3), qT2 = p(2)-p(3)"
536  << "\n\t parsed tree " << theDecay().oneLiner()
537  << "\n like this:" << endl;
538  this->printParsing(os);
539 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
virtual void printParsing(std::ostream &os=std::cout) const
Definition: SpinFactor.cpp:57
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

Member Data Documentation

◆ _exampleDecay

DecayTree * SF_DtoT1T2_T1toP0P1_T2toP2P3_D::_exampleDecay =0
staticprotected

Definition at line 173 of file SpinFactors4Body_Tensors.h.


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