Belle II Software  release-05-02-19
QualityEstimatorVXDModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - 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 #pragma once
12 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
13 #include <tracking/trackFindingVXD/trackQualityEstimators/QualityEstimatorBase.h>
14 
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/core/Module.h>
17 
18 #include <memory>
19 #include <string>
20 
21 namespace Belle2 {
35  class QualityEstimatorVXDModule : public Module {
36 
37  public:
38 
41 
43  void initialize() override;
44 
45  void beginRun() override;
46 
48  void event() override;
49 
50 
51  protected:
52 
53  // module parameters
54 
62  std::string m_EstimationMethod;
63 
66 
68  std::string m_MCRecoTracksStoreArrayName;
71 
72  // member variables
73 
76 
78  std::unique_ptr<QualityEstimatorBase> m_estimator;
79 
80  };
82 }
Belle2::QualityEstimatorVXDModule::m_EstimationMethod
std::string m_EstimationMethod
Identifier which estimation method to use.
Definition: QualityEstimatorVXDModule.h:70
Belle2::QualityEstimatorVXDModule::beginRun
void beginRun() override
Called when entering a new run.
Definition: QualityEstimatorVXDModule.cc:65
Belle2::QualityEstimatorVXDModule::m_SpacePointTrackCandsStoreArrayName
std::string m_SpacePointTrackCandsStoreArrayName
sets the name of the expected StoreArray containing SpacePointTrackCands
Definition: QualityEstimatorVXDModule.h:73
Belle2::QualityEstimatorVXDModule::m_MCRecoTracksStoreArrayName
std::string m_MCRecoTracksStoreArrayName
sets the name of the expected StoreArray containing MCRecoTracks.
Definition: QualityEstimatorVXDModule.h:76
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::QualityEstimatorVXDModule::m_estimator
std::unique_ptr< QualityEstimatorBase > m_estimator
pointer to the selected QualityEstimator
Definition: QualityEstimatorVXDModule.h:86
Belle2::QualityEstimatorVXDModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event
Definition: QualityEstimatorVXDModule.h:83
Belle2::QualityEstimatorVXDModule::initialize
void initialize() override
Initializes the Module.
Definition: QualityEstimatorVXDModule.cc:46
Belle2::QualityEstimatorVXDModule::event
void event() override
Applies the selected quality estimation method for a given set of TCs.
Definition: QualityEstimatorVXDModule.cc:88
Belle2::StoreArray< SpacePointTrackCand >
Belle2::QualityEstimatorVXDModule::m_MCStrictQualityEstimator
bool m_MCStrictQualityEstimator
Only required for MCInfo method.
Definition: QualityEstimatorVXDModule.h:78
Belle2::QualityEstimatorVXDModule::QualityEstimatorVXDModule
QualityEstimatorVXDModule()
Constructor of the module.
Definition: QualityEstimatorVXDModule.cc:26