Belle II Software  release-05-02-19
ParticlePrinterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric, Anze Zupanc *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <analysis/DecayDescriptor/DecayDescriptor.h>
15 #include <string>
16 
17 #include <analysis/dataobjects/Particle.h>
18 
19 namespace Belle2 {
31  class ParticlePrinterModule : public Module {
32 
33  public:
34 
39 
44  virtual void initialize() override;
45 
49  virtual void event() override;
50 
51  private:
52 
53  std::string m_listName;
54  bool m_fullPrint;
56  std::vector<std::string> m_variables;
63  void printVariables(const Particle* particle) const;
64  };
65 
67 } // Belle2 namespace
68 
Belle2::ParticlePrinterModule::event
virtual void event() override
Event processor.
Definition: ParticlePrinterModule.cc:75
Belle2::ParticlePrinterModule::printVariables
void printVariables(const Particle *particle) const
Prints out the values of variables specified by the user via the Variables module parameter.
Definition: ParticlePrinterModule.cc:118
Belle2::ParticlePrinterModule::m_decaydescriptor
DecayDescriptor m_decaydescriptor
Decay descriptor of the particle being selected.
Definition: ParticlePrinterModule.h:66
Belle2::ParticlePrinterModule::m_listName
std::string m_listName
particle list name
Definition: ParticlePrinterModule.h:61
Belle2::ParticlePrinterModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ParticlePrinterModule.cc:57
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ParticlePrinterModule::m_fullPrint
bool m_fullPrint
steering variable
Definition: ParticlePrinterModule.h:62
Belle2::Particle
Class to store reconstructed particles.
Definition: Particle.h:77
Belle2::DecayDescriptor
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Definition: DecayDescriptor.h:43
Belle2::ParticlePrinterModule::ParticlePrinterModule
ParticlePrinterModule()
Constructor.
Definition: ParticlePrinterModule.cc:42
Belle2::ParticlePrinterModule::m_variables
std::vector< std::string > m_variables
names of variables to be printed
Definition: ParticlePrinterModule.h:64