Belle II Software  release-08-02-06
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 
19 namespace Belle2 {
31 
32  public:
33 
38 
39 
41  void initialize() override;
42 
43 
45  void event() override;
46 
48  void terminate() override;
49  private: //Parameters
50 
60  std::vector<double> m_param_CutOffs{128024, 95, 173, 424, 90, 424};
70 
75  int m_noMatchCount = 0;
77  int m_trackCount = 0;
83  int m_event = 0;
85  std::string m_MCRecoTracksArrayName = "MCRecoTracks";
87  std::string m_PRRecoTracksArrayName = "RecoTracks";
88  };
90 }
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
Abstract base class for different kinds of events.