#include <datatypes.h>
Public Types | |
enum | PID { NONE = 0, HADZERO = 0, PHOTON = 1, HADMINUS = 2, HADPLUS = 3, ELEMINUS = 4, ELEPLUS = 5, MUMINUS = 6, MUPLUS = 7 } |
enum | PTYPE { HAD = 0, EM = 1, MU = 2 } |
Public Member Functions | |
bool | charge () const |
bool | charged () const |
bool | chargeOrNull () const |
void | clear () |
int | intCharge () const |
bool | isChargedHadron () const |
bool | isElectron () const |
bool | isMuon () const |
bool | isPhoton () const |
bool | neutral () const |
int | oldId () const |
ParticleID & | operator= (PID val) |
bool | operator== (const ParticleID &other) const |
ParticleID (PID val=NONE) | |
int | pdgId () const |
int | rawId () const |
Static Public Member Functions | |
static ParticleID | mkChHad (bool charge) |
static ParticleID | mkElectron (bool charge) |
static ParticleID | mkMuon (bool charge) |
Public Attributes | |
ap_uint< 3 > | bits |
Definition at line 42 of file datatypes.h.
Enumerator | |
---|---|
NONE | |
HADZERO | |
PHOTON | |
HADMINUS | |
HADPLUS | |
ELEMINUS | |
ELEPLUS | |
MUMINUS | |
MUPLUS |
Definition at line 44 of file datatypes.h.
Enumerator | |
---|---|
HAD | |
EM | |
MU |
Definition at line 55 of file datatypes.h.
|
inline |
Definition at line 73 of file datatypes.h.
References cms::cuda::assert(), bits, and charged().
Referenced by intCharge(), mkChHad(), mkElectron(), and mkMuon().
|
inline |
Definition at line 83 of file datatypes.h.
References bits.
Referenced by charge(), l1ct::PuppiObj::hwDxy(), l1ct::PuppiObj::hwTkQuality(), l1ct::PuppiObj::hwZ0(), intCharge(), neutral(), l1ct::PuppiObj::setHwDxy(), l1ct::PuppiObj::setHwTkQuality(), and l1ct::PuppiObj::setHwZ0().
|
inline |
Definition at line 80 of file datatypes.h.
References bits.
Referenced by l1ct::PFChargedObj::hwVtxPhi().
|
inline |
Definition at line 87 of file datatypes.h.
References bits.
Referenced by l1ct::PFChargedObj::clear(), l1ct::PuppiObj::clear(), and l1ct::PFNeutralObj::clear().
|
inline |
Definition at line 85 of file datatypes.h.
References charge(), and charged().
Referenced by l1ct::PFCommonObj::intCharge(), and l1ct::PuppiObj::intCharge().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 64 of file datatypes.h.
References cms::cuda::assert(), bits, and neutral().
|
inlinestatic |
Definition at line 89 of file datatypes.h.
References charge(), HADMINUS, HADPLUS, and ParticleID().
|
inlinestatic |
Definition at line 90 of file datatypes.h.
References charge(), ELEMINUS, ELEPLUS, and ParticleID().
|
inlinestatic |
Definition at line 91 of file datatypes.h.
References charge(), MUMINUS, MUPLUS, and ParticleID().
|
inline |
Definition at line 84 of file datatypes.h.
References charged().
Referenced by l1ct::PuppiObj::floatPuppiW(), l1ct::PuppiObj::hwEmID(), l1ct::PuppiObj::hwPuppiW(), isPhoton(), l1ct::PuppiObj::setHwEmID(), and l1ct::PuppiObj::setHwPuppiW().
|
inline |
Definition at line 117 of file datatypes.h.
References bits, ELEMINUS, ELEPLUS, HADMINUS, HADPLUS, HADZERO, MUMINUS, MUPLUS, and PHOTON.
Referenced by l1ct::PFCommonObj::oldId(), and l1ct::PuppiObj::oldId().
|
inline |
|
inline |
|
inline |
Definition at line 95 of file datatypes.h.
References bits, ELEMINUS, ELEPLUS, HADMINUS, HADPLUS, HADZERO, MUMINUS, MUPLUS, and PHOTON.
Referenced by Particle.Particle::__str__(), l1ct::PFCommonObj::pdgId(), and l1ct::PuppiObj::pdgId().
|
inline |
Definition at line 63 of file datatypes.h.
References bits.
Referenced by l1ct::PFCommonObj::intId(), and l1ct::PuppiObj::intId().
ap_uint<3> l1ct::ParticleID::bits |
Definition at line 43 of file datatypes.h.
Referenced by charge(), charged(), chargeOrNull(), clear(), l1ct::PuppiObj::initFromBits(), isChargedHadron(), isElectron(), isMuon(), isPhoton(), oldId(), operator=(), operator==(), l1ct::PuppiObj::pack(), l1ct::PFCommonObj::pack_common(), pdgId(), rawId(), and l1ct::PFCommonObj::unpack_common().