Belle II Software development
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
22namespace Belle2 {
31 class FlipQualityModule : public Module {
32 public:
33
38
42 virtual void initialize() override;
43
47 virtual void beginRun() override;
48
52 virtual void event() override;
53
54 private:
55
56 std::string m_identifier;
58 std::unique_ptr<MVAExpert> m_mvaExpert;
60 std::unique_ptr<FlipRecoTrackExtractor> m_recoTrackExtractor;
61 std::unique_ptr<FlipRecoTrackExtractor2nd> m_recoTrackExtractor2nd;
62 std::vector<Named<float*>> m_variableSet;
64 std::string m_recoTracksStoreArrayName = "RecoTracks";
66 };
67
69} // Belle2 namespace
70
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
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
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.