Belle II Software prerelease-10-00-00a
PairGenModule.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#include <mdst/dataobjects/MCParticleGraph.h>
13#include <generators/utilities/InitialParticleGeneration.h>
14
15namespace Belle2 {
20
28 class PairGenModule : public Module {
29 public:
35
37 virtual ~PairGenModule() {}
38
40 void initialize() override;
41
43 void event() override;
44
45 protected:
46 int m_PDG;
47
53 //TODO other parameters to make the module more useful
54
57 };
58
60} // end namespace Belle2
Class to build, validate and sort a particle decay chain.
Module()
Constructor.
Definition Module.cc:30
MCParticleGraph m_particleGraph
Particle graph to generate MCParticle list.
PairGenModule()
Constructor.
int m_PDG
Particles PDG code.
void initialize() override
Initializes the module.
void event() override
Method is called for each event.
virtual ~PairGenModule()
Destructor.
InitialParticleGeneration m_initialParticleGeneration
Particle generator to generate initial beam energy, vertex and time.
bool m_saveBoth
Store both particles.
Abstract base class for different kinds of events.