thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::PID Class Reference

PID is a helper class implementing the type of PDG particle ids. More...

#include <PID.h>

Public Member Functions

template<typename T >
 PID (T t)
 Generic construction is disallowed.
 
template<typename T >
 operator T () const
 Casting to generic types is disallowed.
 
PID operator- () const
 The negation operator.
 
template<>
 PID (long t)
 Specialized constructor for 'long'.
 
template<>
 PID (int t)
 Specialized constructor for 'int'.
 
template<>
 PID (ParticleID::ParticleCodes t)
 Specialized constructor for Particle Code enum.
 

Private Attributes

long id
 The particle id.
 

Detailed Description

PID is a helper class implementing the type of PDG particle ids.

At the moment it just converts to a long, and other conversions are intercepted.

See also
ParticleData

Definition at line 23 of file PID.h.

Constructor & Destructor Documentation

◆ PID() [1/4]

template<typename T >
ThePEG::PID::PID ( t)
inline

Generic construction is disallowed.

Definition at line 29 of file PID.h.

◆ PID() [2/4]

template<>
ThePEG::PID::PID ( long  t)
inline

Specialized constructor for 'long'.

Definition at line 56 of file PID.h.

◆ PID() [3/4]

template<>
ThePEG::PID::PID ( int  t)
inline

Specialized constructor for 'int'.

Definition at line 59 of file PID.h.

◆ PID() [4/4]

template<>
ThePEG::PID::PID ( ParticleID::ParticleCodes  t)
inline

Specialized constructor for Particle Code enum.

Definition at line 62 of file PID.h.

Member Function Documentation

◆ operator T()

template<typename T >
ThePEG::PID::operator T ( ) const
inline

Casting to generic types is disallowed.

Definition at line 37 of file PID.h.

◆ operator-()

PID ThePEG::PID::operator- ( ) const
inline

The negation operator.

Definition at line 70 of file PID.h.

References id.

Member Data Documentation

◆ id

long ThePEG::PID::id
private

The particle id.

Definition at line 52 of file PID.h.

Referenced by operator-().


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