Belle II Software development
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 {
33
34 public:
35
40
43
45 virtual void beginRun() override;
46
48 virtual void event() override;
49
51 virtual void endRun() override;
52
54 virtual void terminate() override;
55
57 virtual void initialize() override;
58
59 private:
60
61 std::string m_pxdClustersName;
62 std::string m_recoTracksName;
63 std::string m_tracksName;
67 std::string m_outputArrayName;
71 static bool isRelatedToTrack(const PXDCluster* pxdCluster);
73 };
75}
Base class for Modules.
Definition: Module.h:72
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
Definition: PXDCluster.h:30
The PXDClustersFromTracks module.
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_tracksName
Track store array.
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.
Definition: SelectSubset.h:193
Abstract base class for different kinds of events.