PDGToSemantic#

class PDGToSemantic(scheme='motif_5cls', custom_map=None)[source]#

Bases: object

Fallback semantic labels derived from PDG codes.

Use this only when no label file is available. For production training, prefer modalities that include labl labels loaded by the dataset reader.

Schemes:

motif_5cls: shower(0), track(1), michel(2), delta(3), led(4) pid_6cls: photon(0), electron(1), muon(2), pion(3), proton(4), other(5) custom: user-provided {pdg_code: class_index} dict