Belle II Software development
ResultStorer.dcl.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 <tracking/trackFindingCDC/findlets/base/Findlet.h>
11#include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
12#include <framework/datastore/StoreArray.h>
13
14#include <string>
15#include <vector>
16
17namespace Belle2 {
22 class ModuleParamList;
23
27 template <class AResult>
28 class ResultStorer : public TrackFindingCDC::Findlet<AResult> {
31
32 public:
34 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
35
37 void initialize() override;
38
40 void apply(std::vector<AResult>& results) override;
41
42 private:
43 // Parameters
47 TrackFindingCDC::EForwardBackward m_param_writeOutDirection = TrackFindingCDC::EForwardBackward::c_Unknown;
51 std::string m_param_outputRecoTrackStoreArrayName = "CKFRecoTracks";
54
55 // Store Arrays
58 };
60}
The Module parameter list class.
This findlet does also handle the storing of the results.
StoreArray< RecoTrack > m_outputRecoTracks
Output Reco Tracks Store Array.
bool m_param_exportTracks
Export the tracks or not.
std::string m_param_outputRelationRecoTrackStoreArrayName
StoreArray name of the tracks, the output reco tracks should be related to.
TrackFindingCDC::EForwardBackward m_param_writeOutDirection
Direction parameter converted from the string parameters.
std::string m_param_writeOutDirectionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
std::string m_param_outputRecoTrackStoreArrayName
StoreArray name of the output Track Store Array.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
void initialize() override
Create the store arrays.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
void apply(std::vector< AResult > &results) override
Load in the reco tracks and the hits.
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
Abstract base class for different kinds of events.