MINT2
Public Member Functions | List of all members
GSSpinFactor Class Reference

#include <GSSpinFactor.h>

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

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

Additional Inherited Members

- Static Public Member Functions inherited from SpinFactor3
static const DecayTreegetExampleDecay ()
 
- Protected Member Functions inherited from SpinFactor3
bool parseTree (const DalitzEventPattern &pat)
 
double nonResVal () const
 
double spinZeroVal () const
 
double GSSpinFactor (IDalitzEvent &evt)
 
double spinOneVal (IDalitzEvent &evt)
 
double spinTwoVal (IDalitzEvent &evt)
 
double spinOneFromMasses (IDalitzEvent &evt)
 
double spinTwoFromMasses (IDalitzEvent &evt)
 
double spinOneFromZemach (IDalitzEvent &evt)
 
bool setSpin ()
 
- 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 SpinFactor3
MINT::const_counted_ptr< AssociatedDecayTreeR
 
int _spin
 
bool _nonResonant
 
- 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 inherited from SpinFactor3
static DecayTree_exampleDecay =0
 

Detailed Description

Definition at line 10 of file GSSpinFactor.h.

Constructor & Destructor Documentation

◆ GSSpinFactor()

GSSpinFactor::GSSpinFactor ( const AssociatedDecayTree theDecay)
inline

Definition at line 13 of file GSSpinFactor.h.

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

Member Function Documentation

◆ getVal()

double GSSpinFactor::getVal ( IDalitzEvent evt)
virtual

Reimplemented from SpinFactor3.

Definition at line 9 of file GSSpinFactor.cpp.

9  {
10  bool dbThis=false;
11  if(dbThis) cout << "GSSpinFactor called" << endl;
12 
13  if(_nonResonant){
14  return nonResVal();
15  }
16 
17  if(! ( fsPS[0] && fsPS[1] && fsPS[2])) parseTree(evt.eventPattern());
18 
19  if(0 == R){
20  cout << "ERROR in GSSpinFactor::getVal(): 0 == R"
21  << endl;
22  throw "such things shouldn't happen";
23  }
24 
25  double m2AC = (p(0, evt) + p(1, evt)).M2();
26  double m2BC = (p(0, evt) + p(2, evt)).M2();
27 
28  return (m2AC - m2BC)/(GeV*GeV);
29 
30 }
std::vector< MINT::const_counted_ptr< AssociatedDecayTree > > fsPS
Definition: SpinFactor.h:30
double nonResVal() const
Definition: SpinFactor3.h:18
bool parseTree(const DalitzEventPattern &pat)
Definition: SpinFactor3.cpp:58
MINT::const_counted_ptr< AssociatedDecayTree > R
Definition: SpinFactor3.h:13
bool _nonResonant
Definition: SpinFactor3.h:15
TLorentzVector p(int i, IDalitzEvent &evt)
Definition: SpinFactor.cpp:11
virtual const DalitzEventPattern & eventPattern() const =0
static const double GeV

◆ name()

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

Reimplemented from SpinFactor3.

Definition at line 18 of file GSSpinFactor.h.

18  {
19  return "SpinFactor3:GSSpinFactor("
20  + theDecay().oneLiner() + ")";
21  }
const AssociatedDecayTree & theDecay() const
Definition: SpinFactor.h:50
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375

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