thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
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.


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