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

#include <DalitzEventBase.h>

Inheritance diagram for DalitzEventBase:
IDalitzEvent MINT::IWeightedEvent

Public Member Functions

 DalitzEvent ()
 
 DalitzEvent (const DalitzEventPattern &pat, const std::vector< TLorentzVector > mumAndDgtr_p4)
 
 DalitzEvent (const DalitzEventPattern &pat, double t01_in, double s12_in, double s23_in, double s34_in, double t40_in)
 
 DalitzEvent (const DalitzEventPattern &pat, const std::vector< TVector3 > mumAndDgtr_p4)
 
 DalitzEvent (const DalitzEventPattern &pat)
 
 DalitzEvent (const DalitzEventPattern &pat, TRandom *rnd)
 
 DalitzEvent (const DalitzEvent &other)
 
virtual double getWeight () const
 
virtual void setWeight (double w)
 
virtual void setGeneratorPdfRelativeToPhaseSpace (double gpdf)
 
virtual double getGeneratorPdfRelativeToPhaseSpace () const
 
bool resetST ()
 
const PermutationcurrentPermutation () const
 
void setPermutationIndex (int i)
 
int numPermutations () const
 
int permutationIndex () const
 
 DalitzEvent (TNtupleD *ntp)
 
bool fromNtuple (TNtupleD *ntp)
 
virtual void setAValue (double a)
 
virtual double getAValue () const
 
virtual const DalitzEventPatterneventPattern () const
 
virtual const TLorentzVector & p (unsigned int i) const
 
virtual double s (unsigned int i, unsigned int j) const
 
virtual double t (unsigned int i, unsigned int j) const
 
virtual double sij (const std::vector< int > &indices) const
 
virtual double phaseSpace () const
 
virtual bool retrieveComplex (void *key, std::complex< double > &value)
 
virtual void setComplex (void *key, const std::complex< double > &value)
 
double sijMin (const std::vector< int > &indices) const
 
double sijMax (const std::vector< int > &indices) const
 
int nDgtr () const
 
double m (unsigned int i) const
 
double m2 (unsigned int i) const
 
TLorentzVector p_dgtr_sum () const
 
bool kinematicallyAllowed (double epsilon=1.e-9) const
 
void print (std::ostream &os=std::cout) const
 
void generateThisToPhaseSpace (TRandom *rnd=0)
 
void generateThisToPhaseSpace (double p_of_D, TRandom *rnd=0)
 
void generateThisToPhaseSpace (const TVector3 &pVec_of_D, TRandom *rnd=0)
 
std::string makeNtupleVarnames () const
 
bool fillNtupleVarArray (Double_t *array, unsigned int arraySize) const
 
unsigned int ntupleVarArraySize () const
 
Calculate4BodyProps makeCalculate4BodyProps () const
 
- Public Member Functions inherited from IDalitzEvent
virtual const std::vector< double > & getVectorOfValues () const =0
 
virtual std::vector< double > & getVectorOfValues ()=0
 
virtual const std::vector< double > & getVectorOfWeights () const =0
 
virtual std::vector< double > & getVectorOfWeights ()=0
 
virtual void setValueInVector (unsigned int i, double value)=0
 
virtual void setWeightInVector (unsigned int i, double weight)=0
 
virtual double getValueFromVector (unsigned int i) const =0
 
virtual double getWeightFromVector (unsigned int i) const =0
 
virtual void setMothers3Momentum (const TVector3 &mp3)=0
 
virtual double sij (const MINT::PolymorphVector< int > &indices) const =0
 
virtual double sijMin (const MINT::PolymorphVector< int > &indices) const =0
 
virtual double sijMax (const MINT::PolymorphVector< int > &indices) const =0
 
virtual bool retrieveValue (int i, std::complex< double > &value, long int configNumber)=0
 
virtual void setValue (int i, const std::complex< double > &value, long int configNumber)=0
 
virtual bool retrieveValue (int i, double value, long int configNumber)=0
 
virtual void setValue (int i, double value, long int configNumber)=0
 
virtual IDalitzEventclone () const =0
 
virtual ~IDalitzEvent ()
 

Protected Member Functions

const TLorentzVector & p_intern (unsigned int i) const
 
double s_intern (unsigned int i, unsigned int j) const
 
double t_intern (unsigned int i, unsigned int j) const
 
bool shoutAndKill ()
 
double BDet () const
 
double Delta4 () const
 
double phaseSpace3 (double epsilon=1.e-9) const
 
double phaseSpace4 () const
 
bool setMomenta (const std::vector< TLorentzVector > &mumAndDgtr_p4)
 
bool setMomenta (const std::vector< TVector3 > &mumAndDgtr_p3)
 
void setP (unsigned int i, const TLorentzVector &p4)
 
- Protected Member Functions inherited from IDalitzEvent
 IDalitzEvent ()
 

Static Protected Member Functions

static std::string prtToNtpName (const std::string &s_in)
 
static std::string ntpToPrtName (const std::string &s_in)
 
static int singleParticleNtpArraySize ()
 

Protected Attributes

DalitzEventPattern _pat
 
std::vector< TLorentzVector > _p
 
double _rememberPhaseSpace
 
RememberAnything< std::complex< double > > _rememberAmps
 
double _aValue
 
double _weight
 
double _generatorPdfRelativeToPhaseSpace
 
std::vector< std::vector< double > > _s
 
std::vector< std::vector< double > > _t
 
int _permutationIndex
 
Permutator _perm
 

Static Protected Attributes

static const char ntpNameChars []
 
static const char prtNameChars []
 

Detailed Description

Definition at line 24 of file DalitzEventBase.h.

Member Function Documentation

◆ BDet()

double DalitzEventBase::BDet ( ) const
protected

◆ currentPermutation()

const Permutation& DalitzEventBase::currentPermutation ( ) const
inline

Definition at line 95 of file DalitzEventBase.h.

95  {
96  return _perm[_permutationIndex];
97  }
Permutator _perm

◆ DalitzEvent() [1/8]

DalitzEventBase::DalitzEvent ( )

◆ DalitzEvent() [2/8]

DalitzEventBase::DalitzEvent ( const DalitzEventPattern pat,
const std::vector< TLorentzVector >  mumAndDgtr_p4 
)

◆ DalitzEvent() [3/8]

DalitzEventBase::DalitzEvent ( const DalitzEventPattern pat,
double  t01_in,
double  s12_in,
double  s23_in,
double  s34_in,
double  t40_in 
)

◆ DalitzEvent() [4/8]

DalitzEventBase::DalitzEvent ( const DalitzEventPattern pat,
const std::vector< TVector3 >  mumAndDgtr_p4 
)

◆ DalitzEvent() [5/8]

DalitzEventBase::DalitzEvent ( const DalitzEventPattern pat)

◆ DalitzEvent() [6/8]

DalitzEventBase::DalitzEvent ( const DalitzEventPattern pat,
TRandom *  rnd 
)

◆ DalitzEvent() [7/8]

DalitzEventBase::DalitzEvent ( const DalitzEvent other)

◆ DalitzEvent() [8/8]

DalitzEventBase::DalitzEvent ( TNtupleD *  ntp)

◆ Delta4()

double DalitzEventBase::Delta4 ( ) const
protected

◆ eventPattern()

virtual const DalitzEventPattern& DalitzEventBase::eventPattern ( ) const
inlinevirtual

Implements IDalitzEvent.

Definition at line 114 of file DalitzEventBase.h.

114 {return _pat;}
DalitzEventPattern _pat

◆ fillNtupleVarArray()

bool DalitzEventBase::fillNtupleVarArray ( Double_t *  array,
unsigned int  arraySize 
) const

◆ fromNtuple()

bool DalitzEventBase::fromNtuple ( TNtupleD *  ntp)

◆ generateThisToPhaseSpace() [1/3]

void DalitzEventBase::generateThisToPhaseSpace ( TRandom *  rnd = 0)

◆ generateThisToPhaseSpace() [2/3]

void DalitzEventBase::generateThisToPhaseSpace ( double  p_of_D,
TRandom *  rnd = 0 
)

◆ generateThisToPhaseSpace() [3/3]

void DalitzEventBase::generateThisToPhaseSpace ( const TVector3 &  pVec_of_D,
TRandom *  rnd = 0 
)

◆ getAValue()

virtual double DalitzEventBase::getAValue ( ) const
inlinevirtual

Implements IDalitzEvent.

Definition at line 112 of file DalitzEventBase.h.

112 {return _aValue;}

◆ getGeneratorPdfRelativeToPhaseSpace()

virtual double DalitzEventBase::getGeneratorPdfRelativeToPhaseSpace ( ) const
virtual

Implements IDalitzEvent.

◆ getWeight()

virtual double DalitzEventBase::getWeight ( ) const
virtual

Implements IDalitzEvent.

◆ kinematicallyAllowed()

bool DalitzEventBase::kinematicallyAllowed ( double  epsilon = 1.e-9) const

◆ m()

double DalitzEventBase::m ( unsigned int  i) const

◆ m2()

double DalitzEventBase::m2 ( unsigned int  i) const

◆ makeCalculate4BodyProps()

Calculate4BodyProps DalitzEventBase::makeCalculate4BodyProps ( ) const

◆ makeNtupleVarnames()

std::string DalitzEventBase::makeNtupleVarnames ( ) const

◆ nDgtr()

int DalitzEventBase::nDgtr ( ) const
inline

Definition at line 134 of file DalitzEventBase.h.

134  {
135  return _pat.size()-1;
136  }
DalitzEventPattern _pat
unsigned int size() const

◆ ntpToPrtName()

static std::string DalitzEventBase::ntpToPrtName ( const std::string &  s_in)
staticprotected

◆ ntupleVarArraySize()

unsigned int DalitzEventBase::ntupleVarArraySize ( ) const

◆ numPermutations()

int DalitzEventBase::numPermutations ( ) const
virtual

Implements IDalitzEvent.

◆ p()

virtual const TLorentzVector& DalitzEventBase::p ( unsigned int  i) const
virtual

Implements IDalitzEvent.

◆ p_dgtr_sum()

TLorentzVector DalitzEventBase::p_dgtr_sum ( ) const

◆ p_intern()

const TLorentzVector& DalitzEventBase::p_intern ( unsigned int  i) const
protected

◆ permutationIndex()

int DalitzEventBase::permutationIndex ( ) const
inlinevirtual

Implements IDalitzEvent.

Definition at line 101 of file DalitzEventBase.h.

101  {
102  return _permutationIndex;
103  }

◆ phaseSpace()

virtual double DalitzEventBase::phaseSpace ( ) const
virtual

Implements IDalitzEvent.

◆ phaseSpace3()

double DalitzEventBase::phaseSpace3 ( double  epsilon = 1.e-9) const
protected

◆ phaseSpace4()

double DalitzEventBase::phaseSpace4 ( ) const
protected

◆ print()

void DalitzEventBase::print ( std::ostream &  os = std::cout) const
virtual

Implements IDalitzEvent.

◆ prtToNtpName()

static std::string DalitzEventBase::prtToNtpName ( const std::string &  s_in)
staticprotected

◆ resetST()

bool DalitzEventBase::resetST ( )

◆ retrieveComplex()

virtual bool DalitzEventBase::retrieveComplex ( void *  key,
std::complex< double > &  value 
)
inlinevirtual

Definition at line 122 of file DalitzEventBase.h.

122  {
123  return _rememberAmps.find(key, value);
124  }
RememberAnything< std::complex< double > > _rememberAmps

◆ s()

virtual double DalitzEventBase::s ( unsigned int  i,
unsigned int  j 
) const
virtual

Implements IDalitzEvent.

◆ s_intern()

double DalitzEventBase::s_intern ( unsigned int  i,
unsigned int  j 
) const
protected

◆ setAValue()

virtual void DalitzEventBase::setAValue ( double  a)
inlinevirtual

Implements IDalitzEvent.

Definition at line 111 of file DalitzEventBase.h.

111 {_aValue=a;}

◆ setComplex()

virtual void DalitzEventBase::setComplex ( void *  key,
const std::complex< double > &  value 
)
inlinevirtual

Definition at line 126 of file DalitzEventBase.h.

126  {
127  _rememberAmps.set(key, value);
128  }
RememberAnything< std::complex< double > > _rememberAmps

◆ setGeneratorPdfRelativeToPhaseSpace()

virtual void DalitzEventBase::setGeneratorPdfRelativeToPhaseSpace ( double  gpdf)
virtual

Implements IDalitzEvent.

◆ setMomenta() [1/2]

bool DalitzEventBase::setMomenta ( const std::vector< TLorentzVector > &  mumAndDgtr_p4)
protected

◆ setMomenta() [2/2]

bool DalitzEventBase::setMomenta ( const std::vector< TVector3 > &  mumAndDgtr_p3)
protected

◆ setP()

void DalitzEventBase::setP ( unsigned int  i,
const TLorentzVector &  p4 
)
protected

◆ setPermutationIndex()

void DalitzEventBase::setPermutationIndex ( int  i)
virtual

Implements IDalitzEvent.

◆ setWeight()

virtual void DalitzEventBase::setWeight ( double  w)
virtual

Implements IDalitzEvent.

◆ shoutAndKill()

bool DalitzEventBase::shoutAndKill ( )
protected

◆ sij()

virtual double DalitzEventBase::sij ( const std::vector< int > &  indices) const
virtual

◆ sijMax()

double DalitzEventBase::sijMax ( const std::vector< int > &  indices) const

◆ sijMin()

double DalitzEventBase::sijMin ( const std::vector< int > &  indices) const

◆ singleParticleNtpArraySize()

static int DalitzEventBase::singleParticleNtpArraySize ( )
staticprotected

◆ t()

virtual double DalitzEventBase::t ( unsigned int  i,
unsigned int  j 
) const
virtual

Implements IDalitzEvent.

◆ t_intern()

double DalitzEventBase::t_intern ( unsigned int  i,
unsigned int  j 
) const
protected

Member Data Documentation

◆ _aValue

double DalitzEventBase::_aValue
protected

Definition at line 42 of file DalitzEventBase.h.

◆ _generatorPdfRelativeToPhaseSpace

double DalitzEventBase::_generatorPdfRelativeToPhaseSpace
protected

Definition at line 44 of file DalitzEventBase.h.

◆ _p

std::vector<TLorentzVector> DalitzEventBase::_p
protected

Definition at line 36 of file DalitzEventBase.h.

◆ _pat

DalitzEventPattern DalitzEventBase::_pat
protected

Definition at line 35 of file DalitzEventBase.h.

◆ _perm

Permutator DalitzEventBase::_perm
protected

Definition at line 50 of file DalitzEventBase.h.

◆ _permutationIndex

int DalitzEventBase::_permutationIndex
protected

Definition at line 49 of file DalitzEventBase.h.

◆ _rememberAmps

RememberAnything<std::complex<double> > DalitzEventBase::_rememberAmps
protected

Definition at line 40 of file DalitzEventBase.h.

◆ _rememberPhaseSpace

double DalitzEventBase::_rememberPhaseSpace
mutableprotected

Definition at line 38 of file DalitzEventBase.h.

◆ _s

std::vector< std::vector<double> > DalitzEventBase::_s
mutableprotected

Definition at line 46 of file DalitzEventBase.h.

◆ _t

std::vector< std::vector<double> > DalitzEventBase::_t
mutableprotected

Definition at line 47 of file DalitzEventBase.h.

◆ _weight

double DalitzEventBase::_weight
protected

Definition at line 43 of file DalitzEventBase.h.

◆ ntpNameChars

const char DalitzEventBase::ntpNameChars[]
staticprotected

Definition at line 27 of file DalitzEventBase.h.

◆ prtNameChars

const char DalitzEventBase::prtNameChars[]
staticprotected

Definition at line 28 of file DalitzEventBase.h.


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