delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
DelphiParticleCode.h
Go to the documentation of this file.
1// DELPHI particle code -> PDG code.
2//
3// Particles created by the detector simulation (DELSIM) carry DELPHI's own
4// particle code (the "mass code" of the simulated track), not a PDG code.
5// The conversion follows the DELPHI convention routine UPCON (deck UPNACO,
6// dstana10.car): PDG = sign(code) * VLUN(|code|), a negative code being the
7// antiparticle. Only the codes DELSIM gives its own secondaries are covered:
8// the GHEISHA table IKPART (delsim36.car) plus the leptons and photons of
9// DELSIM's decays. Nuclei have no PDG code in VLUN and get nuclear PDG codes.
10
11#pragma once
12
14
15// PDG code of a DELPHI particle code; 0 when the code is not covered,
16// including GHEISHA's geantino (17).
17int pdgFromDelphiCode(int delphiCode);
18
19} // namespace delphi_edm4hep::truth
int pdgFromDelphiCode(int delphiCode)