Belle II Software development
Chi2MCTrackMatcherModule.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
10#pragma once
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <framework/datastore/StoreArray.h>
15#include <mdst/dataobjects/Track.h>
16#include <mdst/dataobjects/MCParticle.h>
17#include <framework/datastore/StoreArray.h>
18
19namespace Belle2 {
28
29 public:
30
35
36
38 void initialize() override;
39
40
42 void event() override;
43
45 void terminate() override;
46 private: //Parameters
47
57 std::vector<double> m_param_CutOffs{128024, 95, 173, 424, 90, 424};
67
74 int m_trackCount = 0;
80 int m_event = 0;
82 std::string m_MCRecoTracksArrayName = "MCRecoTracks";
84 std::string m_PRRecoTracksArrayName = "RecoTracks";
85 };
87}
Monte Carlo matcher using the helix parameters for matching by chi2-method.
bool m_param_linalg
Parameter: Possibility to switch beween ROOT and Eigen for inversion of the covariance matrix false: ...
Chi2MCTrackMatcherModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_PRRecoTracksArrayName
Variable: Name of the RecoTracks StoreArray of PR tracks.
int m_noMatchCount
Variable: Counts the number of tracks without a relation.
std::vector< double > m_param_CutOffs
Parameter : Defines the chi2 cut-off values for each charged particle.
void initialize() override
Register input and output data.
void event() override
Do matching for each event.
int m_event
Variable: Counts total event number.
std::string m_MCRecoTracksArrayName
Variable: Name of the RecoTracks StoreArray of MC tracks.
void terminate() override
Provides debug statistics.
int m_noMatchingCandidateCount
Variable: Counts the total number of tracks without a possible MCParticle as matching candidate.
int m_notInvertableCount
Variables for Debug module statistics.
int m_trackCount
Variable: Counts the total number of tracks to calculate a percentage feedback.
int m_covarianceMatrixCount
Variable: Counts the total number of Covaraince5 matrices.
StoreArray< Track > m_Tracks
Variable: Makes m_Tracks available in whole class.
StoreArray< MCParticle > m_MCParticles
Variable: Makes m_MCParticles available in whole class.
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.