CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
ParticleTable Class Reference

#include <ParticleTable.h>

Classes

struct  Sentry
 

Public Member Functions

const HepPDT::ParticleDataTabletheTable () const
 Get the pointer to the particle data table. More...
 
 ~ParticleTable ()
 

Static Public Member Functions

static ParticleTable *const instance ()
 

Private Member Functions

 ParticleTable (const HepPDT::ParticleDataTable *pdt=0)
 
void set (const HepPDT::ParticleDataTable *pdt)
 

Private Attributes

const HepPDT::ParticleDataTablepdt_
 

Static Private Attributes

static thread_local ParticleTablemyself = 0
 

Friends

struct Sentry
 

Detailed Description

Definition at line 10 of file ParticleTable.h.

Constructor & Destructor Documentation

ParticleTable::~ParticleTable ( )
inline

Definition at line 22 of file ParticleTable.h.

22  {
23  }
ParticleTable::ParticleTable ( const HepPDT::ParticleDataTable pdt = 0)
inlineprivate

Definition at line 37 of file ParticleTable.h.

Referenced by instance().

37 : pdt_(pdt) {}
const HepPDT::ParticleDataTable * pdt_
Definition: ParticleTable.h:41

Member Function Documentation

static ParticleTable* const ParticleTable::instance ( )
inlinestatic

Definition at line 30 of file ParticleTable.h.

References myself, and ParticleTable().

Referenced by ParticleTable::Sentry::Sentry(), and ParticleTable::Sentry::~Sentry().

30  {
31  if( !myself ) myself = new ParticleTable();
32  return myself;
33  }
static thread_local ParticleTable * myself
Definition: ParticleTable.h:39
ParticleTable(const HepPDT::ParticleDataTable *pdt=0)
Definition: ParticleTable.h:37
void ParticleTable::set ( const HepPDT::ParticleDataTable pdt)
inlineprivate

Definition at line 38 of file ParticleTable.h.

References pdt_.

Referenced by ParticleTable::Sentry::Sentry(), and ParticleTable::Sentry::~Sentry().

38 { pdt_ = pdt; }
const HepPDT::ParticleDataTable * pdt_
Definition: ParticleTable.h:41
const HepPDT::ParticleDataTable* ParticleTable::theTable ( ) const
inline

Get the pointer to the particle data table.

Definition at line 26 of file ParticleTable.h.

References pdt_.

26  {
27  return pdt_;
28  }
const HepPDT::ParticleDataTable * pdt_
Definition: ParticleTable.h:41

Friends And Related Function Documentation

friend struct Sentry
friend

Definition at line 43 of file ParticleTable.h.

Member Data Documentation

thread_local ParticleTable * ParticleTable::myself = 0
staticprivate

Definition at line 39 of file ParticleTable.h.

Referenced by instance().

const HepPDT::ParticleDataTable* ParticleTable::pdt_
private

Definition at line 41 of file ParticleTable.h.

Referenced by set(), and theTable().