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

Singleton class that provides access to particle property records. More...

#include <LauDatabasePDG.hh>

Static Public Member Functions

static const LauParticlePDGparticle (Int_t code)
 Get particle object based on the PDG code. More...
 
static const LauParticlePDGparticle (const TString &string)
 Get particle object based on the particle name string. More...
 
static Int_t code (const TString &string)
 Method to convert from a particle name string into a PDG code. More...
 
static TString string (Int_t code)
 Method to convert from a PDG code to a particle name string. More...
 

Private Types

typedef std::map< Int_t, const
LauParticlePDG * > 
LauPDGList
 The type to hold the list of wrapped particle objects. More...
 

Private Member Functions

 LauDatabasePDG ()
 Constructor. More...
 
virtual ~LauDatabasePDG ()
 Destructor. More...
 
 LauDatabasePDG (const LauDatabasePDG &other)
 Copy constructor (not inplemented) More...
 
LauDatabasePDGoperator= (const LauDatabasePDG &other)
 Copy assignment (not implemented) More...
 
void addMissingParticles ()
 Add particles to the ROOT database that are missing from the default setup. More...
 
const LauParticlePDGcreateParticle (Int_t theCode)
 Create particle in the database for a given PDG code and return the new particle. More...
 
const LauParticlePDGcreateParticle (const TString &theString)
 Create particle in the database for a given string and return the new particle. More...
 
Int_t pdgCode (const TString &theString)
 Get the associated pdgCode for a given particle name string. More...
 
TString pdgName (Int_t theCode)
 Get the associated name string for a given pdgCode. More...
 

Static Private Member Functions

static LauDatabasePDGget ()
 Get the database instance. More...
 

Private Attributes

TDatabasePDG * theDatabase_
 The ROOT database. More...
 
LauPDGList particles_
 The list of particle objects. More...
 
const Bool_t debug_
 Debug flag - set in constructor. More...
 

Static Private Attributes

static LauDatabasePDGtheInstance_ = 0
 The singleton instance. More...
 

Detailed Description

Singleton class that provides access to particle property records.

Singleton class that provides access to particle property records from the ROOT database and adds missing particles to the default setup. Particles may be accessed by both string and PDG code.

Definition at line 32 of file LauDatabasePDG.hh.

Member Typedef Documentation

typedef std::map<Int_t,const LauParticlePDG*> LauDatabasePDG::LauPDGList
private

The type to hold the list of wrapped particle objects.

Definition at line 121 of file LauDatabasePDG.hh.

Constructor & Destructor Documentation

LauDatabasePDG::LauDatabasePDG ( )
private

Constructor.

Definition at line 31 of file LauDatabasePDG.cc.

LauDatabasePDG::~LauDatabasePDG ( )
privatevirtual

Destructor.

Definition at line 40 of file LauDatabasePDG.cc.

LauDatabasePDG::LauDatabasePDG ( const LauDatabasePDG other)
private

Copy constructor (not inplemented)

Member Function Documentation

void LauDatabasePDG::addMissingParticles ( )
private

Add particles to the ROOT database that are missing from the default setup.

Definition at line 88 of file LauDatabasePDG.cc.

Int_t LauDatabasePDG::code ( const TString &  string)
static

Method to convert from a particle name string into a PDG code.

Parameters
[in]stringthe particle name string
Returns
the corresponding PDG code

Definition at line 74 of file LauDatabasePDG.cc.

const LauParticlePDG * LauDatabasePDG::createParticle ( Int_t  theCode)
private

Create particle in the database for a given PDG code and return the new particle.

Parameters
[in]theCodePDG code of the associated particle
Returns
pointer to the particle record

Definition at line 158 of file LauDatabasePDG.cc.

const LauParticlePDG * LauDatabasePDG::createParticle ( const TString &  theString)
private

Create particle in the database for a given string and return the new particle.

Parameters
[in]theStringparticle string to be created
Returns
pointer to the particle record

Definition at line 220 of file LauDatabasePDG.cc.

LauDatabasePDG & LauDatabasePDG::get ( )
staticprivate

Get the database instance.

Definition at line 51 of file LauDatabasePDG.cc.

LauDatabasePDG& LauDatabasePDG::operator= ( const LauDatabasePDG other)
private

Copy assignment (not implemented)

const LauParticlePDG * LauDatabasePDG::particle ( Int_t  code)
static

Get particle object based on the PDG code.

Parameters
[in]codePDG code
Returns
pointer to the particle record

Definition at line 64 of file LauDatabasePDG.cc.

const LauParticlePDG * LauDatabasePDG::particle ( const TString &  string)
static

Get particle object based on the particle name string.

Parameters
[in]stringparticle name string
Returns
pointer to the particle record

Definition at line 69 of file LauDatabasePDG.cc.

Int_t LauDatabasePDG::pdgCode ( const TString &  theString)
private

Get the associated pdgCode for a given particle name string.

Parameters
[in]theStringparticle string to be associated to the pdgCode
Returns
the corresponding PDG code

Definition at line 236 of file LauDatabasePDG.cc.

TString LauDatabasePDG::pdgName ( Int_t  theCode)
private

Get the associated name string for a given pdgCode.

Parameters
[in]theCodeparticle pdgCode
Returns
the corresponding particle name

Definition at line 246 of file LauDatabasePDG.cc.

TString LauDatabasePDG::string ( Int_t  code)
static

Method to convert from a PDG code to a particle name string.

Parameters
[in]codethe particle PDG code
Returns
the corresponding particle name

Definition at line 79 of file LauDatabasePDG.cc.

Member Data Documentation

const Bool_t LauDatabasePDG::debug_
private

Debug flag - set in constructor.

Definition at line 127 of file LauDatabasePDG.hh.

LauPDGList LauDatabasePDG::particles_
private

The list of particle objects.

Definition at line 124 of file LauDatabasePDG.hh.

TDatabasePDG* LauDatabasePDG::theDatabase_
private

The ROOT database.

Definition at line 118 of file LauDatabasePDG.hh.

LauDatabasePDG * LauDatabasePDG::theInstance_ = 0
staticprivate

The singleton instance.

Definition at line 115 of file LauDatabasePDG.hh.


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