eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
Go to the documentation of this file.
10 #ifndef INCLUDE_EICSMEAR_ERHIC_PID_H_
11 #define INCLUDE_EICSMEAR_ERHIC_PID_H_
53 TParticlePDG*
Info()
const;
59 operator Int_t()
const;
103 inline Pid::operator Int_t()
const {
return mCode; }
123 #endif // INCLUDE_EICSMEAR_ERHIC_PID_H_
bool operator==(Int_t i) const
Comparison operator with integer.
void Set(Int_t pdg)
Sets the integer PDG code.
TParticlePDG * Info() const
Returns the particle information object corresponding to this PDG code.
bool operator>=(Int_t i) const
Comparison operator with integer.
Pid(Int_t pdg=Pid::InvalidCode())
Constructor.
Int_t mCode
The integer PDG code.
bool operator<(Int_t i) const
Comparison operator with integer.
Int_t Code() const
Returns the PDG code, an integer.
bool operator!=(Int_t i) const
Comparison operator with integer.
bool operator>(Int_t i) const
Comparison operator with integer.
bool operator<=(Int_t i) const
Comparison operator with integer.
static Int_t InvalidCode()
Returns a code indicating 'not valid'.
virtual ~Pid()
Destructor.