Belle II Software  release-05-02-19
SPTC2RTConverterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jonas Wagner *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 
12 #pragma once
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <tracking/dataobjects/RecoTrack.h>
17 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
18 
19 
20 namespace Belle2 {
29  class SPTC2RTConverterModule : public Module {
30  public:
31  SPTC2RTConverterModule();
32 
33  void initialize() override;
34 
35  void event() override;
36 
37  void terminate() override;
38 
39 
40  protected:
41  // store array names
46  std::string m_param_pxdHitsStoreArrayName;
47  std::string m_param_svdHitsStoreArrayName;
49  std::string m_param_pxdClustersName;
52  // store array members
56  // some counters for summary output
57  unsigned int m_SPTCCtr;
58  unsigned int m_RTCtr;
63  void createRecoTrack(const SpacePointTrackCand& spacePointTC);
64 
66  };
68 }
Belle2::SPTC2RTConverterModule::m_param_pxdHitsStoreArrayName
std::string m_param_pxdHitsStoreArrayName
StoreArray name of PXDhits.
Definition: SPTC2RTConverterModule.h:54
Belle2::SPTC2RTConverterModule::event
void event() override
This method is the core of the module.
Definition: SPTC2RTConverterModule.cc:68
Belle2::SPTC2RTConverterModule::m_recoTracks
StoreArray< RecoTrack > m_recoTracks
StoreArray as class member to prevent relinking for every SPTC.
Definition: SPTC2RTConverterModule.h:61
Belle2::SPTC2RTConverterModule::m_RTCtr
unsigned int m_RTCtr
Counter for RecoTracks that were actually created by the module.
Definition: SPTC2RTConverterModule.h:66
Belle2::SPTC2RTConverterModule::m_SPTCCtr
unsigned int m_SPTCCtr
Counter for SpacePointTrackCands presented to the module.
Definition: SPTC2RTConverterModule.h:65
Belle2::SPTC2RTConverterModule::m_param_recoHitInformationStoreArrayName
std::string m_param_recoHitInformationStoreArrayName
StoreArray name of RecoHitInformation.
Definition: SPTC2RTConverterModule.h:53
Belle2::SPTC2RTConverterModule::m_param_recoTracksStoreArrayName
std::string m_param_recoTracksStoreArrayName
Output RecoTracks StoreArray name.
Definition: SPTC2RTConverterModule.h:51
Belle2::SPTC2RTConverterModule::createRecoTrack
void createRecoTrack(const SpacePointTrackCand &spacePointTC)
Creates a RecoTrack corresponding to the given SpacePointTrackCand and appends it to the RecoTracks S...
Definition: SPTC2RTConverterModule.cc:86
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SPTC2RTConverterModule::m_param_spacePointTCsStoreArrayName
std::string m_param_spacePointTCsStoreArrayName
Input SpacePointTrackCands StoreArray name.
Definition: SPTC2RTConverterModule.h:50
Belle2::SPTC2RTConverterModule::m_param_pxdClustersName
std::string m_param_pxdClustersName
StoreArray name of PXDClusters.
Definition: SPTC2RTConverterModule.h:57
Belle2::SPTC2RTConverterModule::m_param_svdClustersName
std::string m_param_svdClustersName
StoreArray name of SVDClusters.
Definition: SPTC2RTConverterModule.h:58
Belle2::SPTC2RTConverterModule::initializeCounters
void initializeCounters()
reset counters to 0 to avoid indeterministic behaviour
Definition: SPTC2RTConverterModule.cc:152
Belle2::SPTC2RTConverterModule::m_param_svdHitsStoreArrayName
std::string m_param_svdHitsStoreArrayName
StoreArray name of SVDhits.
Definition: SPTC2RTConverterModule.h:55
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::SPTC2RTConverterModule::terminate
void terminate() override
This method is called at the end of the event processing.
Definition: SPTC2RTConverterModule.cc:147
Belle2::SPTC2RTConverterModule::initialize
void initialize() override
Initialize the Module.
Definition: SPTC2RTConverterModule.cc:43
Belle2::SPTC2RTConverterModule::m_spacePointTCs
StoreArray< SpacePointTrackCand > m_spacePointTCs
StoreArray as class member to prevent relinking for every event.
Definition: SPTC2RTConverterModule.h:62
Belle2::SpacePointTrackCand
Storage for (VXD) SpacePoint-based track candidates.
Definition: SpacePointTrackCand.h:51