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#include <pxd/dataobjects/PXDCluster.h>
14
15namespace Belle2 {
20
31
32 public:
33
38
40 virtual ~PXDClustersFromTracksModule() override;
41
43 virtual void event() override;
44
46 virtual void initialize() override;
47
48 private:
49
50 std::string m_pxdClustersName;
51 std::string m_recoTracksName;
52 std::string m_tracksName;
53
55
56 std::string m_outputArrayName;
57
59
60 static bool isRelatedToTrack(const PXDCluster* pxdCluster);
61
62 };
63
64}
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 ~PXDClustersFromTracksModule() override
if required
SelectSubset< PXDCluster > m_selectedPXDClusters
all PXD clusters
static bool isRelatedToTrack(const PXDCluster *pxdCluster)
select the PXD clusters related to tracks
std::string m_pxdClustersName
SVDCLuster store array.
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.