32 "------------------------------------------------------------------------"
33 "-----------------------");
36 "------------------------------------------------------------------------"
37 "-----------------------");
39 " uniqueID | pdgId | pt | eta | phi | e "
40 "| status | decayVtxID");
42 "------------------------------------------------------------------------"
43 "-----------------------");
52 std::ostringstream
ss;
56 ss << particle->pdgId() <<
" | ";
59 ss.setf(std::ios::scientific, std::ios::floatfield);
60 ss.setf(std::ios_base::showpos);
61 ss << particle->pt() <<
" | ";
64 ss << particle->eta() <<
" | ";
67 ss << particle->phi() <<
" | ";
70 ss << particle->e() <<
" | ";
71 ss.setf(std::ios::fmtflags(0), std::ios::floatfield);
72 ss.unsetf(std::ios_base::showpos);
74 ss << particle->status() <<
" | ";
75 if (particle->hasDecayVtx() &&
89 "------------------------------------------------------------------------"
90 "-----------------------");
93 return StatusCode::SUCCESS;
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_key
The key of the truth particle container to print.
virtual StatusCode initialize() override
Function initialising the algorithm.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.