laura is hosted by Hepforge, IPPP Durham
Laura++  v3r0p1
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 29 of file LauParticlePDG.hh.

Constructor & Destructor Documentation

LauParticlePDG::~LauParticlePDG ( )
virtual

Destructor.

Definition at line 82 of file LauParticlePDG.cc.

LauParticlePDG::LauParticlePDG ( const TParticlePDG *  particle)
explicitprivate

Constructor.

Parameters
[in]particlethe particle

Definition at line 29 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 39 of file LauParticlePDG.hh.

Int_t LauParticlePDG::charge ( ) const

The charge of the particle.

Returns
the charge of the particle

Definition at line 104 of file LauParticlePDG.cc.

Int_t LauParticlePDG::code ( ) const

The particle PDG code.

Returns
the PDG code of the particle

Definition at line 86 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 95 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 111 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 105 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 81 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 93 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 99 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 87 of file LauParticlePDG.hh.

Double_t LauParticlePDG::mass ( ) const
inline

The mass of the particle.

Returns
the mass of the particle

Definition at line 69 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 75 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 147 of file LauParticlePDG.hh.

TString LauParticlePDG::string ( ) const

Particle name.

Returns
the name of the particle

Definition at line 115 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 124 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 57 of file LauParticlePDG.hh.

Friends And Related Function Documentation

friend class LauDatabasePDG
friend

LauDataBasePDG is a friend class.

Definition at line 129 of file LauParticlePDG.hh.

Member Data Documentation

const LauParticlePDG* LauParticlePDG::antiParticle_
private

The antiparticle.

Definition at line 153 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::B_
private

Flag whether the particle is a B.

Definition at line 169 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::D_
private

Flag whether the particle is a D.

Definition at line 167 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::kaon_
private

Flag whether the particle is a kaon.

Definition at line 159 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::ks_
private

Flag whether the particle is a KS.

Definition at line 163 of file LauParticlePDG.hh.

Double_t LauParticlePDG::mass_
private

The mass of the particle.

Definition at line 156 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::pi0_
private

Flag whether the particle is a pi0.

Definition at line 165 of file LauParticlePDG.hh.

Bool_t LauParticlePDG::pion_
private

Flag whether the particle is a pion.

Definition at line 161 of file LauParticlePDG.hh.

const TParticlePDG* LauParticlePDG::theParticle_
private

The particle.

Definition at line 150 of file LauParticlePDG.hh.


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