Belle II Software  release-05-02-19
SPTCvirtualIPRemoverModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2011 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
14 #include <framework/datastore/StoreArray.h>
15 
16 #include <framework/core/Module.h>
17 #include <string>
18 
19 namespace Belle2 {
29  class SPTCvirtualIPRemoverModule : public Module {
30 
31  public:
32 
33 
38 
39 
42  void initialize() override
43  {
46  }
47 
48 
52  void beginRun() override
53  {
55  }
56 
57 
59  void event() override;
60 
61 
63  void endRun() override;
64 
65 
67  void InitializeCounters()
68  {
69  m_eventCounter = 0;
70  m_nTCsTotal = 0;
71  m_nVIPsTotal = 0;
72  m_nVIPsRemoved = 0;
73  }
74 
75 
76  protected:
77 
78  // module parameters
79 
80 
82  std::string m_PARAMtcArrayName;
83 
85  bool m_PARAMdoCheckOnly;
86 
91 
92 
93  // member variables
94 
95 
97  unsigned int m_eventCounter;
98 
100  unsigned int m_nTCsTotal;
101 
103  unsigned int m_nVIPsTotal;
104 
106  unsigned int m_nVIPsRemoved;
107 
110 
111  private:
112  };
114 }
Belle2::SPTCvirtualIPRemoverModule::m_PARAMdoCheckOnly
bool m_PARAMdoCheckOnly
if true, no vIP is removed, but only nVIPs are counted.
Definition: SPTCvirtualIPRemoverModule.h:93
Belle2::SPTCvirtualIPRemoverModule::m_nVIPsRemoved
unsigned int m_nVIPsRemoved
total number of TCs removed from TCs.
Definition: SPTCvirtualIPRemoverModule.h:114
Belle2::SPTCvirtualIPRemoverModule::beginRun
void beginRun() override
Prints a header for each new run.
Definition: SPTCvirtualIPRemoverModule.h:60
Belle2::SPTCvirtualIPRemoverModule::initialize
void initialize() override
Initializes the Module.
Definition: SPTCvirtualIPRemoverModule.h:50
Belle2::SPTCvirtualIPRemoverModule::endRun
void endRun() override
Prints a footer for each run which ended.
Definition: SPTCvirtualIPRemoverModule.cc:78
Belle2::SPTCvirtualIPRemoverModule::m_PARAMtcArrayName
std::string m_PARAMtcArrayName
sets the name of expected StoreArray with SpacePointTrackCand in it.
Definition: SPTCvirtualIPRemoverModule.h:90
Belle2::SPTCvirtualIPRemoverModule::SPTCvirtualIPRemoverModule
SPTCvirtualIPRemoverModule()
Constructor of the module.
Definition: SPTCvirtualIPRemoverModule.cc:20
Belle2::SPTCvirtualIPRemoverModule::event
void event() override
Applies the circleFit at given sets of TCs.
Definition: SPTCvirtualIPRemoverModule.cc:38
Belle2::SPTCvirtualIPRemoverModule::InitializeCounters
void InitializeCounters()
initialize variables to avoid nondeterministic behavior
Definition: SPTCvirtualIPRemoverModule.h:75
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SPTCvirtualIPRemoverModule::m_eventCounter
unsigned int m_eventCounter
knows current event number.
Definition: SPTCvirtualIPRemoverModule.h:105
Belle2::SPTCvirtualIPRemoverModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event.
Definition: SPTCvirtualIPRemoverModule.h:117
Belle2::SPTCvirtualIPRemoverModule::m_PARAMmaxTCLengthForVIPKeeping
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...
Definition: SPTCvirtualIPRemoverModule.h:98
Belle2::StoreArray< SpacePointTrackCand >
Belle2::SPTCvirtualIPRemoverModule::m_nTCsTotal
unsigned int m_nTCsTotal
total number of TCs found in SpacePointTrackCand-container.
Definition: SPTCvirtualIPRemoverModule.h:108
Belle2::SPTCvirtualIPRemoverModule::m_nVIPsTotal
unsigned int m_nVIPsTotal
total number virtualIPs found.
Definition: SPTCvirtualIPRemoverModule.h:111