Belle II Software  release-08-01-10
SPTC2RTConverterModule.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 
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <tracking/dataobjects/RecoTrack.h>
15 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
16 
17 
18 namespace Belle2 {
27  class SPTC2RTConverterModule : public Module {
28  public:
29 
34 
38  void initialize() override;
39 
43  void event() override;
44 
48  void terminate() override;
49 
50 
51  protected:
52  // store array names
63  // store array members
67  // some counters for summary output
68  unsigned int m_SPTCCtr;
69  unsigned int m_RTCtr;
74  void createRecoTrack(const SpacePointTrackCand& spacePointTC);
75 
76  void initializeCounters();
77  };
79 }
Base class for Modules.
Definition: Module.h:72
Module turning SpacePointsTrackCands to RecoTracks.
StoreArray< SpacePointTrackCand > m_spacePointTCs
StoreArray as class member to prevent relinking for every event.
std::string m_param_pxdHitsStoreArrayName
StoreArray name of PXDhits.
void initialize() override
Initializer.
void event() override
This method is called for each event.
std::string m_param_spacePointTCsStoreArrayName
Input SpacePointTrackCands StoreArray name.
std::string m_param_pxdClustersName
StoreArray name of PXDClusters.
void terminate() override
This method is called at the end of the event processing.
void createRecoTrack(const SpacePointTrackCand &spacePointTC)
Creates a RecoTrack corresponding to the given SpacePointTrackCand and appends it to the RecoTracks S...
std::string m_param_recoTracksStoreArrayName
Output RecoTracks StoreArray name.
std::string m_param_svdHitsStoreArrayName
StoreArray name of SVDhits.
unsigned int m_SPTCCtr
Counter for SpacePointTrackCands presented to the module.
std::string m_param_svdClustersName
StoreArray name of SVDClusters.
StoreArray< RecoTrack > m_recoTracks
StoreArray as class member to prevent relinking for every SPTC.
unsigned int m_RTCtr
Counter for RecoTracks that were actually created by the module.
std::string m_param_recoHitInformationStoreArrayName
StoreArray name of RecoHitInformation.
void initializeCounters()
reset counters to 0 to avoid indeterministic behaviour
Storage for (VXD) SpacePoint-based track candidates.
Abstract base class for different kinds of events.