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 Cartesian CP convention. More...

#include <LauCartesianCPCoeffSet.hh>

Inheritance diagram for LauCartesianCPCoeffSet:
LauAbsCoeffSet

Public Member Functions

 LauCartesianCPCoeffSet (const TString &compName, Double_t x, Double_t y, Double_t deltaX, Double_t deltaY, Bool_t xFixed, Bool_t yFixed, Bool_t deltaXFixed, Bool_t deltaYFixed, Bool_t deltaXSecondStage=kFALSE, Bool_t deltaYSecondStage=kFALSE)
 Constructor. More...
 
virtual ~LauCartesianCPCoeffSet ()
 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

 LauCartesianCPCoeffSet (const LauCartesianCPCoeffSet &rhs, Double_t constFactor=1.0)
 Copy constructor. More...
 
LauCartesianCPCoeffSetoperator= (const LauCartesianCPCoeffSet &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 for the average parts. More...
 
Double_t maxPar_
 The maximum allowed value for the average parts. More...
 
Double_t minDeltaPar_
 The minimum allowed value for the asymmetric parts. More...
 
Double_t maxDeltaPar_
 The maximum allowed value for the asymmetric parts. More...
 
LauParameterx_
 The average real part. More...
 
LauParametery_
 The average imaginary part. More...
 
LauParameterdeltaX_
 The asymmetric real part. More...
 
LauParameterdeltaY_
 The asymmetric imaginary part. 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 Cartesian CP convention.

Holds a set of real values that define the complex coefficient of an amplitude component. The amplitude has the form x +/- delta_x + i * ( y +/- delta_y ). [Phys.Rev. D78 (2008) 012004]

Definition at line 36 of file LauCartesianCPCoeffSet.hh.

Constructor & Destructor Documentation

LauCartesianCPCoeffSet::LauCartesianCPCoeffSet ( const TString &  compName,
Double_t  x,
Double_t  y,
Double_t  deltaX,
Double_t  deltaY,
Bool_t  xFixed,
Bool_t  yFixed,
Bool_t  deltaXFixed,
Bool_t  deltaYFixed,
Bool_t  deltaXSecondStage = kFALSE,
Bool_t  deltaYSecondStage = kFALSE 
)

Constructor.

Parameters
[in]compNamethe name of the coefficient set
[in]xthe average real part
[in]ythe average imaginary part
[in]deltaXthe asymmetric real part
[in]deltaYthe asymmetric imaginary part
[in]xFixedwhether x is fixed
[in]yFixedwhether y is fixed
[in]deltaXFixedwhether deltaX is fixed
[in]deltaYFixedwhether deltaY is fixed
[in]deltaXSecondStagewhether deltaX should be floated only in the second stage of the fit
[in]deltaYSecondStagewhether deltaY should be floated only in the second stage of the fit

Definition at line 35 of file LauCartesianCPCoeffSet.cc.

virtual LauCartesianCPCoeffSet::~LauCartesianCPCoeffSet ( )
inlinevirtual

Destructor.

Definition at line 57 of file LauCartesianCPCoeffSet.hh.

LauCartesianCPCoeffSet::LauCartesianCPCoeffSet ( const LauCartesianCPCoeffSet 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 64 of file LauCartesianCPCoeffSet.cc.

Member Function Documentation

LauParameter LauCartesianCPCoeffSet::acp ( )
virtual

Calculate the CP asymmetry.

Returns
the CP asymmetry

Implements LauAbsCoeffSet.

Definition at line 197 of file LauCartesianCPCoeffSet.cc.

const LauComplex & LauCartesianCPCoeffSet::antiparticleCoeff ( )
virtual

Retrieve the complex coefficient for an antiparticle.

Returns
the complex coefficient for an antiparticle

Implements LauAbsCoeffSet.

Definition at line 179 of file LauCartesianCPCoeffSet.cc.

LauAbsCoeffSet * LauCartesianCPCoeffSet::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 221 of file LauCartesianCPCoeffSet.cc.

void LauCartesianCPCoeffSet::finaliseValues ( )
virtual

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

Implements LauAbsCoeffSet.

Definition at line 164 of file LauCartesianCPCoeffSet.cc.

std::vector< LauParameter * > LauCartesianCPCoeffSet::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 98 of file LauCartesianCPCoeffSet.cc.

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

Copy assignment operator.

This creates cloned parameters, not copies.

Parameters
[in]rhsthe coefficient to clone

Definition at line 79 of file LauCartesianCPCoeffSet.cc.

const LauComplex & LauCartesianCPCoeffSet::particleCoeff ( )
virtual

Retrieve the complex coefficient for a particle.

Returns
the complex coefficient for a particle

Implements LauAbsCoeffSet.

Definition at line 173 of file LauCartesianCPCoeffSet.cc.

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

void LauCartesianCPCoeffSet::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 116 of file LauCartesianCPCoeffSet.cc.

void LauCartesianCPCoeffSet::randomiseInitValues ( )
virtual

Randomise the starting values of the parameters for a fit.

Implements LauAbsCoeffSet.

Definition at line 140 of file LauCartesianCPCoeffSet.cc.

void LauCartesianCPCoeffSet::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 185 of file LauCartesianCPCoeffSet.cc.

Member Data Documentation

LauParameter LauCartesianCPCoeffSet::acp_
private

The CP asymmetry.

Definition at line 159 of file LauCartesianCPCoeffSet.hh.

LauComplex LauCartesianCPCoeffSet::antiparticleCoeff_
private

The antiparticle complex coefficient.

Definition at line 156 of file LauCartesianCPCoeffSet.hh.

LauParameter* LauCartesianCPCoeffSet::deltaX_
private

The asymmetric real part.

Definition at line 149 of file LauCartesianCPCoeffSet.hh.

LauParameter* LauCartesianCPCoeffSet::deltaY_
private

The asymmetric imaginary part.

Definition at line 151 of file LauCartesianCPCoeffSet.hh.

Double_t LauCartesianCPCoeffSet::maxDeltaPar_
private

The maximum allowed value for the asymmetric parts.

Definition at line 140 of file LauCartesianCPCoeffSet.hh.

Double_t LauCartesianCPCoeffSet::maxPar_
private

The maximum allowed value for the average parts.

Definition at line 136 of file LauCartesianCPCoeffSet.hh.

Double_t LauCartesianCPCoeffSet::minDeltaPar_
private

The minimum allowed value for the asymmetric parts.

Definition at line 138 of file LauCartesianCPCoeffSet.hh.

Double_t LauCartesianCPCoeffSet::minPar_
private

The minimum allowed value for the average parts.

Definition at line 134 of file LauCartesianCPCoeffSet.hh.

LauComplex LauCartesianCPCoeffSet::particleCoeff_
private

The particle complex coefficient.

Definition at line 154 of file LauCartesianCPCoeffSet.hh.

LauParameter* LauCartesianCPCoeffSet::x_
private

The average real part.

Definition at line 145 of file LauCartesianCPCoeffSet.hh.

LauParameter* LauCartesianCPCoeffSet::y_
private

The average imaginary part.

Definition at line 147 of file LauCartesianCPCoeffSet.hh.


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