9 #include <tracking/modules/pruneRecoTracks/PruneRecoTracksModule.h>
10 #include <framework/datastore/StoreArray.h>
11 #include <tracking/dataobjects/RecoTrack.h>
24 "Name of the StoreArray which is pruned",
28 "Remove hits in the module or leave it for PruneRecoHitsModule"
47 if (tracks.getEntries() > 0) {
48 for (
auto& t : tracks) {
54 return recoHitInformation->
getFlag() != RecoHitInformation::RecoHitFlag::c_pruned;
@ c_DontWriteOut
Object/array should be NOT saved by output modules.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
PruneRecoTracksModule()
Constructor of the module. Setting up parameters and description.
void initialize() override
Initialize the Module.
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.
SelectSubset< RecoHitInformation > m_subsetOfUnprunedRecoHitInformation
We use SelectSubset here to delete all pruned RecoHitInformation.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
bool isOptional(const std::string &name="")
Tell the DataStore about an optional input.
Accessor to arrays stored in the data store.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.