Dump out truth information for the current event.
F is the file to which the dump is sent.
SGKEY is the StoreGate key which is used to retrieve the truth information.
The first column in the dump is the particle unique ID number.
This is followed by the particle type, and then by the unique ID numbers
of any decay daughters (up to 3). This is followed by the four-momentum
in two versions: first as pt, eta, phi, m and then as px, py, pz, e.
Definition at line 52 of file truth.py.
52 def dump_truth(f=sys.stdout, sgkey="SpclMC", maxn=None):
53 """Dump out truth information for the current event.
54 F is the file to which the dump is sent.
55 SGKEY is the StoreGate key which is used to retrieve the truth information.
57 The first column in the dump is the particle unique ID number.
58 This is followed by the particle type, and then by the unique ID numbers
59 of any decay daughters (up to 3). This is followed by the four-momentum
60 in two versions: first as pt, eta, phi, m and then as px, py, pz, e.
62 parts = [p
for p
in PyParticleTools.getTruthParticles (sgkey)]