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 the Belle CP convention. Holds a set of real values that define the complex coefficient of an amplitude component. More...

#include <LauBelleCPCoeffSet.hh>

Inheritance diagram for LauBelleCPCoeffSet:
LauAbsCoeffSet

Public Member Functions

 LauBelleCPCoeffSet (const TString &compName, Double_t a, Double_t delta, Double_t b, Double_t phi, Bool_t aFixed, Bool_t deltaFixed, Bool_t bFixed, Bool_t phiFixed)
 Constructor. More...
 
virtual ~LauBelleCPCoeffSet ()
 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

 LauBelleCPCoeffSet (const LauBelleCPCoeffSet &rhs, Double_t constFactor=1.0)
 Copy constructor. More...
 
LauBelleCPCoeffSetoperator= (const LauBelleCPCoeffSet &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 minMag_
 The minimum allowed value for magnitudes. More...
 
Double_t maxMag_
 The maximum allowed value for magnitudes. More...
 
Double_t minPhase_
 The minimum allowed value for phases. More...
 
Double_t maxPhase_
 The maximum allowed value for phases. More...
 
LauParametera_
 The magnitude a. More...
 
LauParameterb_
 The magnitude b. More...
 
LauParameterdelta_
 The strong phase. More...
 
LauParameterphi_
 The weak phase. 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 the Belle CP convention. Holds a set of real values that define the complex coefficient of an amplitude component.

The amplitude has the form a * exp(i*delta) * ( 1 +/- b * exp(i*phi) ) where a is a CP conserving magnitude, b is a CP violating magnitude, delta is the strong phase and phi is the weak phase. [Phys.Rev.Lett. 96 (2006) 251803]

Definition at line 40 of file LauBelleCPCoeffSet.hh.

Constructor & Destructor Documentation

LauBelleCPCoeffSet::LauBelleCPCoeffSet ( const TString &  compName,
Double_t  a,
Double_t  delta,
Double_t  b,
Double_t  phi,
Bool_t  aFixed,
Bool_t  deltaFixed,
Bool_t  bFixed,
Bool_t  phiFixed 
)

Constructor.

Parameters
[in]compNamethe name of the coefficient set
[in]athe magnitude a
[in]deltathe strong phase
[in]bthe magnitude b
[in]phithe weak phase
[in]aFixedwhether a is fixed
[in]deltaFixedwhether delta is fixed
[in]bFixedwhether b is fixed
[in]phiFixedwhether phi is fixed

Definition at line 36 of file LauBelleCPCoeffSet.cc.

virtual LauBelleCPCoeffSet::~LauBelleCPCoeffSet ( )
inlinevirtual

Destructor.

Definition at line 59 of file LauBelleCPCoeffSet.hh.

LauBelleCPCoeffSet::LauBelleCPCoeffSet ( const LauBelleCPCoeffSet 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 56 of file LauBelleCPCoeffSet.cc.

Member Function Documentation

LauParameter LauBelleCPCoeffSet::acp ( )
virtual

Calculate the CP asymmetry.

Returns
the CP asymmetry

Implements LauAbsCoeffSet.

Definition at line 265 of file LauBelleCPCoeffSet.cc.

const LauComplex & LauBelleCPCoeffSet::antiparticleCoeff ( )
virtual

Retrieve the complex coefficient for an antiparticle.

Returns
the complex coefficient for an antiparticle

Implements LauAbsCoeffSet.

Definition at line 242 of file LauBelleCPCoeffSet.cc.

LauAbsCoeffSet * LauBelleCPCoeffSet::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 287 of file LauBelleCPCoeffSet.cc.

void LauBelleCPCoeffSet::finaliseValues ( )
virtual

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

Implements LauAbsCoeffSet.

Definition at line 156 of file LauBelleCPCoeffSet.cc.

vector< LauParameter * > LauBelleCPCoeffSet::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 90 of file LauBelleCPCoeffSet.cc.

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

Copy assignment operator.

This creates cloned parameters, not copies.

Parameters
[in]rhsthe coefficient to clone

Definition at line 71 of file LauBelleCPCoeffSet.cc.

const LauComplex & LauBelleCPCoeffSet::particleCoeff ( )
virtual

Retrieve the complex coefficient for a particle.

Returns
the complex coefficient for a particle

Implements LauAbsCoeffSet.

Definition at line 232 of file LauBelleCPCoeffSet.cc.

void LauBelleCPCoeffSet::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 100 of file LauBelleCPCoeffSet.cc.

void LauBelleCPCoeffSet::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 108 of file LauBelleCPCoeffSet.cc.

void LauBelleCPCoeffSet::randomiseInitValues ( )
virtual

Randomise the starting values of the parameters for a fit.

Implements LauAbsCoeffSet.

Definition at line 132 of file LauBelleCPCoeffSet.cc.

void LauBelleCPCoeffSet::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 252 of file LauBelleCPCoeffSet.cc.

Member Data Documentation

LauParameter* LauBelleCPCoeffSet::a_
private

The magnitude a.

Definition at line 148 of file LauBelleCPCoeffSet.hh.

LauParameter LauBelleCPCoeffSet::acp_
private

The CP asymmetry.

Definition at line 162 of file LauBelleCPCoeffSet.hh.

LauComplex LauBelleCPCoeffSet::antiparticleCoeff_
private

The antiparticle complex coefficient.

Definition at line 159 of file LauBelleCPCoeffSet.hh.

LauParameter* LauBelleCPCoeffSet::b_
private

The magnitude b.

Definition at line 150 of file LauBelleCPCoeffSet.hh.

LauParameter* LauBelleCPCoeffSet::delta_
private

The strong phase.

Definition at line 152 of file LauBelleCPCoeffSet.hh.

Double_t LauBelleCPCoeffSet::maxMag_
private

The maximum allowed value for magnitudes.

Definition at line 139 of file LauBelleCPCoeffSet.hh.

Double_t LauBelleCPCoeffSet::maxPhase_
private

The maximum allowed value for phases.

Definition at line 143 of file LauBelleCPCoeffSet.hh.

Double_t LauBelleCPCoeffSet::minMag_
private

The minimum allowed value for magnitudes.

Definition at line 137 of file LauBelleCPCoeffSet.hh.

Double_t LauBelleCPCoeffSet::minPhase_
private

The minimum allowed value for phases.

Definition at line 141 of file LauBelleCPCoeffSet.hh.

LauComplex LauBelleCPCoeffSet::particleCoeff_
private

The particle complex coefficient.

Definition at line 157 of file LauBelleCPCoeffSet.hh.

LauParameter* LauBelleCPCoeffSet::phi_
private

The weak phase.

Definition at line 154 of file LauBelleCPCoeffSet.hh.


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