Belle II Software development
TrackQualityEstimatorMVAModule.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 <tracking/trackFitting/trackQualityEstimator/variableExtractors/EventInfoExtractor.h>
13#include <tracking/trackFitting/trackQualityEstimator/variableExtractors/RecoTrackExtractor.h>
14#include <tracking/trackFitting/trackQualityEstimator/variableExtractors/SubRecoTrackExtractor.h>
15#include <tracking/trackFitting/trackQualityEstimator/variableExtractors/HitInfoExtractor.h>
16
17#include <framework/core/Module.h>
18#include <framework/datastore/StoreArray.h>
19#include <tracking/dataobjects/RecoTrack.h>
20
21namespace Belle2 {
33
34 public:
35
38
40 void initialize() override;
41
43 void beginRun() override;
44
46 void event() override;
47
48
49 private:
51 std::string m_recoTracksStoreArrayName = "RecoTracks";
53 std::string m_svdcdcRecoTracksStoreArrayName = "SVDCDCRecoTracks";
55 std::string m_cdcRecoTracksStoreArrayName = "CDCRecoTracks";
57 std::string m_svdRecoTracksStoreArrayName = "SVDRecoTracks";
59 std::string m_pxdRecoTracksStoreArrayName = "PXDRecoTracks";
61 std::string m_tracksStoreArrayName = "Tracks";
62
64 std::string m_weightFileIdentifier = "trackfitting_MVATrackQualityIndicator";
65
68
71
73 std::unique_ptr<MVAExpert> m_mvaExpert;
74
76 std::unique_ptr<EventInfoExtractor> m_eventInfoExtractor;
78 std::unique_ptr<RecoTrackExtractor> m_recoTrackExtractor;
80 std::unique_ptr<SubRecoTrackExtractor> m_subRecoTrackExtractor;
82 std::unique_ptr<HitInfoExtractor> m_hitInfoExtractor;
83
85 std::vector<Named<float*>> m_variableSet;
86 };
88}
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Quality estimation module for SpacePointTrackCandidates using multivariate analysis (MVA).
std::unique_ptr< HitInfoExtractor > m_hitInfoExtractor
pointer to object that extracts info from the hits within the RecoTrack
std::unique_ptr< EventInfoExtractor > m_eventInfoExtractor
pointer to object that extracts info from the whole event
void initialize() override
Initializes the Module.
void event() override
Applies the selected quality estimation method for a given set of TCs.
std::string m_svdRecoTracksStoreArrayName
Name of the SVD StoreArray.
std::string m_tracksStoreArrayName
Name of the StoreArray with mdst Tracks from track fit.
std::string m_svdcdcRecoTracksStoreArrayName
Name of the SVD-CDC StoreArray.
bool m_collectEventFeatures
Parameter to enable event-wise features.
std::string m_pxdRecoTracksStoreArrayName
Name of the PXD StoreArray.
std::unique_ptr< MVAExpert > m_mvaExpert
pointer to the object to interact with the MVA package
std::string m_weightFileIdentifier
identifier of weightfile in Database or local root/xml file
void beginRun() override
Launches mvaExpert and sets the magnetic field strength.
std::vector< Named< float * > > m_variableSet
set of named variables to be used in MVA
std::string m_cdcRecoTracksStoreArrayName
Name of the CDC StoreArray.
StoreArray< RecoTrack > m_recoTracks
Store Array of the recoTracks.
std::unique_ptr< RecoTrackExtractor > m_recoTrackExtractor
pointer to object that extracts info from the root RecoTrack
std::string m_recoTracksStoreArrayName
Name of the recoTrack StoreArray.
std::unique_ptr< SubRecoTrackExtractor > m_subRecoTrackExtractor
pointer to object that extracts info from the related sub RecoTracks
Abstract base class for different kinds of events.