Belle II Software release-09-00-00
FittedTracksStorerModule.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 <tracking/dataobjects/RecoTrack.h>
12#include <mdst/dataobjects/MCParticle.h>
13#include <mdst/dataobjects/Track.h>
14
15#include <optional>
16#include <string>
17
18namespace Belle2 {
25
29
30 public:
33
35 void initialize() override;
36
38 void event() override;
39
40 private:
42 std::string m_param_inputRecoTracksStoreArrayName = "PrefitRecoTracks";
44 std::string m_param_outputRecoTracksStoreArrayName = "RecoTracks";
46 std::optional<double> m_param_minimalWeight = std::nullopt;
47
52 };
54}
55
A module to copy only the fitted reco tracks to the output store array.
StoreArray< RecoTrack > m_inputRecoTracks
Input RecoTracks StoreArray.
StoreArray< RecoTrack > m_outputRecoTracks
Output RecoTracks StoreArray.
std::string m_param_outputRecoTracksStoreArrayName
StoreArray name of the output reco tracks.
void initialize() override
Initialize the store arrays.
void event() override
Do the copying.
std::optional< double > m_param_minimalWeight
Minimal weight for copying the hits.
std::string m_param_inputRecoTracksStoreArrayName
StoreArray name of the input reco tracks.
StoreArray< Track > m_Tracks
Tracks StoreArray.
StoreArray< MCParticle > m_MCParticles
MCParticles StoreArray.
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.