Belle II Software release-09-00-00
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 {
28
29 public:
30
31
36
37
40 void initialize() override
41 {
44 }
45
46
50 void beginRun() override
51 {
53 }
54
55
57 void event() override;
58
59
61 void endRun() override;
62
63
66 {
68 m_nTCsTotal = 0;
69 m_nVIPsTotal = 0;
71 }
72
73
74 protected:
75
76 // module parameters
77
78
80 std::string m_PARAMtcArrayName;
81
84
89
90
91 // member variables
92
93
95 unsigned int m_eventCounter;
96
98 unsigned int m_nTCsTotal;
99
101 unsigned int m_nVIPsTotal;
102
104 unsigned int m_nVIPsRemoved;
105
108
109 private:
110 };
112}
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.