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

#include <SpinFactors3Body_ForRunningWidth.h>

Inheritance diagram for SF_VtoAP1_AtoV0P2:
SF_VtoAP1_AtoV0P2_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_VtoAP1_AtoV0P2 (const AssociatedDecayTree &theDecay, const int pol)
 
virtual ~SF_VtoAP1_AtoV0P2 ()
 
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_VtoAP1_AtoV0P2_BASE
 SF_VtoAP1_AtoV0P2_BASE (const AssociatedDecayTree &theDecay)
 
virtual ~SF_VtoAP1_AtoV0P2_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_VtoAP1_AtoV0P2_BASE
MINT::const_counted_ptr< AssociatedDecayTreeA
 
- 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_exampleDecay =0
 

Additional Inherited Members

- Protected Member Functions inherited from SF_VtoAP1_AtoV0P2_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 266 of file SpinFactors3Body_ForRunningWidth.h.

Constructor & Destructor Documentation

◆ SF_VtoAP1_AtoV0P2()

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

Definition at line 272 of file SpinFactors3Body_ForRunningWidth.h.

274  {}
SF_VtoAP1_AtoV0P2_BASE(const AssociatedDecayTree &theDecay)
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50

◆ ~SF_VtoAP1_AtoV0P2()

virtual SF_VtoAP1_AtoV0P2::~SF_VtoAP1_AtoV0P2 ( )
inlinevirtual

Definition at line 276 of file SpinFactors3Body_ForRunningWidth.h.

276 {}

Member Function Documentation

◆ exampleDecay()

const DecayTree & SF_VtoAP1_AtoV0P2::exampleDecay ( )
virtual

Implements SF_VtoAP1_AtoV0P2_BASE.

Definition at line 428 of file SpinFactors3Body_ForRunningWidth.cpp.

428  {
429  return getExampleDecay();
430 }
static const DecayTree & getExampleDecay()

◆ getExampleDecay()

const DecayTree & SF_VtoAP1_AtoV0P2::getExampleDecay ( )
static

Definition at line 420 of file SpinFactors3Body_ForRunningWidth.cpp.

420  {
421  if(0==_exampleDecay){
422  _exampleDecay = new DecayTree(100443);
423  _exampleDecay->addDgtr(321, 120553)->addDgtr(443,-211);
424  }
425  return *_exampleDecay;
426 }
MINT::counted_ptr< DDTree< ValueType > > addDgtr(const DDTree< ValueType > *treePtr)
Definition: DDTree.h:211
DDTree< DecayTreeItem > DecayTree
Definition: DecayTree.h:35

◆ getNewVal()

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

Implements SF_VtoAP1_AtoV0P2_BASE.

Definition at line 489 of file SpinFactors3Body_ForRunningWidth.cpp.

489  {
490  bool debugThis = false;
491 
492  if(! ( fsPS[0] && fsPS[1] && fsPS[2] )) parseTree(evt.eventPattern());
493 
494  TLorentzVector pV0 = p(0, evt);
495  TLorentzVector pV = p(1, evt) + p(2, evt) + pV0;
496  TLorentzVector pA = p(2, evt) + pV0;
497 
498  SpinSumV PA(pA,pA.M());
499 
500  polVector e = polVector(pV,pV.M(),getPolarisation());
501  polVector eV0 = polVector(pV0,pV0.M(),getPolarisation());
502  eV0.conj();
503 
504  TLorentzVectorC tmp( PA.Dot(eV0.Re()) , PA.Dot(eV0.Im()));
505 
506  return eV0.Dot(tmp);
507  (void)debugThis;
508 
509 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
TLorentzVector p(int i, IDalitzEvent &evt)
Definition: SpinFactor.cpp:11
virtual const DalitzEventPattern & eventPattern() const =0
virtual bool parseTree(const DalitzEventPattern &pat)

◆ getPolarisation()

int SF_VtoAP1_AtoV0P2::getPolarisation ( )
inline

◆ getVal()

virtual double SF_VtoAP1_AtoV0P2::getVal ( IDalitzEvent evt)
inlinevirtual

Implements SF_VtoAP1_AtoV0P2_BASE.

Definition at line 277 of file SpinFactors3Body_ForRunningWidth.h.

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

◆ name()

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

Reimplemented from SF_VtoAP1_AtoV0P2_BASE.

Definition at line 282 of file SpinFactors3Body_ForRunningWidth.h.

282  {
283  return "SpinFactor3:SF_VtoAP1_AtoV0P2("
284  + theDecay().oneLiner() + ")";
285  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

◆ printYourself()

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

Implements SF_VtoAP1_AtoV0P2_BASE.

Definition at line 511 of file SpinFactors3Body_ForRunningWidth.cpp.

511  {
512  // bool debugThis = false;
513 
514  if(! ( fsPS[0] && fsPS[1] && fsPS[2]) ) return;
515  os << "spin factor SF_VtoAP1_AtoV0P2"
516  << "\n\t parsed tree " << theDecay().oneLiner()
517  << "\n like this:" << endl;
518  this->printParsing(os);
519 }
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_VtoAP1_AtoV0P2::_exampleDecay =0
staticprotected

Definition at line 269 of file SpinFactors3Body_ForRunningWidth.h.

◆ _pol

int SF_VtoAP1_AtoV0P2::_pol
protected

Definition at line 268 of file SpinFactors3Body_ForRunningWidth.h.


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