MINT2
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
SF_DtoV1V2_V1toP0P1_V1toP2P3_P Class Reference

#include <SpinFactors4Body_ScalarsAndVectors.h>

Inheritance diagram for SF_DtoV1V2_V1toP0P1_V1toP2P3_P:
SF_DtoV1V2_V1toP0P1_V1toP2P3_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_DtoV1V2_V1toP0P1_V1toP2P3_P (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoV1V2_V1toP0P1_V1toP2P3_P ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
- Public Member Functions inherited from SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE
 SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoV1V2_V1toP0P1_V1toP2P3_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 Private Attributes

static DecayTree_exampleDecayP =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_DtoV1V2_V1toP0P1_V1toP2P3_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_DtoV1V2_V1toP0P1_V1toP2P3_BASE
MINT::const_counted_ptr< AssociatedDecayTreeV1
 
MINT::const_counted_ptr< AssociatedDecayTreeV2
 
- 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 254 of file SpinFactors4Body_ScalarsAndVectors.h.

Constructor & Destructor Documentation

◆ SF_DtoV1V2_V1toP0P1_V1toP2P3_P()

SF_DtoV1V2_V1toP0P1_V1toP2P3_P::SF_DtoV1V2_V1toP0P1_V1toP2P3_P ( const AssociatedDecayTree theDecay)
inline

Definition at line 259 of file SpinFactors4Body_ScalarsAndVectors.h.

261  {
262 // printYourself();
263  }
SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE(const AssociatedDecayTree &theDecay)
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_DtoV1V2_V1toP0P1_V1toP2P3_P()

virtual SF_DtoV1V2_V1toP0P1_V1toP2P3_P::~SF_DtoV1V2_V1toP0P1_V1toP2P3_P ( )
inlinevirtual

Definition at line 265 of file SpinFactors4Body_ScalarsAndVectors.h.

265 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_DtoV1V2_V1toP0P1_V1toP2P3_P::exampleDecay ( )
virtual

Implements SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE.

Definition at line 486 of file SpinFactors4Body_ScalarsAndVectors.cpp.

486  {
487  return getExampleDecay();
488 }

◆ getExampleDecay()

const DecayTree & SF_DtoV1V2_V1toP0P1_V1toP2P3_P::getExampleDecay ( )
static

Definition at line 455 of file SpinFactors4Body_ScalarsAndVectors.cpp.

455  {
456  if(0==_exampleDecayP){
457  _exampleDecayP = new DecayTree(421);
458  // remark: addDgtr always returns a pointer to the
459  // last daughter that was added, thus allowing these
460  // chains:
461  _exampleDecayP->addDgtr( 313)->addDgtr( 321, -211);
462  _exampleDecayP->addDgtr(-313)->addDgtr(-321, 211);
463 
464  _exampleDecayP->getVal().setL(1);
465  }
466  return *_exampleDecayP;
467 }
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_DtoV1V2_V1toP0P1_V1toP2P3_P::getVal ( IDalitzEvent evt)
virtual

Implements SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE.

Definition at line 591 of file SpinFactors4Body_ScalarsAndVectors.cpp.

591  {
592  bool dbThis=false;
593  // double check this!!
594  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
595 
596  TLorentzVector pV1 = p(0, evt) + p(1, evt);
597  TLorentzVector qV1 = p(0, evt) - p(1, evt);
598  TLorentzVector pV2 = p(2, evt) + p(3, evt);
599  TLorentzVector qV2 = p(2, evt) - p(3, evt);
600 
601  TLorentzVector pD = pV1 + pV2;
602  TLorentzVector qD = pV1 - pV2;
603 
604  if (_useZemachTensors) {
605  double MV1 = mRes(V1, evt);
606  double MV2 = mRes(V2, evt);
607 
608  ZTspin1 LD(qD,pD,pD.M());
609  ZTspin1 LV1(qV1,pV1,MV1);
610  ZTspin1 LV2(qV2,pV2,MV2);
611 
612  if(dbThis){
613  cout << LeviCivita(pD,LD,LV1).Dot(LV2) << endl;
614  cout << LeviCivita(pD,LD,LV1,LV2) << endl << endl;
615  }
616  return LeviCivita(pD,LD,LV1).Dot(LV2)/(GeV*GeV*GeV*GeV);
617  }
618 
619  /*
620  double sum=0;
621  for(int a=0; a<4; a++){
622  for(int b=0; b<4; b++){
623  if(a==b) continue;
624  for(int c=0; c<4; c++){
625  if(a==c || b==c) continue;
626  for(int d=0; d<4; d++){
627  if(a==d || b==d || c==d) continue;
628  sum += LeviCita(a, b, c, d)
629  * pD[ (a + 3)%4 ] // coping with the stupid, stupid
630  * qD[ (b + 3)%4 ] // stupid, stupid convention in TLorentzVector
631  * qV1[ (c + 3)%4 ] // that index 0 = p_x, 1=py, 2=pz, 3=Energy
632  * qV2[ (d + 3)%4 ] // arrrrgh. ARRRRRRRGH!!! Rene!!! Why????
633  ; // (0 + 3)%4 = 3, (1+3)%4 = 0, (2+3)%4 = 1 (3+3)%4 = 2
634  }
635  }
636  }
637  }
638 
639  if(dbThis){
640  cout << " compare leviCivitas " << sum << ", "
641  << LeviCivita(pD, qD, qV1, qV2)
642  << endl;
643  }
644  return sum;
645  */
646  return LeviCivita(pD, qD, qV1, qV2)/(GeV*GeV*GeV*GeV);
647 }
MINT::const_counted_ptr< AssociatedDecayTree > V1
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
MINT::const_counted_ptr< AssociatedDecayTree > V2
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
double LeviCivita(const TLorentzVector &p0, const TLorentzVector &p1, const TLorentzVector &p2, const TLorentzVector &p3)
Definition: LeviCivita.h:12

◆ name()

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

Reimplemented from SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE.

Definition at line 270 of file SpinFactors4Body_ScalarsAndVectors.h.

270  {
271  return "SpinFactor4:SF_DtoV1V2_V1toP0P1_V1toP2P3_P("
272  + theDecay().oneLiner() + ")";
273  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_DtoV1V2_V1toP0P1_V1toP2P3_BASE.

Definition at line 648 of file SpinFactors4Body_ScalarsAndVectors.cpp.

648  {
649  // bool debugThis = false;
650  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
651  os << "spin factor SF_DtoV1V2_V1toP0P1_V1toP2P3_P"
652  << "\n\t LeviCivita(pD, qD, qV1, qV2)"
653  << "\n\t with pV1 = p(0) + p(1), qV1 = p(0) - p(1), pV2 = p(2) + p(3), qV2 = p(2) - p(3)"
654  << "\n\t parsed tree " << theDecay().oneLiner()
655  << "\n like this:" << endl;
656  this->printParsing(os);
657 }
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

◆ _exampleDecayP

DecayTree * SF_DtoV1V2_V1toP0P1_V1toP2P3_P::_exampleDecayP =0
staticprivate

Definition at line 255 of file SpinFactors4Body_ScalarsAndVectors.h.


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