Belle II Software  release-05-02-19
PruneRecoTracksModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Hauth *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/SelectSubset.h>
14 #include <tracking/dataobjects/RecoHitInformation.h>
15 
23 namespace Belle2 {
28 
32  class PruneRecoTracksModule : public Module {
33 
34  public:
37 
38  // Declare required StoreArray
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 
54  }; // end class
56 } // end namespace Belle2
57 
Belle2::SelectSubset
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:203
Belle2::PruneRecoTracksModule::m_subsetOfUnprunedRecoHitInformation
SelectSubset< RecoHitInformation > m_subsetOfUnprunedRecoHitInformation
We use SelectSubset here to delete all pruned RecoHitInformation.
Definition: PruneRecoTracksModule.h:57
Belle2::PruneRecoTracksModule::event
void event() override
Event processing, prunes the RecoTracks contained in each event.
Definition: PruneRecoTracksModule.cc:46
Belle2::PruneRecoTracksModule::m_storeArrayName
std::string m_storeArrayName
Name of the StoreArray to prune.
Definition: PruneRecoTracksModule.h:54
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PruneRecoTracksModule::PruneRecoTracksModule
PruneRecoTracksModule()
Constructor of the module. Setting up parameters and description.
Definition: PruneRecoTracksModule.cc:19
Belle2::PruneRecoTracksModule::initialize
void initialize() override
Initialize the Module.
Definition: PruneRecoTracksModule.cc:34
Belle2::PruneRecoTracksModule::m_do_remove_hits
bool m_do_remove_hits
Remove pruned reco hits or leave this for PruneRecoHitsModule.
Definition: PruneRecoTracksModule.h:60