Belle II Software development
ParticlePrinterModule.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// framework - DataStore
14#include <framework/datastore/StoreObjPtr.h>
15
16#include <analysis/dataobjects/Particle.h>
17#include <analysis/dataobjects/ParticleList.h>
18
19#include <analysis/DecayDescriptor/DecayDescriptor.h>
20#include <string>
21
22namespace Belle2 {
32
33 public:
34
39
44 virtual void initialize() override;
45
49 virtual void event() override;
50
51 private:
52
55 std::string m_listName;
58 std::vector<std::string> m_variables;
65 void printVariables(const Particle* particle) const;
66 };
67
69} // Belle2 namespace
70
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Base class for Modules.
Definition: Module.h:72
prints particle list to screen
std::vector< std::string > m_variables
names of variables to be printed
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
std::string m_listName
particle list name
DecayDescriptor m_decaydescriptor
Decay descriptor of the particle being selected.
StoreObjPtr< ParticleList > m_plist
particle list
void printVariables(const Particle *particle) const
Prints out the values of variables specified by the user via the Variables module parameter.
Class to store reconstructed particles.
Definition: Particle.h:75
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.