Belle II Software development
BestVXDTrackCandidatesSelectorModule.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/spacePointCreation/SpacePointTrackCand.h>
11#include <framework/datastore/StoreArray.h>
12#include <framework/core/Module.h>
13#include <framework/datastore/SelectSubset.h>
14
15
16
17namespace Belle2 {
32 public:
35
37 void initialize() override final;
38
40 void event() override final;
41
42 protected:
43
46
48 void selectSubset();
49
51 std::vector<int> getSortedTrackCandIndices(bool increasing);
52
53 // parameters
54
56 unsigned short m_subsetSize;
57
60
65
68
69
70 // member variables
71
74
77
80 };
82}
Module that selects a subset with a fixed size x out of all SpacePointTrackCandidates.
void initialize() override final
Requires SpacePointTrackCands.
std::string m_newNameSpacePointTrackCands
Name of optional output StoreArray containing SpacePointTrackCands.
StoreArray< SpacePointTrackCand > m_newSpacePointTrackCands
StoreArray for optional output SpacePointTrackCands.
std::vector< int > getSortedTrackCandIndices(bool increasing)
Return StoreArrayIndices of all candidates sorted by their qualityIndicator.
void event() override final
Application of the cut.
SelectSubset< SpacePointTrackCand > m_bestCandidates
SubsetSelector operating on a custom selection criteria.
void selectSubset()
Copy or delete candidates to achieve a subset creation.
bool m_subsetCreation
If True copy selected SpacePointTrackCands to new StoreArray, If False deactivate remaining SpacePoin...
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
StoreArray for input SpacePointTrackCands.
void deactivateCandidates()
Don't copy/delete candidates but rather deactivate them by setting a SpacePointTrackCandidate flag.
std::string m_nameSpacePointTrackCands
Name of input StoreArray containing SpacePointTrackCands.
Base class for Modules.
Definition: Module.h:72
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.