 |
Belle II Software
release-05-01-25
|
10 #include <pxd/modules/pxdPerformance/PXDClustersFromTracksModule.h>
11 #include <vxd/geometry/GeoCache.h>
12 #include <vxd/geometry/SensorInfoBase.h>
14 #include <framework/datastore/StoreArray.h>
30 B2DEBUG(1,
"Constructor");
32 setDescription(
"PXDClustersFromTracks module for creating a new StoreArray of track matched PXDCluster.");
33 setPropertyFlags(c_ParallelProcessingCertified);
36 addParam(
"PXDClustersName", m_pxdClustersName,
"StoreArray name of the input PXD clusters", std::string(
"PXDClusters"));
37 addParam(
"TracksName", m_tracksName,
"StoreArray name of the input tracks", std::string(
"Tracks"));
38 addParam(
"RecoTracksName", m_recoTracksName,
"StoreArray name of the input recoTracks", std::string(
"RecoTracks"));
39 addParam(
"outputArrayName", m_outputArrayName,
"StoreArray name of the output PXD clusters",
40 std::string(
"PXDClustersFromTracks"));
41 addParam(
"InheritRelations", m_inheritance,
42 "Set true if you want to inherit PXDCluster relation with StoreArray RecoTracks, the default is true",
bool(
true));
47 B2DEBUG(20,
"Destructor");
63 pxdClusters.isRequired();
64 recoTracks.isRequired();
100 if (recoTrack_cluster.
size() == 0) {
104 if (!track_recoTrack.
size()) {
virtual ~PXDClustersFromTracksModule()
if required
size_t size() const
Get number of relations.
std::string m_pxdClustersName
SVDCLuster store array.
virtual void endRun() override
end the run
virtual void event() override
processes the event
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
virtual void terminate() override
terminates the module
std::string m_tracksName
Track store array.
RelationVector< TO > getRelationsTo(const std::string &name="", const std::string &namedRelation="") const
Get the relations that point from this object to another store array.
virtual void initialize() override
init the module
This is the Reconstruction Event-Data Model Track.
Class for type safe access to objects that are referred to in relations.
Abstract base class for different kinds of events.
static bool isRelatedToTrack(const PXDCluster *pxdCluster)
select the PXD clusters related to tracks
std::string m_outputArrayName
StoreArray with the selected PXD clusters.
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
The PXDClustersFromTracks module.
virtual void beginRun() override
initializes the module
Class that bundles various TrackFitResults.
std::string m_recoTracksName
reco track store array
SelectSubset< PXDCluster > m_selectedPXDClusters
all PXD clusters
bool m_inheritance
if true all relations are inherited