test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ParticleTable::Sentry Struct Reference

#include <ParticleTable.h>

Public Member Functions

 Sentry (const HepPDT::ParticleDataTable *pdt)
 
 ~Sentry ()
 

Detailed Description

Definition at line 13 of file ParticleTable.h.

Constructor & Destructor Documentation

ParticleTable::Sentry::Sentry ( const HepPDT::ParticleDataTable pdt)
inline

Definition at line 14 of file ParticleTable.h.

References ParticleTable::instance(), and ParticleTable::set().

14  {
16  }
static ParticleTable *const instance()
Definition: ParticleTable.h:30
void set(const HepPDT::ParticleDataTable *pdt)
Definition: ParticleTable.h:38
ParticleTable::Sentry::~Sentry ( )
inline

Definition at line 17 of file ParticleTable.h.

References ParticleTable::instance(), and ParticleTable::set().

17  {
18  ParticleTable::instance()->set(nullptr);
19  }
static ParticleTable *const instance()
Definition: ParticleTable.h:30
void set(const HepPDT::ParticleDataTable *pdt)
Definition: ParticleTable.h:38