 |
Belle II Software
release-05-02-19
|
11 #include <tracking/modules/pruneRecoTracks/PruneRecoTracksModule.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <tracking/dataobjects/RecoTrack.h>
26 "Name of the StoreArray which is pruned",
30 "Remove hits in the module or leave it for PruneRecoHitsModule"
38 if (recoTracks.isOptional()) {
40 recoHitInformation.isRequired();
49 if (tracks.getEntries() > 0) {
50 for (
auto& t : tracks) {
56 return recoHitInformation->
getFlag() != RecoHitInformation::RecoHitFlag::c_pruned;
void setDescription(const std::string &description)
Sets the description of the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
SelectSubset< RecoHitInformation > m_subsetOfUnprunedRecoHitInformation
We use SelectSubset here to delete all pruned RecoHitInformation.
void event() override
Event processing, prunes the RecoTracks contained in each event.
@ c_DontWriteOut
Object/array should be NOT saved by output modules.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
std::string m_storeArrayName
Name of the StoreArray to prune.
Abstract base class for different kinds of events.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Accessor to arrays stored in the data store.
PruneRecoTracksModule()
Constructor of the module. Setting up parameters and description.
void initialize() override
Initialize the Module.
bool m_do_remove_hits
Remove pruned reco hits or leave this for PruneRecoHitsModule.