Belle II Software development
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 {
26
27 public:
30
32 void initialize() override;
33
35 void event() override;
36
37 private:
39 std::string m_param_inputRecoTracksStoreArrayName = "PrefitRecoTracks";
41 std::string m_param_outputRecoTracksStoreArrayName = "RecoTracks";
43 std::optional<double> m_param_minimalWeight = std::nullopt;
44
49 };
51}
52
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.