Belle II Software  release-08-01-10
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 
17 namespace Belle2 {
22  class RecoTrack;
23 
26 
30 
31  public:
32 
35 
37  virtual void initialize() override;
38 
40  virtual void event() override;
41 
42  private:
44  void processRecoTrack(const RecoTrack& track);
45 
47  std::string m_overlapRecoTracksArrayName{"RecoTracksWithOverlap"};
48 
50  std::string m_particleListName{""};
51 
54 
57 
60 
61  };
63 }
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
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.