#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 45 of file datatypes.h.
Enumerator | |
---|---|
NONE | |
HADZERO | |
PHOTON | |
HADMINUS | |
HADPLUS | |
ELEMINUS | |
ELEPLUS | |
MUMINUS | |
MUPLUS |
Definition at line 47 of file datatypes.h.
Enumerator | |
---|---|
HAD | |
EM | |
MU |
Definition at line 58 of file datatypes.h.
|
inline |
Definition at line 76 of file datatypes.h.
References cms::cuda::assert(), bits, and charged().
Referenced by intCharge(), mkChHad(), mkElectron(), and mkMuon().
|
inline |
Definition at line 86 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 83 of file datatypes.h.
References bits.
Referenced by l1ct::PFChargedObj::hwVtxPhi().
|
inline |
Definition at line 90 of file datatypes.h.
References bits.
Referenced by l1ct::PFChargedObj::clear(), l1ct::PuppiObj::clear(), l1ct::PFNeutralObj::clear(), and BeautifulSoup.Tag::setString().
|
inline |
Definition at line 88 of file datatypes.h.
References charge(), and charged().
Referenced by l1ct::PFCommonObj::intCharge(), and l1ct::PuppiObj::intCharge().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 67 of file datatypes.h.
References cms::cuda::assert(), bits, and neutral().
|
inlinestatic |
Definition at line 92 of file datatypes.h.
References charge(), HADMINUS, HADPLUS, and ParticleID().
|
inlinestatic |
Definition at line 93 of file datatypes.h.
References charge(), ELEMINUS, ELEPLUS, and ParticleID().
|
inlinestatic |
Definition at line 94 of file datatypes.h.
References charge(), MUMINUS, MUPLUS, and ParticleID().
|
inline |
Definition at line 87 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 120 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 98 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 66 of file datatypes.h.
References bits.
Referenced by l1ct::PFCommonObj::intId(), and l1ct::PuppiObj::intId().
ap_uint<3> l1ct::ParticleID::bits |
Definition at line 46 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().