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/trackingUtilities/mva/MVAExpert.h>
11
12#include <framework/core/Module.h>
13#include <tracking/modules/flipAndRefit/utilities/FlipRecoTrackExtractor.h>
14#include <tracking/modules/flipAndRefit/utilities/Flip2ndRecoTrackExtractor.h>
15
16#include <framework/core/Module.h>
17#include <framework/datastore/StoreArray.h>
18
19#include <vector>
20#include <string>
21#include <memory>
22
23namespace Belle2 {
28 class RecoTrack;
29
33 class FlipQualityModule : public Module {
34 public:
35
40
44 virtual void initialize() override;
45
49 virtual void beginRun() override;
50
54 virtual void event() override;
55
56 private:
57
58 std::string m_identifier;
60 std::unique_ptr<TrackingUtilities::MVAExpert> m_mvaExpert;
61
62 std::unique_ptr<FlipRecoTrackExtractor> m_recoTrackExtractor;
63 std::unique_ptr<FlipRecoTrackExtractor2nd> m_recoTrackExtractor2nd;
64 std::vector<TrackingUtilities::Named<float*>> m_variableSet;
65
66 std::string m_recoTracksStoreArrayName = "RecoTracks";
68 };
69
71} // Belle2 namespace
72
virtual void initialize() override
Initialize the module.
virtual void event() override
Called for each event.
std::unique_ptr< TrackingUtilities::MVAExpert > m_mvaExpert
Pointer to the current MVA Expert.
std::vector< TrackingUtilities::Named< float * > > m_variableSet
the variable set for the MVA
virtual void beginRun() override
Called at the beginning of a new run.
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
Module()
Constructor.
Definition Module.cc:30
This is the Reconstruction Event-Data Model Track.
Definition RecoTrack.h:79
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Abstract base class for different kinds of events.