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

#include <SpinFactors4Body_Tensors.h>

Inheritance diagram for SF_DtoVT_VtoP0P1_TtoP2P3_P:
SF_DtoVT_VtoP0P1_TtoP2P3_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_DtoVT_VtoP0P1_TtoP2P3_P (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoVT_VtoP0P1_TtoP2P3_P ()
 
virtual double getVal (IDalitzEvent &evt)
 
virtual const DecayTreeexampleDecay ()
 
virtual std::string name () const
 
- Public Member Functions inherited from SF_DtoVT_VtoP0P1_TtoP2P3_BASE
 SF_DtoVT_VtoP0P1_TtoP2P3_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_DtoVT_VtoP0P1_TtoP2P3_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_exampleDecay =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_DtoVT_VtoP0P1_TtoP2P3_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_DtoVT_VtoP0P1_TtoP2P3_BASE
MINT::const_counted_ptr< AssociatedDecayTreeV
 
MINT::const_counted_ptr< AssociatedDecayTreeT
 
- 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 45 of file SpinFactors4Body_Tensors.h.

Constructor & Destructor Documentation

◆ SF_DtoVT_VtoP0P1_TtoP2P3_P()

SF_DtoVT_VtoP0P1_TtoP2P3_P::SF_DtoVT_VtoP0P1_TtoP2P3_P ( const AssociatedDecayTree theDecay)
inline

Definition at line 50 of file SpinFactors4Body_Tensors.h.

52  {
53 // printYourself();
54  }
SF_DtoVT_VtoP0P1_TtoP2P3_BASE(const AssociatedDecayTree &theDecay)
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_DtoVT_VtoP0P1_TtoP2P3_P()

virtual SF_DtoVT_VtoP0P1_TtoP2P3_P::~SF_DtoVT_VtoP0P1_TtoP2P3_P ( )
inlinevirtual

Definition at line 56 of file SpinFactors4Body_Tensors.h.

56 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_DtoVT_VtoP0P1_TtoP2P3_P::exampleDecay ( )
virtual

Implements SF_DtoVT_VtoP0P1_TtoP2P3_BASE.

Definition at line 51 of file SpinFactors4Body_Tensors.cpp.

51  {
52  return getExampleDecay();
53 }
static const DecayTree & getExampleDecay()

◆ getExampleDecay()

const DecayTree & SF_DtoVT_VtoP0P1_TtoP2P3_P::getExampleDecay ( )
static

Definition at line 40 of file SpinFactors4Body_Tensors.cpp.

40  {
41  if(0==_exampleDecay){
42  _exampleDecay = new DecayTree(421);
43  // remark: addDgtr always returns a pointer to the
44  // last daughter that was added, thus allowing these
45  // chains:
46  _exampleDecay->addDgtr( 225)->addDgtr( 221, -211);
47  _exampleDecay->addDgtr( 333)->addDgtr(-321, 321);
48  }
49  return *_exampleDecay;
50 }
MINT::counted_ptr< DDTree< ValueType > > addDgtr(const DDTree< ValueType > *treePtr)
Definition: DDTree.h:211
DDTree< DecayTreeItem > DecayTree
Definition: DecayTree.h:35

◆ getVal()

double SF_DtoVT_VtoP0P1_TtoP2P3_P::getVal ( IDalitzEvent evt)
virtual

Implements SF_DtoVT_VtoP0P1_TtoP2P3_BASE.

Definition at line 232 of file SpinFactors4Body_Tensors.cpp.

232  {
233  bool dbThis=false;
234  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) parseTree(evt.eventPattern());
235 
236  const double units = GeV*GeV*GeV*GeV;
237 
238  TLorentzVector pV = p(0, evt) + p(1, evt);
239  TLorentzVector qV = p(0, evt) - p(1, evt);
240  TLorentzVector pT = p(2, evt) + p(3, evt);
241  TLorentzVector qT = p(2, evt) - p(3, evt);
242  TLorentzVector pD = pV + pT;
243  TLorentzVector qD = pV - pT;
244 
245  double MV = mRes(V, evt);
246  double MT = mRes(T, evt);
247 
248  ZTspin1 tV(qV, pV, MV);
249  ZTspin2 tT(qT, pT, MT);
250 
251  if (_useZemachTensors) {
252  ZTspin1 tD(qD,pD,pD.M());
253  return (tT.Contract(tV)).Dot(tD) / units;
254  }
255 
256  double returnVal = (tT.Contract(tV)).Dot(pV) / units;
257 
258  if(dbThis){
259  cout << " SF_DtoVT_VtoP0P1_TtoP2P3_P::getVal "
260  << " returning " << returnVal
261  << endl;
262  }
263  return returnVal;
264 
265 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
MINT::const_counted_ptr< AssociatedDecayTree > V
MINT::NamedParameter< int > _useZemachTensors
Definition: SpinFactor.h:31
MINT::const_counted_ptr< AssociatedDecayTree > T
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
virtual bool parseTree(const DalitzEventPattern &pat)

◆ name()

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

Reimplemented from SF_DtoVT_VtoP0P1_TtoP2P3_BASE.

Definition at line 61 of file SpinFactors4Body_Tensors.h.

61  {
62  return "SpinFactor4:SF_DtoVT_VtoP0P1_TtoP2P3_P("
63  + theDecay().oneLiner() + ")";
64  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_DtoVT_VtoP0P1_TtoP2P3_BASE.

Definition at line 266 of file SpinFactors4Body_Tensors.cpp.

266  {
267  // bool debugThis = false;
268  if(! ( fsPS[0] && fsPS[1] && fsPS[2] && fsPS[3]) ) return;
269  os << "spin factor SF_DtoVT_VtoP0P1_TtoP2P3_P"
270  << "\n\t T1(V)_{\\mu} T2(T)^{\\mu\\nu} pV_{\\nu}"
271  << "\n\t implemented as: (tT.Contract(tV)).Dot(pV) / GeV^4"
272  << "\n\t with T1(V) = ZTspin1 tV(qV, pV, MV), T2(T)= ZTspin2 tT(qT, pT, MT);"
273  << "\n\t and pV = p(0) + p(1), qV = p(0) - p(1), pT = p(2) + p(3), qT = p(2) - p(3)"
274  << "\n\t parsed tree " << theDecay().oneLiner()
275  << "\n like this:" << endl;
276  this->printParsing(os);
277 }
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_DtoVT_VtoP0P1_TtoP2P3_P::_exampleDecay =0
staticprivate

Definition at line 46 of file SpinFactors4Body_Tensors.h.


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