Belle II Software development
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 {
25 class PairGenModule : public Module {
26 public:
32
34 virtual ~PairGenModule() {}
35
37 void initialize() override;
38
40 void event() override;
41
42 protected:
43 int m_PDG;
50 //TODO other parameters to make the module more useful
51
54 };
55
57} // 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:25
MCParticleGraph m_particleGraph
Particle graph to generate MCParticle list.
Definition: PairGenModule.h:53
PairGenModule()
Constructor.
int m_PDG
Particles PDG code.
Definition: PairGenModule.h:43
void initialize() override
Initializes the module.
void event() override
Method is called for each event.
virtual ~PairGenModule()
Destructor.
Definition: PairGenModule.h:34
InitialParticleGeneration m_initialParticleGeneration
Particle generator to generate initial beam energy, vertex and time.
Definition: PairGenModule.h:52
bool m_saveBoth
Store both particles.
Definition: PairGenModule.h:49
Abstract base class for different kinds of events.