Belle II Software development
PrintTauTauMCParticlesModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/core/Module.h>
12
13#include <string>
14#include <vector>
15
16
17namespace Belle2 {
23 class MCParticle;
24
34
35 public:
36
42
45
47 virtual void event() override;
48
49 protected:
50
55 void printTree(const MCParticle& mc, int level = 0);
56
57 std::string m_particleList;
58 std::vector<bool> m_seen;
61 };
62
64} // end namespace Belle2
65
A Class to store the Monte Carlo particle information.
Definition: MCParticle.h:32
Base class for Modules.
Definition: Module.h:72
The PrintTauTauMCParticles module.
virtual void event() override
Method is called for each event.
std::vector< bool > m_seen
Tag the particles which were already visited using their index.
int m_maxLevel
Show only up to specified depth level.
std::string m_particleList
The name of the MCParticle collection.
bool m_onlyPrimaries
Print only primary particles.
void printTree(const MCParticle &mc, int level=0)
Loops recursively over the MCParticle list and prints information about each particle.
Abstract base class for different kinds of events.