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

#include <SpinFactors4Body_FsVector.h>

Inheritance diagram for SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P:
SF_BtoAV0_AtoVP1_VtoP2P3_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_BtoAV0_AtoVP1Dwave_VtoP2P3_P (const AssociatedDecayTree &theDecay, const int pol)
 
virtual ~SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual std::complex< double > getNewVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
int getPolarisation ()
 
- Public Member Functions inherited from SF_BtoAV0_AtoVP1_VtoP2P3_BASE
 SF_BtoAV0_AtoVP1_VtoP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_BtoAV0_AtoVP1_VtoP2P3_BASE ()
 
- 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 ()
 

Static Public Member Functions

static const DecayTreegetExampleDecay ()
 

Protected Attributes

int _pol
 
- Protected Attributes inherited from SF_BtoAV0_AtoVP1_VtoP2P3_BASE
MINT::const_counted_ptr< AssociatedDecayTreeA
 
MINT::const_counted_ptr< AssociatedDecayTreeV
 
- 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
 

Static Protected Attributes

static DecayTree_exampleDecayDwaveP =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_BtoAV0_AtoVP1_VtoP2P3_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 ()
 

Detailed Description

Definition at line 108 of file SpinFactors4Body_FsVector.h.

Constructor & Destructor Documentation

◆ SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P()

SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P ( const AssociatedDecayTree theDecay,
const int  pol 
)
inline

Definition at line 114 of file SpinFactors4Body_FsVector.h.

SF_BtoAV0_AtoVP1_VtoP2P3_BASE(const AssociatedDecayTree &theDecay)
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P()

virtual SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::~SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P ( )
inlinevirtual

Definition at line 117 of file SpinFactors4Body_FsVector.h.

117 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::exampleDecay ( )
virtual

Implements SF_BtoAV0_AtoVP1_VtoP2P3_BASE.

Definition at line 174 of file SpinFactors4Body_FsVector.cpp.

174  {
175  return getExampleDecay();
176 }
static const DecayTree & getExampleDecay()

◆ getExampleDecay()

const DecayTree & SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::getExampleDecay ( )
static

Definition at line 159 of file SpinFactors4Body_FsVector.cpp.

159  {
160  if(0==_exampleDecayDwaveP){
161  // B->J/psi K1(1270); K1->K*(892) pi; K*->K pi
162  _exampleDecayDwaveP = new DecayTree(521);
163  DecayTree k1(10323);
164  k1.getVal().setL(2);
165  k1.addDgtr(211, 313)->addDgtr(321,-211);
169 
170  }
171  return *_exampleDecayDwaveP;
172 }
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

◆ getNewVal()

complex< double > SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::getNewVal ( IDalitzEvent evt)
virtual

Implements SF_BtoAV0_AtoVP1_VtoP2P3_BASE.

Definition at line 311 of file SpinFactors4Body_FsVector.cpp.

311  {
312  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
313 
314  double MA = mRes(A, evt);
315  double MV = mRes(V, evt);
316  double MV0 = mRes(fsPS[0], evt); // ??
317  //double MV0 = p(0, evt).M(); // ??
318 
319  TLorentzVector pV= p(2, evt)+p(3, evt);
320  TLorentzVector qV= p(2, evt)-p(3, evt);
321  TLorentzVector pA= pV+p(1, evt);
322  TLorentzVector qA= pV-p(1, evt);
323  TLorentzVector pB= pA+p(0, evt);
324  TLorentzVector qB= pA-p(0, evt);
325 
326  ZTspin1 LV(qV,pV,MV);
327  ZTspin1 LA(qA,pA,MA);
328  ZTspin1 LB(qB,pB,pB.M());
329  SpinSumV PA(pA,MA);
330 
331  polVector e = polVector(p(0,evt),MV0,getPolarisation());
332  e.conj();
333 
334  TLorentzVector tmp = LA * (LA.Dot(LV)) + 1./3. * LA.Dot(LA) * PA.Dot(LV);
335 
336  complex<double> sfm(LeviCivita(e.Re(),LB,pB,tmp),LeviCivita(e.Im(),LB,pB,tmp));
337  return sfm/(GeV*GeV*GeV*GeV*GeV);
338 
339 }
virtual bool parseTree(const DalitzEventPattern &pat)
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
MINT::const_counted_ptr< AssociatedDecayTree > A
const TLorentzVector & Re() const
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
const TLorentzVector & Im() const
double LeviCivita(const TLorentzVector &p0, const TLorentzVector &p1, const TLorentzVector &p2, const TLorentzVector &p3)
Definition: LeviCivita.h:12
MINT::const_counted_ptr< AssociatedDecayTree > V

◆ getPolarisation()

int SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::getPolarisation ( )
inline

◆ getVal()

virtual double SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::getVal ( IDalitzEvent evt)
inlinevirtual

Implements SF_BtoAV0_AtoVP1_VtoP2P3_BASE.

Definition at line 118 of file SpinFactors4Body_FsVector.h.

118 {return getNewVal(evt).real();}
virtual std::complex< double > getNewVal(IDalitzEvent &evt)

◆ name()

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

Reimplemented from SF_BtoAV0_AtoVP1_VtoP2P3_BASE.

Definition at line 123 of file SpinFactors4Body_FsVector.h.

123  {
124  return "SpinFactor4:SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P("
125  + theDecay().oneLiner() + ")";
126  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_BtoAV0_AtoVP1_VtoP2P3_BASE.

Definition at line 340 of file SpinFactors4Body_FsVector.cpp.

340  {
341  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
342  os << "spin factor SF_BtoAV0Dwave_AtoVP1_VtoP2P3_P"
343  << "\n\t parsed tree " << theDecay().oneLiner()
344  << "\n like this:" << endl;
345  this->printParsing(os);
346 }
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

◆ _exampleDecayDwaveP

DecayTree * SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::_exampleDecayDwaveP =0
staticprotected

Definition at line 111 of file SpinFactors4Body_FsVector.h.

◆ _pol

int SF_BtoAV0_AtoVP1Dwave_VtoP2P3_P::_pol
protected

Definition at line 110 of file SpinFactors4Body_FsVector.h.


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