ROOTPWA
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
particle Class Reference

#include <particle.h>

Inheritance diagram for particle:
particleData wave

Public Member Functions

 particle ()
 particle (const particle &p)
 particle (const particleData &data, const int charge)
virtual ~particle ()
particleoperator= (const particle &p)
int operator== (const particle &p)
int operator!= (const particle &p)
int operator< (const particle &p)
particleoperator*= (const lorentzTransform &L)
particlesetCharge (const int charge)
particleset4P (const fourVec &p4)
particleset3P (const threeVec &p3)
particleIndex (const int i)
particlesetDecay (const decay &d)
particlesetMassDep (massDep *md)
decayDecay () const
int Stable () const
threeVec get3P () const
int Index () const
int Charge () const
fourVec get4P () const
fourVecget4P (particle *p, const int debug=0)
std::list< int > & helicities ()
particleaddHelicity (const int lam)
int is (const std::string &name) const
fourVec setupFrames (const int debug=0)
double q () const
double q0 () const
std::complex< double > breitWigner () const
std::complex< double > decayAmp (const int lambda, const int debug=0)
std::string sprint (const std::string &space=" ") const
void print () const
void printFrames () const
int OK () const
particleDatasetName (const std::string &)
particleDatasetMass (double m)
particleDatasetWidth (double w)
particleDatasetI (int i)
particleDatasetG (int g)
particleDatasetJ (int j)
particleDatasetP (int p)
particleDatasetC (int c)
std::string Name () const
double Mass () const
double Width () const
int I () const
int G () const
int J () const
int P () const
int C () const
void dump () const

Static Public Member Functions

static void debug (const int d=1)

Private Attributes

int _lambda
int _charge
fourVec _p
decay_decay
int _index
std::list< int_helicities
int _inRestFrame
massDep_massDep

Static Private Attributes

static int _particle_debug = 0

Friends

particle operator* (const lorentzTransform &L, const particle &p)

Detailed Description

Definition at line 19 of file pwa2000/libpp/particle.h.

Constructor & Destructor Documentation

particle::particle ( )

Definition at line 20 of file pwa2000/libpp/particle.cc.

References _particle_debug.

particle::particle ( const particle p)
particle::particle ( const particleData data,
const int  charge 
)

Definition at line 58 of file pwa2000/libpp/particle.cc.

References _particle_debug, and particleData::Name().

particle::~particle ( )
virtual

Definition at line 75 of file pwa2000/libpp/particle.cc.

References _decay, _massDep, _particle_debug, and particleData::Name().

Member Function Documentation

particle & particle::addHelicity ( const int  lam)

Definition at line 217 of file pwa2000/libpp/particle.cc.

References _helicities.

Referenced by yyparse().

complex< double > particle::breitWigner ( ) const
int particleData::C ( ) const
inlineinherited

Definition at line 93 of file particleData.h.

References particleData::_cparity.

Referenced by wave::print(), and wave::printFrames().

int particle::Charge ( ) const
inline

Definition at line 47 of file pwa2000/libpp/particle.h.

References _charge.

Referenced by decayAmp(), get4P(), setupFrames(), sprint(), event::write1(), and event::write2().

static void particle::debug ( const int  d = 1)
inlinestatic

Reimplemented from particleData.

Definition at line 71 of file pwa2000/libpp/particle.h.

References _particle_debug, and d.

decay* particle::Decay ( ) const
inline
complex< double > particle::decayAmp ( const int  lambda,
const int  debug = 0 
)
void particleData::dump ( ) const
inherited

Definition at line 121 of file particleData.cc.

Referenced by tableEntry::dump().

int particleData::G ( ) const
inlineinherited

Definition at line 90 of file particleData.h.

References particleData::_gparity.

Referenced by wave::print(), and wave::printFrames().

threeVec particle::get3P ( ) const
inline

Definition at line 45 of file pwa2000/libpp/particle.h.

References _p, and fourVec::V().

Referenced by decay::amp().

fourVec particle::get4P ( ) const
inline
fourVec * particle::get4P ( particle p,
const int  debug = 0 
)

Definition at line 184 of file pwa2000/libpp/particle.cc.

References _decay, _p, Charge(), decay::get4P(), Index(), and particleData::Name().

list< int > & particle::helicities ( )

Definition at line 207 of file pwa2000/libpp/particle.cc.

References _helicities, and particleData::J().

Referenced by decay::amp(), and decay::expt_amp().

int particleData::I ( ) const
inlineinherited

Definition at line 89 of file particleData.h.

References particleData::_isospin.

Referenced by wave::print(), and wave::printFrames().

particle & particle::Index ( const int  i)

Definition at line 158 of file pwa2000/libpp/particle.cc.

References _index, and i.

Referenced by get4P(), and yyparse().

int particle::Index ( ) const
inline

Definition at line 46 of file pwa2000/libpp/particle.h.

References _index.

Referenced by decayAmp(), get4P(), and setupFrames().

int particle::is ( const std::string &  name) const

Definition at line 225 of file pwa2000/libpp/particle.cc.

References particleData::Name().

int particleData::J ( ) const
inlineinherited
double particleData::Mass ( ) const
inlineinherited
string particleData::Name ( ) const
inherited
int particleData::OK ( ) const
inherited
int particle::operator!= ( const particle p)
inline

Definition at line 30 of file pwa2000/libpp/particle.h.

References particleData::Mass().

particle & particle::operator*= ( const lorentzTransform L)

Reimplemented in wave.

Definition at line 114 of file pwa2000/libpp/particle.cc.

References _decay, and _p.

int particle::operator< ( const particle p)
inline

Definition at line 31 of file pwa2000/libpp/particle.h.

References particleData::Mass().

particle & particle::operator= ( const particle p)
int particle::operator== ( const particle p)
inline

Definition at line 29 of file pwa2000/libpp/particle.h.

References particleData::Mass().

int particleData::P ( ) const
inlineinherited

Definition at line 92 of file particleData.h.

References particleData::_parity.

Referenced by wave::print(), wave::printFrames(), and wave::sprint().

void particle::print ( ) const

Reimplemented from particleData.

Reimplemented in wave.

Definition at line 382 of file pwa2000/libpp/particle.cc.

References _charge, _decay, _index, _massDep, _p, addtab(), massDep::print(), fourVec::print(), decay::print(), ptab(), and subtab().

Referenced by tableEntry::print(), and printFrames().

void particle::printFrames ( ) const

Reimplemented in wave.

Definition at line 402 of file pwa2000/libpp/particle.cc.

References _charge, _decay, _index, _p, addtab(), print(), fourVec::print(), decay::printFrames(), ptab(), and subtab().

double particle::q ( ) const
double particle::q0 ( ) const

!! this is wrong! q_0 should be a constant and should not depend !! on the actual but on the nominal masses of the daughters

Definition at line 305 of file pwa2000/libpp/particle.cc.

References decay::_children, _decay, get4P(), lambda(), fourVec::lenSq(), and particleData::Mass().

Referenced by breitWigner(), breitWigner::val(), rhoPrime::val(), and AMP_LASS::val().

particle & particle::set3P ( const threeVec p3)

Definition at line 150 of file pwa2000/libpp/particle.cc.

References _p, threeVec::lenSq(), and particleData::Mass().

particle & particle::set4P ( const fourVec p4)

Definition at line 142 of file pwa2000/libpp/particle.cc.

References _p.

Referenced by wave::fill(), main(), event::read1(), and event::read2().

particleData& particleData::setC ( int  c)
inlineinherited

Definition at line 79 of file particleData.h.

References particleData::_cparity.

Referenced by main().

particle & particle::setCharge ( const int  charge)

Definition at line 134 of file pwa2000/libpp/particle.cc.

References _charge.

Referenced by main().

particle & particle::setDecay ( const decay d)

Definition at line 166 of file pwa2000/libpp/particle.cc.

References _decay.

Referenced by main(), and yyparse().

particleData& particleData::setG ( int  g)
inlineinherited

Definition at line 61 of file particleData.h.

References particleData::_gparity.

Referenced by main().

particleData& particleData::setI ( int  i)
inlineinherited

Definition at line 55 of file particleData.h.

References particleData::_isospin, and i.

particleData& particleData::setJ ( int  j)
inlineinherited

Definition at line 67 of file particleData.h.

References particleData::_spin.

Referenced by yyparse().

particleData& particleData::setMass ( double  m)
inlineinherited

Definition at line 43 of file particleData.h.

References particleData::_mass.

Referenced by main().

particle & particle::setMassDep ( massDep md)

Definition at line 176 of file pwa2000/libpp/particle.cc.

References _massDep.

Referenced by yyparse().

particleData & particleData::setName ( const std::string &  nm)
inherited

Definition at line 102 of file particleData.cc.

Referenced by event::read1().

particleData& particleData::setP ( int  p)
inlineinherited

Definition at line 73 of file particleData.h.

References particleData::_parity, and p.

Referenced by yyparse().

fourVec particle::setupFrames ( const int  debug = 0)
particleData& particleData::setWidth ( double  w)
inlineinherited

Definition at line 49 of file particleData.h.

References particleData::_width.

Referenced by main().

string particle::sprint ( const std::string &  space = " ") const

Reimplemented in wave.

Definition at line 326 of file pwa2000/libpp/particle.cc.

References decay::_children, _decay, _index, Charge(), chargetos(), i, decay::L(), particleData::Name(), and decay::S().

int particle::Stable ( ) const
inline
double particleData::Width ( ) const
inlineinherited

Definition at line 88 of file particleData.h.

References particleData::_width.

Referenced by breitWigner(), main(), and breitWigner::val().

Friends And Related Function Documentation

particle operator* ( const lorentzTransform L,
const particle p 
)
friend

Definition at line 124 of file pwa2000/libpp/particle.cc.

Member Data Documentation

int particle::_charge
private

Definition at line 77 of file pwa2000/libpp/particle.h.

Referenced by Charge(), operator=(), particle(), print(), printFrames(), and setCharge().

decay* particle::_decay
private
std::list<int> particle::_helicities
private

Definition at line 81 of file pwa2000/libpp/particle.h.

Referenced by addHelicity(), helicities(), operator=(), and particle().

int particle::_index
private

Definition at line 80 of file pwa2000/libpp/particle.h.

Referenced by Index(), operator=(), particle(), print(), printFrames(), and sprint().

int particle::_inRestFrame
private

Definition at line 82 of file pwa2000/libpp/particle.h.

Referenced by operator=(), particle(), q(), and setupFrames().

int particle::_lambda
private

Definition at line 76 of file pwa2000/libpp/particle.h.

Referenced by operator=(), and particle().

massDep* particle::_massDep
private

Definition at line 83 of file pwa2000/libpp/particle.h.

Referenced by decayAmp(), operator=(), particle(), print(), setMassDep(), and ~particle().

fourVec particle::_p
private
int particle::_particle_debug = 0
staticprivate

Definition at line 75 of file pwa2000/libpp/particle.h.

Referenced by debug(), operator=(), particle(), and ~particle().


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