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

Class for storing particle properties. More...

#include <LauParticlePDG.hh>

Public Member Functions

virtual ~LauParticlePDG ()
 Destructor. More...
 
const LauParticlePDGantiParticle () const
 Method to access the record for the charge conjugate of this particle. More...
 
Int_t code () const
 The particle PDG code. More...
 
Int_t conjugateCode () const
 The anti-particle PDG code. More...
 
Int_t type () const
 The PDG code for the particle/antiparticle. More...
 
Int_t charge () const
 The charge of the particle. More...
 
Double_t mass () const
 The mass of the particle. More...
 
Double_t massSq () const
 The mass square of the particle. More...
 
Bool_t isKaon () const
 Check whether the particle is a kaon (K+, K-, K0, K0bar, KS or KL) More...
 
Bool_t isPion () const
 Check whether the particle is a pion (pi+, pi- or pi0) More...
 
Bool_t isKs () const
 Check whether the particle is a KS. More...
 
Bool_t isPi0 () const
 Check whether the particle is a pi0. More...
 
Bool_t isD () const
 Check whether the particle is a D. More...
 
Bool_t isB () const
 Check whether the particle is a B. More...
 
TString string () const
 Particle name. More...
 
TString stringAlphaNum () const
 Particle name, containing only alphanumeric characters. More...
 

Private Member Functions

 LauParticlePDG (const TParticlePDG *particle)
 Constructor. More...
 
 LauParticlePDG (const LauParticlePDG &rhs)
 Copy constructor (not implemented) More...
 
LauParticlePDGoperator= (const LauParticlePDG &rhs)
 Copy assignment operator (not implemented) More...
 
void setAntiParticle (const LauParticlePDG *antiPart)
 Set the antiparticle. More...
 

Private Attributes

const TParticlePDG * theParticle_
 The particle. More...
 
const LauParticlePDGantiParticle_
 The antiparticle. More...
 
Double_t mass_
 The mass of the particle. More...
 
Bool_t kaon_
 Flag whether the particle is a kaon. More...
 
Bool_t pion_
 Flag whether the particle is a pion. More...
 
Bool_t ks_
 Flag whether the particle is a KS. More...
 
Bool_t pi0_
 Flag whether the particle is a pi0. More...
 
Bool_t D_
 Flag whether the particle is a D. More...
 
Bool_t B_
 Flag whether the particle is a B. More...
 

Friends

class LauDatabasePDG
 LauDataBasePDG is a friend class. More...
 

Detailed Description

Class for storing particle properties.

Class that provides the properties of particles, including mapping particles and their anti-particles.

Definition at line 43 of file LauParticlePDG.hh.

Constructor & Destructor Documentation

LauParticlePDG::~LauParticlePDG ( )
virtual

Destructor.

Definition at line 96 of file LauParticlePDG.cc.

LauParticlePDG::LauParticlePDG ( const TParticlePDG *  particle)
explicitprivate

Constructor.

Parameters
[in]particlethe particle

Definition at line 43 of file LauParticlePDG.cc.

LauParticlePDG::LauParticlePDG ( const LauParticlePDG rhs)
private

Copy constructor (not implemented)

Member Function Documentation

const LauParticlePDG* LauParticlePDG::antiParticle ( ) const
inline

Method to access the record for the charge conjugate of this particle.

Returns
pointer to the anti-particle

Definition at line 53 of file LauParticlePDG.hh.

Int_t LauParticlePDG::charge ( ) const

The charge of the particle.

Returns
the charge of the particle

Definition at line 118 of file LauParticlePDG.cc.

Int_t LauParticlePDG::code ( ) const

The particle PDG code.

Returns
the PDG code of the particle

Definition at line 100 of file LauParticlePDG.cc.

Int_t LauParticlePDG::conjugateCode ( ) const

The anti-particle PDG code.

Returns
the PDG code of the charge conjugate of the particle

Definition at line 109 of file LauParticlePDG.cc.

Bool_t LauParticlePDG::isB ( ) const
inline

Check whether the particle is a B.

Returns
true if the particle is a B, false otherwise

Definition at line 125 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::isD ( ) const
inline

Check whether the particle is a D.

Returns
true if the particle is a D, false otherwise

Definition at line 119 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::isKaon ( ) const
inline

Check whether the particle is a kaon (K+, K-, K0, K0bar, KS or KL)

Returns
true if the particle is a kaon, false otherwise

Definition at line 95 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::isKs ( ) const
inline

Check whether the particle is a KS.

Returns
true if the particle is a KS, false otherwise

Definition at line 107 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::isPi0 ( ) const
inline

Check whether the particle is a pi0.

Returns
true if the particle is a pi0, false otherwise

Definition at line 113 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::isPion ( ) const
inline

Check whether the particle is a pion (pi+, pi- or pi0)

Returns
true if the particle is a pion, false otherwise

Definition at line 101 of file LauParticlePDG.hh.

Double_t LauParticlePDG::mass ( ) const
inline

The mass of the particle.

Returns
the mass of the particle

Definition at line 83 of file LauParticlePDG.hh.

Double_t LauParticlePDG::massSq ( ) const
inline

The mass square of the particle.

Returns
the mass square of the particle

Definition at line 89 of file LauParticlePDG.hh.

LauParticlePDG& LauParticlePDG::operator= ( const LauParticlePDG rhs)
private

Copy assignment operator (not implemented)

void LauParticlePDG::setAntiParticle ( const LauParticlePDG antiPart)
inlineprivate

Set the antiparticle.

Parameters
[in]antiPartthe antiparticle

Definition at line 161 of file LauParticlePDG.hh.

TString LauParticlePDG::string ( ) const

Particle name.

Returns
the name of the particle

Definition at line 129 of file LauParticlePDG.cc.

TString LauParticlePDG::stringAlphaNum ( ) const

Particle name, containing only alphanumeric characters.

Returns
the name of the particle, removing all non-alphanumeric characters

Definition at line 138 of file LauParticlePDG.cc.

Int_t LauParticlePDG::type ( ) const
inline

The PDG code for the particle/antiparticle.

Returns
the modulus of the PDG code of the particle

Definition at line 71 of file LauParticlePDG.hh.

Friends And Related Function Documentation

friend class LauDatabasePDG
friend

LauDataBasePDG is a friend class.

Definition at line 143 of file LauParticlePDG.hh.

Member Data Documentation

const LauParticlePDG* LauParticlePDG::antiParticle_
private

The antiparticle.

Definition at line 167 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::B_
private

Flag whether the particle is a B.

Definition at line 183 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::D_
private

Flag whether the particle is a D.

Definition at line 181 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::kaon_
private

Flag whether the particle is a kaon.

Definition at line 173 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::ks_
private

Flag whether the particle is a KS.

Definition at line 177 of file LauParticlePDG.hh.

Double_t LauParticlePDG::mass_
private

The mass of the particle.

Definition at line 170 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::pi0_
private

Flag whether the particle is a pi0.

Definition at line 179 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::pion_
private

Flag whether the particle is a pion.

Definition at line 175 of file LauParticlePDG.hh.

const TParticlePDG* LauParticlePDG::theParticle_
private

The particle.

Definition at line 164 of file LauParticlePDG.hh.


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