Belle II Software development
CopyRecoTracksWithOverlapModule.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#pragma once
10
11#include <analysis/dataobjects/ParticleList.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/core/Module.h>
15#include <tracking/dataobjects/RecoTrack.h>
16
17namespace Belle2 {
22 class RecoTrack;
23
27
28 public:
29
32
34 virtual void initialize() override;
35
37 virtual void event() override;
38
39 private:
41 void processRecoTrack(const RecoTrack& track);
42
44 std::string m_overlapRecoTracksArrayName{"RecoTracksWithOverlap"};
45
47 std::string m_particleListName{""};
48
51
54
57
58 };
60}
Copy RecoTracks with overlap hits in VXD to a new StoreArray (Will need a refit).
std::string m_particleListName
Name of particle list for which associated RecoTracks should be copied.
virtual void event() override
Copy RecoTracks with overlaps (for particle if specified)
void processRecoTrack(const RecoTrack &track)
Check if RecoTrack has overlap hits -> if yes, copy to a new array.
CopyRecoTracksWithOverlapModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< RecoTrack > m_OverlappingRecoTracks
Overlapping tracks.
StoreObjPtr< ParticleList > m_ParticleList
Particle list.
std::string m_overlapRecoTracksArrayName
Name of StoreArray with output RecoTracks with overlaps.
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
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.