Belle II Software development
SPTCvirtualIPRemoverModule.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
9#pragma once
10
11#include <tracking/spacePointCreation/SpacePointTrackCand.h>
12#include <framework/datastore/StoreArray.h>
13
14#include <framework/core/Module.h>
15#include <string>
16
17namespace Belle2 {
25
26 public:
27
28
33
34
37 void initialize() override
38 {
41 }
42
43
47 void beginRun() override
48 {
50 }
51
52
54 void event() override;
55
56
58 void endRun() override;
59
60
63 {
65 m_nTCsTotal = 0;
66 m_nVIPsTotal = 0;
68 }
69
70
71 protected:
72
73 // module parameters
74
75
77 std::string m_PARAMtcArrayName;
78
81
86
87
88 // member variables
89
90
92 unsigned int m_eventCounter;
93
95 unsigned int m_nTCsTotal;
96
98 unsigned int m_nVIPsTotal;
99
101 unsigned int m_nVIPsRemoved;
102
105
106 private:
107 };
109}
Base class for Modules.
Definition: Module.h:72
A module for checking and removing the virtual IP if wanted.
unsigned int m_nVIPsRemoved
total number of TCs removed from TCs.
unsigned int m_eventCounter
knows current event number.
SPTCvirtualIPRemoverModule()
Constructor of the module.
void initialize() override
Initializes the Module.
void event() override
Applies the circleFit at given sets of TCs.
void InitializeCounters()
initialize variables to avoid nondeterministic behavior
void endRun() override
Prints a footer for each run which ended.
bool m_PARAMdoCheckOnly
if true, no vIP is removed, but only nVIPs are counted.
void beginRun() override
Prints a header for each new run.
unsigned int m_PARAMmaxTCLengthForVIPKeeping
If you want to keep the vIP only for short TCs, then set this value to the number of hits a TC is max...
std::string m_PARAMtcArrayName
sets the name of expected StoreArray with SpacePointTrackCand in it.
unsigned int m_nVIPsTotal
total number virtualIPs found.
unsigned int m_nTCsTotal
total number of TCs found in SpacePointTrackCand-container.
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.