Belle II Software development
MCV0MatcherModule.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#pragma once
9
10#include <framework/core/Module.h>
11#include <framework/datastore/StoreArray.h>
12#include <mdst/dataobjects/MCParticle.h>
13#include <mdst/dataobjects/V0.h>
14
15namespace Belle2 {
21 class MCV0MatcherModule : public Module {
22 public:
25
28
34 void initialize() override;
35
40 void beginRun() override;
41
47 void event() override;
48
53 void endRun() override;
54
59 void terminate() override;
60 private:
64 std::string m_TrackColName;
65 std::string m_TFRColName;
66 std::string m_V0ColName;
67 std::string m_MCParticleColName;
68
69 };
71}
A module matching the V0s from the mcV0Matcher to MC particles.
std::string m_TFRColName
Belle2::TrackFitResult collection name (input).
void initialize() override
Use this to initialize resources or memory your module needs.
void event() override
Called once for each event.
void endRun() override
Called once when a run ends.
void terminate() override
Clean up anything you created in initialize().
StoreArray< V0 > m_V0s
V0s StoreArray.
std::string m_TrackColName
Belle2::Track collection name (input).
void beginRun() override
Called once before a new run begins.
MCV0MatcherModule()
Constructor, for setting module description and parameters.
std::string m_MCParticleColName
MCParticle collection name (input).
StoreArray< MCParticle > m_MCParticles
MCParticles StoreArray.
std::string m_V0ColName
V0 collection name (input).
~MCV0MatcherModule()
Destructor (empty).
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.