16 if (!truthContainer.
isValid()) {
20 unsigned int truth_vertices{0}, truth_parts{0};
21 for (
auto it : *truthContainer) {
23 for (
const auto& vertex : subEvent->vertices()) {
28 for (
const auto& particle : subEvent->particles()) {
33 auto production_vertex = particle->production_vertex();
35 auto end_vertex = particle->end_vertex();
PrdTesterModule(MuonTesterTree &tree, const std::string &grp_name, MSG::Level msglvl)
VectorBranch< int > & m_Truth_vertexId
VectorBranch< int > & m_Truth_particleStatus
VectorBranch< int > & m_Truth_particleEnd_vertex_id
ScalarBranch< unsigned int > & m_Truth_nVertices
VectorBranch< int > & m_Truth_particleProduction_vertex_id
SG::ReadHandleKey< McEventCollection > m_key
bool declare_keys() override final
VectorBranch< int > & m_Truth_particleBarcode
TruthVariables(MuonTesterTree &tree, const std::string &container_name, MSG::Level msglvl)
PtEtaPhiEBranch m_truthParticleP4
CartesFourVecBranch m_Truth_vertex
ScalarBranch< unsigned int > & m_Truth_nParticles
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
VectorBranch< int > & m_Truth_particlePdg_id
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
TTree * tree() override final
Returns the underlying TTree object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
HepMC3::GenEvent GenEvent