ROOTPWA
Public Member Functions | Protected Attributes | Friends | List of all members
rpwa::pwacomponent Class Reference

#include <pwacomponent.h>

Inheritance diagram for rpwa::pwacomponent:
rpwa::pwabkg

Public Member Functions

 pwacomponent (const std::string &name, double m0, double gamma, const std::map< std::string, pwachannel > &channels)
virtual ~pwacomponent ()
std::string name () const
virtual std::complex< double > val (double m) const
virtual void setPar (double m0, double gamma)
unsigned int numChannels () const
const std::string & getChannelName (unsigned int i) const
const pwachannelgetChannel (unsigned int i) const
unsigned int numPar () const
void setCouplings (const double *par)
void getCouplings (double *par)
void setLimits (double mmin, double mmax, double gmin, double gmax)
void setFixed (bool mflag=true, bool gflag=true)
void setConstWidth (bool flag=true)
void getLimits (double &mmin, double &mmax, double &gmin, double &gmax) const
bool fixM () const
bool fixGamma () const
bool constWidth () const
double m0 () const
double gamma () const
const std::map< std::string,
pwachannel > & 
channels () const

Protected Attributes

std::string _name
double _m0
double _m02
double _m0min
double _m0max
double _gamma
double _gammamin
double _gammamax
bool _fixm
bool _fixgamma
bool _constWidth
std::map< std::string, pwachannel_channels
std::vector< pwachannel * > _vchannels
std::vector< std::string > _channelname

Friends

std::ostream & operator<< (std::ostream &o, const rpwa::pwacomponent &c)

Detailed Description

Definition at line 71 of file pwacomponent.h.

Constructor & Destructor Documentation

rpwa::pwacomponent::pwacomponent ( const std::string &  name,
double  m0,
double  gamma,
const std::map< std::string, pwachannel > &  channels 
)

Definition at line 41 of file pwacomponent.cc.

References _channelname, _channels, and _vchannels.

virtual rpwa::pwacomponent::~pwacomponent ( )
inlinevirtual

Definition at line 77 of file pwacomponent.h.

Member Function Documentation

const std::map<std::string,pwachannel >& rpwa::pwacomponent::channels ( ) const
inline

Definition at line 101 of file pwacomponent.h.

References _channels.

Referenced by main(), and releasePars().

bool rpwa::pwacomponent::constWidth ( ) const
inline

Definition at line 97 of file pwacomponent.h.

References _constWidth.

bool rpwa::pwacomponent::fixGamma ( ) const
inline

Definition at line 96 of file pwacomponent.h.

References _fixgamma.

Referenced by main(), and releasePars().

bool rpwa::pwacomponent::fixM ( ) const
inline

Definition at line 95 of file pwacomponent.h.

References _fixm.

Referenced by main(), and releasePars().

double rpwa::pwacomponent::gamma ( ) const
inline

Definition at line 100 of file pwacomponent.h.

References _gamma.

Referenced by main(), and setPar().

const pwachannel& rpwa::pwacomponent::getChannel ( unsigned int  i) const
inline

Definition at line 84 of file pwacomponent.h.

References _vchannels, and i.

const std::string& rpwa::pwacomponent::getChannelName ( unsigned int  i) const
inline

Definition at line 83 of file pwacomponent.h.

References _channelname, and i.

void rpwa::pwacomponent::getCouplings ( double *  par)

Definition at line 70 of file pwacomponent.cc.

void rpwa::pwacomponent::getLimits ( double &  mmin,
double &  mmax,
double &  gmin,
double &  gmax 
) const
inline

Definition at line 93 of file pwacomponent.h.

References _gammamax, _gammamin, _m0max, and _m0min.

Referenced by main(), and releasePars().

double rpwa::pwacomponent::m0 ( ) const
inline

Definition at line 99 of file pwacomponent.h.

References _m0.

Referenced by main(), and setPar().

std::string rpwa::pwacomponent::name ( ) const
inline

Definition at line 79 of file pwacomponent.h.

References _name.

Referenced by main(), and releasePars().

unsigned int rpwa::pwacomponent::numChannels ( ) const
inline

Definition at line 82 of file pwacomponent.h.

References _channels.

Referenced by numPar().

unsigned int rpwa::pwacomponent::numPar ( ) const
inline

Definition at line 85 of file pwacomponent.h.

References numChannels().

Referenced by rpwa::pwacompset::add().

void rpwa::pwacomponent::setConstWidth ( bool  flag = true)
inline

Definition at line 92 of file pwacomponent.h.

References _constWidth.

Referenced by main().

void rpwa::pwacomponent::setCouplings ( const double *  par)

Definition at line 60 of file pwacomponent.cc.

void rpwa::pwacomponent::setFixed ( bool  mflag = true,
bool  gflag = true 
)
inline

Definition at line 90 of file pwacomponent.h.

References _fixgamma, and _fixm.

Referenced by main().

void rpwa::pwacomponent::setLimits ( double  mmin,
double  mmax,
double  gmin,
double  gmax 
)
inline

Definition at line 88 of file pwacomponent.h.

References _gammamax, _gammamin, _m0max, and _m0min.

Referenced by main().

virtual void rpwa::pwacomponent::setPar ( double  m0,
double  gamma 
)
inlinevirtual

Definition at line 81 of file pwacomponent.h.

References _gamma, _m0, _m02, gamma(), and m0().

complex< double > rpwa::pwacomponent::val ( double  m) const
virtual

Reimplemented in rpwa::pwabkg.

Definition at line 83 of file pwacomponent.cc.

References n, and ps.

Referenced by main().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const rpwa::pwacomponent c 
)
friend

Member Data Documentation

std::vector<std::string> rpwa::pwacomponent::_channelname
protected

Definition at line 117 of file pwacomponent.h.

Referenced by getChannelName(), and pwacomponent().

std::map<std::string,pwachannel > rpwa::pwacomponent::_channels
protected

Definition at line 115 of file pwacomponent.h.

Referenced by channels(), numChannels(), and pwacomponent().

bool rpwa::pwacomponent::_constWidth
protected

Definition at line 114 of file pwacomponent.h.

Referenced by constWidth(), and setConstWidth().

bool rpwa::pwacomponent::_fixgamma
protected

Definition at line 113 of file pwacomponent.h.

Referenced by fixGamma(), and setFixed().

bool rpwa::pwacomponent::_fixm
protected

Definition at line 112 of file pwacomponent.h.

Referenced by fixM(), and setFixed().

double rpwa::pwacomponent::_gamma
protected

Definition at line 110 of file pwacomponent.h.

Referenced by gamma(), and setPar().

double rpwa::pwacomponent::_gammamax
protected

Definition at line 111 of file pwacomponent.h.

Referenced by getLimits(), and setLimits().

double rpwa::pwacomponent::_gammamin
protected

Definition at line 111 of file pwacomponent.h.

Referenced by getLimits(), and setLimits().

double rpwa::pwacomponent::_m0
protected

Definition at line 107 of file pwacomponent.h.

Referenced by m0(), and setPar().

double rpwa::pwacomponent::_m02
protected

Definition at line 108 of file pwacomponent.h.

Referenced by setPar().

double rpwa::pwacomponent::_m0max
protected

Definition at line 109 of file pwacomponent.h.

Referenced by getLimits(), and setLimits().

double rpwa::pwacomponent::_m0min
protected

Definition at line 109 of file pwacomponent.h.

Referenced by getLimits(), and setLimits().

std::string rpwa::pwacomponent::_name
protected

Definition at line 106 of file pwacomponent.h.

Referenced by name().

std::vector<pwachannel*> rpwa::pwacomponent::_vchannels
protected

Definition at line 116 of file pwacomponent.h.

Referenced by getChannel(), and pwacomponent().


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