rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
General PID-based classifier functions

Functions

bool Rivet::PID::isCharged (int pid)
 Determine if the particle is electrically charged.
 
bool Rivet::PID::isNeutral (int pid)
 Determine if the particle is electrically neutral.
 

Detailed Description

Function Documentation

◆ isCharged()

bool Rivet::PID::isCharged ( int  pid)
inline

Determine if the particle is electrically charged.

Todo:
What if PID = 0? Applies to everything... should we throw an exception?

References Rivet::PID::charge3(), and Rivet::pid().

Referenced by Rivet::PID::isEMInteracting(), and Rivet::PID::isNeutral().