next up previous contents index
Next: Test if particles are Up: ``Track'' attributes. Previous: Stability code   Contents   Index


Test a particle's name

XPEQU (I,'part-name')
= .TRUE. if track I is a particle with the name `part-name'.
XPEQOR (I,'part-name')

= .TRUE. if track I is a particle with the name `part-name' or if it is the corresponding antiparticle.

XPEQAN (I,'part-name',IANTI)

= .TRUE. if track I is a particle with the name `part-name' and if IANTI = 0. = .TRUE. if track I is the antiparticle corresponding to `part-name' and if IANTI is not equal to 0.

Important remark : These functions MUST be called with 'part-name' being a member of the official list of ALPHA particle names given in Appendix E. They are CASE-SENSITIVE and do not work if you supply the wrong particle name .

The same functions exist for integer particle codes IPC = KPART ('part-name') instead of the particle names (see 7.4.3):


        XCEQU (I, IPC)
        XCEQOR (I, IPC)
        XCEQAN (I, IPC, IANTI)



Joel Closier
2000-02-07