Belle II Software  release-08-01-10
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 
17 namespace Belle2 {
23  class MCParticle;
24 
37 
38  public:
39 
45 
48 
50  virtual void event() override;
51 
52  protected:
53 
58  void printTree(const MCParticle& mc, int level = 0);
59 
60  std::string m_particleList;
61  std::vector<bool> m_seen;
63  int m_maxLevel;
64  };
65 
67 } // end namespace Belle2
68 
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.