Belle II Software development
MergerCosmicTracksModule.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 <ecl/dataobjects/ECLConnectedRegion.h>
11#include <ecl/dataobjects/ECLShower.h>
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <mdst/dataobjects/KLMCluster.h>
15#include <mdst/dataobjects/Track.h>
16#include <tracking/dataobjects/RecoTrack.h>
17
18namespace Belle2 {
27 public:
30
32 void initialize() override;
33
35 void event() override;
36
39
40 private:
44 std::string m_param_mergedRecoTracksStoreArrayName = "CosmicRecoTracks";
45
48
51
54
57
60
61
65 unsigned int m_minimumNumHitCut = 40;
67 unsigned int m_minimumClusterSize = 0;
70 };
72}
Module use to select two cosmic tracks event and merger these two tracks become one.
void MergingTracks(RecoTrack *, RecoTrack *, StoreArray< RecoTrack > &)
Merge cosmic tracks.
void initialize() override
Register the store arrays and store obj pointers.
unsigned int m_minimumNumHitCut
Number of CDC hit per track required for cosmic track.
void event() override
Do the selection.
StoreArray< ECLConnectedRegion > m_ECLConnectedRegions
ECL connected regions.
double m_magnitudeOfMomentumWithoutMagneticField
Magnitude of cosmic tracks if magnetic field is not used.
std::string m_param_recoTracksStoreArrayName
StoreArray name from which to read the reco tracks.
bool m_usingMagneticField
Flag to using magnetic field during reconstruction.
StoreArray< KLMCluster > m_KLMClusters
KLM clusters.
std::string m_param_mergedRecoTracksStoreArrayName
StoreArray name where the merged reco track is written.
unsigned int m_minimumClusterSize
Minimal PXD cluster size for used PXD hits in cosmic track.
StoreArray< RecoTrack > m_RecoTracks
RecoTracks.
MergerCosmicTracksModule()
Create a new instance of the module.
StoreArray< RecoTrack > m_MergedRecoTracks
Merged RecoTracks.
Base class for Modules.
Definition: Module.h:72
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.