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