Belle II Software prerelease-10-00-00a
PXDClustersFromTracksModule.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 <framework/core/Module.h>
12#include <framework/datastore/SelectSubset.h>
13
14#include <pxd/dataobjects/PXDCluster.h>
15#include <tracking/dataobjects/RecoTrack.h>
16#include <mdst/dataobjects/Track.h>
17
18namespace Belle2 {
36
37 public:
38
43
46
48 virtual void beginRun() override;
49
51 virtual void event() override;
52
54 virtual void endRun() override;
55
57 virtual void terminate() override;
58
60 virtual void initialize() override;
61
62 private:
63
64 std::string m_pxdClustersName;
65 std::string m_recoTracksName;
66 std::string m_tracksName;
67
69
70 std::string m_outputArrayName;
71
73
74 static bool isRelatedToTrack(const PXDCluster* pxdCluster);
75
76 };
77
78}
Module()
Constructor.
Definition Module.cc:30
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
Definition PXDCluster.h:30
PXDClustersFromTracksModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void initialize() override
init the module
virtual void event() override
processes the event
virtual void endRun() override
end the run
SelectSubset< PXDCluster > m_selectedPXDClusters
all PXD clusters
static bool isRelatedToTrack(const PXDCluster *pxdCluster)
select the PXD clusters related to tracks
virtual void terminate() override
terminates the module
std::string m_pxdClustersName
SVDCLuster store array.
virtual void beginRun() override
initializes the module
std::string m_recoTracksName
reco track store array
bool m_inheritance
if true all relations are inherited
std::string m_outputArrayName
StoreArray with the selected PXD clusters.
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Abstract base class for different kinds of events.