laura is hosted by Hepforge, IPPP Durham
Laura++  v1r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.

Class for defining a complex coefficient using a simple Cartesian CP convention. More...

#include <LauRealImagCPCoeffSet.hh>

Inheritance diagram for LauRealImagCPCoeffSet:
LauAbsCoeffSet

Public Member Functions

 LauRealImagCPCoeffSet (const TString &compName, Double_t x, Double_t y, Double_t xbar, Double_t ybar, Bool_t xFixed, Bool_t yFixed, Bool_t xbarFixed, Bool_t ybarFixed)
 Constructor. More...
 
virtual ~LauRealImagCPCoeffSet ()
 Destructor. More...
 
virtual std::vector
< LauParameter * > 
getParameters ()
 Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit. More...
 
virtual void printTableHeading (std::ostream &stream)
 Print the column headings for a results table. More...
 
virtual void printTableRow (std::ostream &stream)
 Print the parameters of the complex coefficient as a row in the results table. More...
 
virtual void randomiseInitValues ()
 Randomise the starting values of the parameters for a fit. More...
 
virtual void finaliseValues ()
 Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. More...
 
virtual const LauComplexparticleCoeff ()
 Retrieve the complex coefficient for a particle. More...
 
virtual const LauComplexantiparticleCoeff ()
 Retrieve the complex coefficient for an antiparticle. More...
 
virtual void setCoeffValues (const LauComplex &coeff, const LauComplex &coeffBar)
 Set the parameters based on the complex coefficients for particles and antiparticles. More...
 
virtual LauParameter acp ()
 Calculate the CP asymmetry. More...
 
virtual LauAbsCoeffSetcreateClone (const TString &newName, Double_t constFactor=1.0)
 Create a clone of the coefficient set. More...
 
- Public Member Functions inherited from LauAbsCoeffSet
virtual ~LauAbsCoeffSet ()
 Destructor. More...
 
virtual TString name () const
 Retrieve the name of the coefficient set. More...
 
virtual void name (const TString &theName)
 Set the name of the coefficient set. More...
 
virtual TString baseName () const
 Retrieve the base name of the coefficient set. More...
 
virtual void baseName (const TString &theBasename)
 Set the base name of the coefficient set. More...
 
virtual UInt_t index () const
 Retrieve the index number of the coefficient set. More...
 
virtual void index (UInt_t newIndex)
 Set the index number of the coefficient set. More...
 

Protected Member Functions

 LauRealImagCPCoeffSet (const LauRealImagCPCoeffSet &rhs, Double_t constFactor=1.0)
 Copy constructor. More...
 
LauRealImagCPCoeffSetoperator= (const LauRealImagCPCoeffSet &rhs)
 Copy assignment operator. More...
 
- Protected Member Functions inherited from LauAbsCoeffSet
 LauAbsCoeffSet (const TString &theName)
 Constructor. More...
 
virtual void adjustName (LauParameter &par)
 Prepend the base name and index to the name of a parameter. More...
 
virtual void adjustName (LauParameter *par)
 Prepend the base name and index to the name of a parameter. More...
 

Private Attributes

Double_t minPar_
 The minimum allowed value. More...
 
Double_t maxPar_
 The maximum allowed value. More...
 
LauParameterx_
 The real part for the particle. More...
 
LauParametery_
 The imaginary part for the particle. More...
 
LauParameterxbar_
 The real part for the antiparticle. More...
 
LauParameterybar_
 The imaginary part for the antiparticle. More...
 
LauComplex particleCoeff_
 The particle complex coefficient. More...
 
LauComplex antiparticleCoeff_
 The antiparticle complex coefficient. More...
 
LauParameter acp_
 The CP asymmetry. More...
 

Detailed Description

Class for defining a complex coefficient using a simple Cartesian CP convention.

Holds a set of real values that define the complex coefficient of an amplitude component. The amplitudes have the form: c = x + i * y cbar = xbar + i * ybar

Definition at line 37 of file LauRealImagCPCoeffSet.hh.

Constructor & Destructor Documentation

LauRealImagCPCoeffSet::LauRealImagCPCoeffSet ( const TString &  compName,
Double_t  x,
Double_t  y,
Double_t  xbar,
Double_t  ybar,
Bool_t  xFixed,
Bool_t  yFixed,
Bool_t  xbarFixed,
Bool_t  ybarFixed 
)

Constructor.

Parameters
[in]compNamethe name of the coefficient set
[in]xthe real part for the particle
[in]ythe imaginary part for the particle
[in]xbarthe real part for the antiparticle
[in]ybarthe imaginary part for the antiparticle
[in]xFixedwhether x is fixed
[in]yFixedwhether y is fixed
[in]xbarFixedwhether xbar is fixed
[in]ybarFixedwhether ybar is fixed

Definition at line 35 of file LauRealImagCPCoeffSet.cc.

virtual LauRealImagCPCoeffSet::~LauRealImagCPCoeffSet ( )
inlinevirtual

Destructor.

Definition at line 56 of file LauRealImagCPCoeffSet.hh.

LauRealImagCPCoeffSet::LauRealImagCPCoeffSet ( const LauRealImagCPCoeffSet rhs,
Double_t  constFactor = 1.0 
)
protected

Copy constructor.

This creates cloned parameters, not copies.

Parameters
[in]rhsthe coefficient to clone
[in]constFactora constant factor to multiply the clone's parameters by

Definition at line 53 of file LauRealImagCPCoeffSet.cc.

Member Function Documentation

LauParameter LauRealImagCPCoeffSet::acp ( )
virtual

Calculate the CP asymmetry.

Returns
the CP asymmetry

Implements LauAbsCoeffSet.

Definition at line 178 of file LauRealImagCPCoeffSet.cc.

const LauComplex & LauRealImagCPCoeffSet::antiparticleCoeff ( )
virtual

Retrieve the complex coefficient for an antiparticle.

Returns
the complex coefficient for an antiparticle

Implements LauAbsCoeffSet.

Definition at line 164 of file LauRealImagCPCoeffSet.cc.

LauAbsCoeffSet * LauRealImagCPCoeffSet::createClone ( const TString &  newName,
Double_t  constFactor = 1.0 
)
virtual

Create a clone of the coefficient set.

Parameters
[in]newNamethe clone's name
[in]constFactora constant factor to multiply the clone's parameters by
Returns
a clone of the coefficient set

Implements LauAbsCoeffSet.

Definition at line 204 of file LauRealImagCPCoeffSet.cc.

void LauRealImagCPCoeffSet::finaliseValues ( )
virtual

Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi.

Implements LauAbsCoeffSet.

Definition at line 149 of file LauRealImagCPCoeffSet.cc.

std::vector< LauParameter * > LauRealImagCPCoeffSet::getParameters ( )
virtual

Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit.

Returns
the parameters of the coefficient

Implements LauAbsCoeffSet.

Definition at line 83 of file LauRealImagCPCoeffSet.cc.

LauRealImagCPCoeffSet & LauRealImagCPCoeffSet::operator= ( const LauRealImagCPCoeffSet rhs)
protected

Copy assignment operator.

This creates cloned parameters, not copies.

Parameters
[in]rhsthe coefficient to clone

Definition at line 66 of file LauRealImagCPCoeffSet.cc.

const LauComplex & LauRealImagCPCoeffSet::particleCoeff ( )
virtual

Retrieve the complex coefficient for a particle.

Returns
the complex coefficient for a particle

Implements LauAbsCoeffSet.

Definition at line 158 of file LauRealImagCPCoeffSet.cc.

void LauRealImagCPCoeffSet::printTableHeading ( std::ostream &  stream)
virtual

Print the column headings for a results table.

Parameters
[out]streamthe stream to print to

Implements LauAbsCoeffSet.

Definition at line 93 of file LauRealImagCPCoeffSet.cc.

void LauRealImagCPCoeffSet::printTableRow ( std::ostream &  stream)
virtual

Print the parameters of the complex coefficient as a row in the results table.

Parameters
[out]streamthe stream to print to

Implements LauAbsCoeffSet.

Definition at line 101 of file LauRealImagCPCoeffSet.cc.

void LauRealImagCPCoeffSet::randomiseInitValues ( )
virtual

Randomise the starting values of the parameters for a fit.

Implements LauAbsCoeffSet.

Definition at line 125 of file LauRealImagCPCoeffSet.cc.

void LauRealImagCPCoeffSet::setCoeffValues ( const LauComplex coeff,
const LauComplex coeffBar 
)
virtual

Set the parameters based on the complex coefficients for particles and antiparticles.

Parameters
[in]coeffthe complex coefficient for a particle
[in]coeffBarthe complex coefficient for an antiparticle

Implements LauAbsCoeffSet.

Definition at line 170 of file LauRealImagCPCoeffSet.cc.

Member Data Documentation

LauParameter LauRealImagCPCoeffSet::acp_
private

The CP asymmetry.

Definition at line 154 of file LauRealImagCPCoeffSet.hh.

LauComplex LauRealImagCPCoeffSet::antiparticleCoeff_
private

The antiparticle complex coefficient.

Definition at line 151 of file LauRealImagCPCoeffSet.hh.

Double_t LauRealImagCPCoeffSet::maxPar_
private

The maximum allowed value.

Definition at line 135 of file LauRealImagCPCoeffSet.hh.

Double_t LauRealImagCPCoeffSet::minPar_
private

The minimum allowed value.

Definition at line 133 of file LauRealImagCPCoeffSet.hh.

LauComplex LauRealImagCPCoeffSet::particleCoeff_
private

The particle complex coefficient.

Definition at line 149 of file LauRealImagCPCoeffSet.hh.

LauParameter* LauRealImagCPCoeffSet::x_
private

The real part for the particle.

Definition at line 140 of file LauRealImagCPCoeffSet.hh.

LauParameter* LauRealImagCPCoeffSet::xbar_
private

The real part for the antiparticle.

Definition at line 144 of file LauRealImagCPCoeffSet.hh.

LauParameter* LauRealImagCPCoeffSet::y_
private

The imaginary part for the particle.

Definition at line 142 of file LauRealImagCPCoeffSet.hh.

LauParameter* LauRealImagCPCoeffSet::ybar_
private

The imaginary part for the antiparticle.

Definition at line 146 of file LauRealImagCPCoeffSet.hh.


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