Belle II Software light-2406-ragdoll
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 {
35
36 public:
37
42
47 virtual void initialize() override;
48
52 virtual void event() override;
53
54 private:
55
58 std::string m_listName;
61 std::vector<std::string> m_variables;
68 void printVariables(const Particle* particle) const;
69 };
70
72} // Belle2 namespace
73
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.
Definition: ClusterUtils.h:24