Belle II Software  release-05-01-25
SPTCmomentumSeedRetrieverModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2011 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Felix Metzner *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorRiemannHelixFit.h>
14 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
15 
16 #include <framework/datastore/StoreArray.h>
17 #include <framework/core/Module.h>
18 
19 #include <string>
20 
21 
22 namespace Belle2 {
32  class SPTCmomentumSeedRetrieverModule : public Module {
33 
34  public:
35 
40 
41 
44  void initialize() override
45  {
48  }
49 
50 
54  void beginRun() override;
55 
56 
58  void event() override;
59 
60 
62  void endRun() override;
63 
64 
66  void InitializeCounters()
67  {
68  m_eventCounter = 0;
69  m_nTCsTotal = 0;
70  }
71 
72 
75 
76  protected:
77 
78  // module parameters
79 
81  std::string m_PARAMtcArrayName;
82 
83  // member variables
84 
86  double m_bFieldZ = 0.;
87 
89  unsigned int m_eventCounter = 0;
90 
92  unsigned int m_nTCsTotal = 0;
93 
96 
99 
100  private:
101  };
103 }
Belle2::SPTCmomentumSeedRetrieverModule::beginRun
void beginRun() override
Prints a header for each new run.
Definition: SPTCmomentumSeedRetrieverModule.cc:32
Belle2::SPTCmomentumSeedRetrieverModule::m_nTCsTotal
unsigned int m_nTCsTotal
total number of TCs found in SpacePointTrackCand-container.
Definition: SPTCmomentumSeedRetrieverModule.h:100
Belle2::SPTCmomentumSeedRetrieverModule::m_PARAMtcArrayName
std::string m_PARAMtcArrayName
sets the name of expected StoreArray with SpacePointTrackCand in it.
Definition: SPTCmomentumSeedRetrieverModule.h:89
Belle2::SPTCmomentumSeedRetrieverModule::endRun
void endRun() override
Prints a footer for each run which ended.
Definition: SPTCmomentumSeedRetrieverModule.cc:64
Belle2::SPTCmomentumSeedRetrieverModule::SPTCmomentumSeedRetrieverModule
SPTCmomentumSeedRetrieverModule()
Constructor of the module.
Definition: SPTCmomentumSeedRetrieverModule.cc:21
Belle2::SPTCmomentumSeedRetrieverModule::createSPTCmomentumSeed
bool createSPTCmomentumSeed(SpacePointTrackCand &aTC)
Generates momentum seed at the position of innermost hit of given TC.
Definition: SPTCmomentumSeedRetrieverModule.cc:75
Belle2::SPTCmomentumSeedRetrieverModule::m_eventCounter
unsigned int m_eventCounter
knows current event number.
Definition: SPTCmomentumSeedRetrieverModule.h:97
Belle2::SPTCmomentumSeedRetrieverModule::m_estimator
QualityEstimatorRiemannHelixFit m_estimator
the QualityEstimator used to determine momentum seed.
Definition: SPTCmomentumSeedRetrieverModule.h:106
Belle2::SPTCmomentumSeedRetrieverModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event.
Definition: SPTCmomentumSeedRetrieverModule.h:103
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SPTCmomentumSeedRetrieverModule::initialize
void initialize() override
Initializes the Module.
Definition: SPTCmomentumSeedRetrieverModule.h:52
Belle2::SPTCmomentumSeedRetrieverModule::InitializeCounters
void InitializeCounters()
initialize variables to avoid nondeterministic behavior
Definition: SPTCmomentumSeedRetrieverModule.h:74
Belle2::SPTCmomentumSeedRetrieverModule::event
void event() override
Applies the circleFit at given sets of TCs.
Definition: SPTCmomentumSeedRetrieverModule.cc:46
Belle2::QualityEstimatorRiemannHelixFit
Based on R.
Definition: QualityEstimatorRiemannHelixFit.h:32
Belle2::StoreArray< SpacePointTrackCand >
Belle2::SPTCmomentumSeedRetrieverModule::m_bFieldZ
double m_bFieldZ
Bz component of the magnetic field, will be updated runwise.
Definition: SPTCmomentumSeedRetrieverModule.h:94
Belle2::SpacePointTrackCand
Storage for (VXD) SpacePoint-based track candidates.
Definition: SpacePointTrackCand.h:51