Belle II Software  release-08-01-10
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 
18 namespace Belle2 {
30  public:
33 
35  void initialize() override;
36 
38  void event() override;
39 
42 
43  private:
47  std::string m_param_mergedRecoTracksStoreArrayName = "CosmicRecoTracks";
48 
51 
54 
57 
60 
63 
64 
66  bool m_usingMagneticField = true;
68  unsigned int m_minimumNumHitCut = 40;
70  unsigned int m_minimumClusterSize = 0;
73  };
75 }
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
Abstract base class for different kinds of events.