9#include <pxd/modules/pxdPerformance/PXDClustersFromTracksModule.h>
10#include <vxd/geometry/GeoCache.h>
11#include <vxd/geometry/SensorInfoBase.h>
13#include <tracking/dataobjects/RecoTrack.h>
14#include <mdst/dataobjects/Track.h>
16#include <framework/datastore/StoreArray.h>
32 B2DEBUG(1,
"Constructor");
34 setDescription(
"PXDClustersFromTracks module for creating a new StoreArray of track matched PXDCluster.");
39 addParam(
"TracksName",
m_tracksName,
"StoreArray name of the input tracks", std::string(
"Tracks"));
42 std::string(
"PXDClustersFromTracks"));
44 "Set true if you want to inherit PXDCluster relation with StoreArray RecoTracks, the default is true",
bool(
true));
49 B2DEBUG(20,
"Destructor");
90 if (recoTrack_cluster.
size() == 0) {
94 if (!track_recoTrack.
size()) {
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
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_tracksName
Track store array.
std::string m_outputArrayName
StoreArray with the selected PXD clusters.
This is the Reconstruction Event-Data Model Track.
Class for type safe access to objects that are referred to in relations.
size_t size() const
Get number of relations.
RelationVector< TO > getRelationsTo(const std::string &name="", const std::string &namedRelation="") const
Get the relations that point from this object to another store array.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
Class that bundles various TrackFitResults.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.