Belle II Software release-09-00-00
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 {
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;
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.
Base class for Modules.
Definition: Module.h:72
The PairGen module.
Definition: PairGenModule.h:28
MCParticleGraph m_particleGraph
Particle graph to generate MCParticle list.
Definition: PairGenModule.h:56
PairGenModule()
Constructor.
int m_PDG
Particles PDG code.
Definition: PairGenModule.h:46
void initialize() override
Initializes the module.
void event() override
Method is called for each event.
virtual ~PairGenModule()
Destructor.
Definition: PairGenModule.h:37
InitialParticleGeneration m_initialParticleGeneration
Particle generator to generate initial beam energy, vertex and time.
Definition: PairGenModule.h:55
bool m_saveBoth
Store both particles.
Definition: PairGenModule.h:52
Abstract base class for different kinds of events.