Belle II Software  release-08-01-10
PruneRecoTracksModule.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 <framework/datastore/SelectSubset.h>
12 #include <tracking/dataobjects/RecoHitInformation.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <tracking/dataobjects/RecoTrack.h>
15 
23 namespace Belle2 {
29 
32  class PruneRecoTracksModule : public Module {
33 
34  public:
37 
39  void initialize() override;
40 
42  void event() override;
43 
44  private:
46  std::string m_storeArrayName = "RecoTracks";
47 
50 
52  bool m_do_remove_hits{false};
53 
57  }; // end class
59 } // end namespace Belle2
60 
Base class for Modules.
Definition: Module.h:72
Module to prune RecoTracks.
PruneRecoTracksModule()
Constructor of the module. Setting up parameters and description.
void initialize() override
Declare required StoreArray.
void event() override
Event processing, prunes the RecoTracks contained in each event.
bool m_do_remove_hits
Remove pruned reco hits or leave this for PruneRecoHitsModule.
std::string m_storeArrayName
Name of the StoreArray to prune.
StoreArray< RecoHitInformation > m_RecoHitInformations
RecoHitInformations StoreArray.
StoreArray< RecoTrack > m_RecoTracks
RecoTracks StoreArray.
SelectSubset< RecoHitInformation > m_subsetOfUnprunedRecoHitInformation
We use SelectSubset here to delete all pruned RecoHitInformation.
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Abstract base class for different kinds of events.