Belle II Software  release-08-01-10
FlipQualityModule.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 #include <tracking/trackFindingVXD/mva/MVAExpert.h>
11 
12 #include <framework/core/Module.h>
13 #include <tracking/trackFitting/trackQualityEstimator/variableExtractors/FlipRecoTrackExtractor.h>
14 #include <tracking/trackFitting/trackQualityEstimator/variableExtractors/Flip2ndRecoTrackExtractor.h>
15 
16 #include <framework/datastore/StoreArray.h>
17 #include <tracking/dataobjects/RecoTrack.h>
18 #include <vector>
19 #include <string>
20 #include <memory>
21 
22 namespace Belle2 {
34  class FlipQualityModule : public Module {
35  public:
36 
41 
45  virtual void initialize() override;
46 
50  virtual void beginRun() override;
51 
55  virtual void event() override;
56 
57  private:
58 
59  std::string m_identifier;
60  int m_flipMVAIndex = 1;
61  std::unique_ptr<MVAExpert> m_mvaExpert;
63  std::unique_ptr<FlipRecoTrackExtractor> m_recoTrackExtractor;
64  std::unique_ptr<FlipRecoTrackExtractor2nd> m_recoTrackExtractor2nd;
65  std::vector<Named<float*>> m_variableSet;
67  std::string m_recoTracksStoreArrayName = "RecoTracks";
69  };
70 
72 } // Belle2 namespace
73 
This module can be used for applying the MVA filters and get the 2 flipping QIs.
std::unique_ptr< MVAExpert > m_mvaExpert
Pointer to the current MVA Expert
std::vector< Named< float * > > m_variableSet
the variable set for the MVA
std::unique_ptr< FlipRecoTrackExtractor > m_recoTrackExtractor
the dataExtractor for the 1st MVA
StoreArray< RecoTrack > m_recoTracks
Store Array of the recoTracks.
std::string m_recoTracksStoreArrayName
the recoTracks StoreArray Name
int m_flipMVAIndex
index of the QI (must be 1 or 2)
std::unique_ptr< FlipRecoTrackExtractor2nd > m_recoTrackExtractor2nd
the dataExtractor for the 2nd MVA
std::string m_identifier
database identifier or filename of the weightfile
Base class for Modules.
Definition: Module.h:72
virtual void initialize() override
Initialize the module.
virtual void event() override
Called for each event.
virtual void beginRun() override
Called at the beginning of a new run.
Abstract base class for different kinds of events.