Belle II Software development
SPTCmomentumSeedRetrieverModule.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/trackFindingVXD/trackQualityEstimators/QualityEstimatorRiemannHelixFit.h>
12#include <tracking/spacePointCreation/SpacePointTrackCand.h>
13
14#include <framework/datastore/StoreArray.h>
15#include <framework/core/Module.h>
16
17#include <string>
18
19
20namespace Belle2 {
28
29 public:
30
35
36
39 void initialize() override
40 {
43 }
44
45
49 void beginRun() override;
50
51
53 void event() override;
54
55
57 void endRun() override;
58
59
62 {
64 m_nTCsTotal = 0;
65 }
66
67
70
71 protected:
72
73 // module parameters
74
76 std::string m_PARAMtcArrayName;
77
78 // member variables
79
81 double m_bFieldZ = 0.;
82
84 unsigned int m_eventCounter = 0;
85
87 unsigned int m_nTCsTotal = 0;
88
91
94
95 private:
96 };
98}
Base class for Modules.
Definition: Module.h:72
A module for creating momentum seeds for spacepoint track candidates.
QualityEstimatorRiemannHelixFit m_estimator
the QualityEstimator used to determine momentum seed.
unsigned int m_eventCounter
knows current event number.
void initialize() override
Initializes the Module.
bool createSPTCmomentumSeed(SpacePointTrackCand &aTC)
Generates momentum seed at the position of innermost hit of given TC.
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.
void beginRun() override
Prints a header for each new run.
double m_bFieldZ
Bz component of the magnetic field, will be updated runwise.
std::string m_PARAMtcArrayName
sets the name of expected StoreArray with SpacePointTrackCand in it.
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.
Storage for (VXD) SpacePoint-based track candidates.
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.