Belle II Software  release-05-01-25
PruneGenfitTracksModule.cc
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 
11 #include <tracking/modules/pruneGenfitTracks/PruneGenfitTracksModule.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <genfit/Track.h>
14 
15 using namespace Belle2;
16 
17 REG_MODULE(PruneGenfitTracks);
18 
20  Module()
21 {
22  setDescription("Prunes genfit tracks");
24 
25  addParam("pruneFlags", m_pruneFlags,
26  "Pruning options passed on to genfit. See genfit::Track class for a detailed description",
27  std::string("FL"));
28 
29  addParam("storeArrayName", m_storeArrayName,
30  "Name of the StoreArray which is pruned",
31  std::string("GF2Tracks"));
32 
33 }
34 
36 {
38  for (auto& t : tracks) {
39  t.prune(m_pruneFlags.c_str());
40  }
41 }
42 
Belle2::PruneGenfitTracksModule::m_storeArrayName
std::string m_storeArrayName
name of the StoreArray to prune
Definition: PruneGenfitTracksModule.h:54
Belle2::PruneGenfitTracksModule::PruneGenfitTracksModule
PruneGenfitTracksModule()
Constructor of the module. Setting up parameters and description.
Definition: PruneGenfitTracksModule.cc:19
Belle2::Module::setDescription
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:216
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:652
Belle2::Module::c_ParallelProcessingCertified
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Definition: Module.h:82
Belle2::PruneGenfitTracksModule::m_pruneFlags
std::string m_pruneFlags
flags used for pruning, See genfit::Track class for possible settings
Definition: PruneGenfitTracksModule.h:51
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::Module::setPropertyFlags
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition: Module.cc:210
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PruneGenfitTracksModule::event
void event() override
Event processing, prunes the genfit tracks contained in each event.
Definition: PruneGenfitTracksModule.cc:35
Belle2::Module::addParam
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition: Module.h:562
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33