Belle II Software  release-05-01-25
BestVXDTrackCandidatesSelectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jonas Wagner *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/core/Module.h>
15 #include <framework/datastore/SelectSubset.h>
16 
17 
18 
19 namespace Belle2 {
36  class BestVXDTrackCandidatesSelectorModule : public Module {
37  public:
40 
42  void initialize() override final;
43 
45  void event() override final;
46 
47  protected:
48 
50  void deactivateCandidates();
51 
53  void selectSubset();
54 
56  std::vector<int> getSortedTrackCandIndices(bool increasing);
57 
58  // parameters
59 
61  unsigned short m_subsetSize;
62 
64  std::string m_nameSpacePointTrackCands;
65 
70 
73 
74 
75  // member variables
76 
79 
82 
85  };
87 }
Belle2::SelectSubset
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:203
Belle2::BestVXDTrackCandidatesSelectorModule::deactivateCandidates
void deactivateCandidates()
Don't copy/delete candidates but rather deactivate them by setting a SpacePointTrackCandidate flag.
Definition: BestVXDTrackCandidatesSelectorModule.cc:54
Belle2::BestVXDTrackCandidatesSelectorModule::initialize
void initialize() override final
Requires SpacePointTrackCands.
Definition: BestVXDTrackCandidatesSelectorModule.cc:35
Belle2::BestVXDTrackCandidatesSelectorModule::m_newSpacePointTrackCands
StoreArray< SpacePointTrackCand > m_newSpacePointTrackCands
StoreArray for optional output SpacePointTrackCands.
Definition: BestVXDTrackCandidatesSelectorModule.h:89
Belle2::BestVXDTrackCandidatesSelectorModule::m_newNameSpacePointTrackCands
std::string m_newNameSpacePointTrackCands
Name of optional output StoreArray containing SpacePointTrackCands.
Definition: BestVXDTrackCandidatesSelectorModule.h:80
Belle2::BestVXDTrackCandidatesSelectorModule::getSortedTrackCandIndices
std::vector< int > getSortedTrackCandIndices(bool increasing)
Return StoreArrayIndices of all candidates sorted by their qualityIndicator.
Definition: BestVXDTrackCandidatesSelectorModule.cc:90
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BestVXDTrackCandidatesSelectorModule::m_subsetSize
unsigned short m_subsetSize
target size of subset
Definition: BestVXDTrackCandidatesSelectorModule.h:69
Belle2::BestVXDTrackCandidatesSelectorModule::m_subsetCreation
bool m_subsetCreation
If True copy selected SpacePointTrackCands to new StoreArray, If False deactivate remaining SpacePoin...
Definition: BestVXDTrackCandidatesSelectorModule.h:77
Belle2::BestVXDTrackCandidatesSelectorModule::m_nameSpacePointTrackCands
std::string m_nameSpacePointTrackCands
Name of input StoreArray containing SpacePointTrackCands.
Definition: BestVXDTrackCandidatesSelectorModule.h:72
Belle2::BestVXDTrackCandidatesSelectorModule::event
void event() override final
Application of the cut.
Definition: BestVXDTrackCandidatesSelectorModule.cc:48
Belle2::BestVXDTrackCandidatesSelectorModule::BestVXDTrackCandidatesSelectorModule
BestVXDTrackCandidatesSelectorModule()
Constructor of the module.
Definition: BestVXDTrackCandidatesSelectorModule.cc:20
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::BestVXDTrackCandidatesSelectorModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
StoreArray for input SpacePointTrackCands.
Definition: BestVXDTrackCandidatesSelectorModule.h:86
Belle2::BestVXDTrackCandidatesSelectorModule::selectSubset
void selectSubset()
Copy or delete candidates to achieve a subset creation.
Definition: BestVXDTrackCandidatesSelectorModule.cc:71
Belle2::BestVXDTrackCandidatesSelectorModule::m_bestCandidates
SelectSubset< SpacePointTrackCand > m_bestCandidates
SubsetSelector operating on a custom selection criteria.
Definition: BestVXDTrackCandidatesSelectorModule.h:92
Belle2::SpacePointTrackCand
Storage for (VXD) SpacePoint-based track candidates.
Definition: SpacePointTrackCand.h:51