Belle II Software development
MCRecoTracksMatcherModule.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#pragma once
9
10#include <framework/core/Module.h>
11#include <framework/gearbox/Const.h>
12#include <framework/datastore/StoreArray.h>
13#include <tracking/dataobjects/RecoTrack.h>
14#include <mdst/dataobjects/MCParticle.h>
15
16
17namespace Belle2 {
176
177 public:
180
182 void initialize() final;
183
185 void event() final;
186
187 private: //Parameters
190
193
196
199
202
205
208
210 bool m_useFittedTracks = true;
211
219
227
237
239 using NDF = int;
240
242 std::map<int, NDF> m_ndf_by_detId = {{Const::PXD, 2}, {Const::SVD, 1}, {Const::CDC, 1}};
243 };
245}
This module compares tracks generated by some pattern recognition algorithm for PXD,...
bool m_useCDCHits
Parameter : Switch whether CDCHits should be used in the matching.
StoreArray< SVDCluster > m_SVDClusters
StoreArray containing SVDClusters.
void initialize() final
Signal the beginning of the event processing.
std::string m_TracksStoreArrayName
Parameter : Name of the Tracks StoreArray.
int NDF
Descriptive type defintion for a number of degrees of freedom.
bool m_mcParticlesPresent
Flag to indicated whether the Monte Carlo track are on the DataStore.
MCRecoTracksMatcherModule()
Constructor setting up the parameter.
StoreArray< RecoTrack > m_PRRecoTracks
StoreArray containing PR RecoTracks.
double m_minimalPurity
Parameter : Minimal purity of a PRTrack to be considered matchable to a MCTrack.
double m_minimalEfficiency
Parameter : Minimal efficiency for a MCTrack to be considered matchable to a PRTrack.
void event() final
Process the event.
bool m_useFittedTracks
Use fitted tracks for matching.
StoreArray< PXDCluster > m_PXDClusters
StoreArray containing PXDClusters.
bool m_usePXDHits
Parameter : Switch whether PXDHits should be used in the matching.
StoreArray< RecoTrack > m_MCRecoTracks
StoreArray containing MC RecoTracks.
std::string m_prRecoTracksStoreArrayName
Parameter : Name of the RecoTracks StoreArray from pattern recognition.
std::map< int, NDF > m_ndf_by_detId
Map storing the standard number degrees of freedom for a single hit by detector *‍/.
bool m_useOnlyAxialCDCHits
Parameter : Switch whether only axial CDCHits should be used.
std::string m_mcRecoTracksStoreArrayName
Parameter : Name of the RecoTracks StoreArray from MC track finding.
StoreArray< MCParticle > m_MCParticles
StoreArray containing MCParticles.
StoreArray< CDCHit > m_CDCHits
StoreArray containing CDCHits.
bool m_useSVDHits
Parameter : Switch whether SVDHits should be used in the matching.
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.