cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
PDG_cfi.py
Go to the documentation of this file.
5
6from Config.Core import Parameters
7
8
11 down = Parameters(pdgid = 1),
12 up = Parameters(pdgid = 2),
13 strange = Parameters(pdgid = 3),
14 charm = Parameters(pdgid = 4),
15 bottom = Parameters(pdgid = 5),
16 top = Parameters(pdgid = 6),
17 electron = Parameters(pdgid = 11),
18 positron = Parameters(pdgid = 11),
19 muon = Parameters(pdgid = 13),
20 tau = Parameters(pdgid = 15),
21 gluon = Parameters(pdgid = 21),
22 photon = Parameters(pdgid = 22),
23 Z = Parameters(pdgid = 23),
24 W = Parameters(pdgid = 24),
25 proton = Parameters(pdgid = 2212),
26 neutron = Parameters(pdgid = 2112),
27)
28
29
37def registerParticle(pdgid: int,
38 name: str,
39 mass: float=0.,
40 width: float=0.,
41 charge: int=0,
42 colour: int=1,
43 fermion: bool=False):
44 globals()['PDG'][name] = Parameters(
45 name = name,
46 description = name,
47 pdgid = pdgid,
48 mass = mass,
49 charge = charge,
50 width = width,
51 colour = colour,
52 fermion = fermion
53 )
54 print('particle with pdg={} defined: {}'.format(pdgid, globals()['PDG'][name]))
A raw list of steering parameters.
registerParticle(int pdgid, str name, float mass=0., float width=0., int charge=0, int colour=1, bool fermion=False)
Define a new particle type into the PDG library.
Definition PDG_cfi.py:43