9 #include <pxd/modules/pxdPerformance/PXDClustersFromTracksModule.h>
10 #include <vxd/geometry/GeoCache.h>
11 #include <vxd/geometry/SensorInfoBase.h>
13 #include <framework/datastore/StoreArray.h>
29 B2DEBUG(1,
"Constructor");
31 setDescription(
"PXDClustersFromTracks module for creating a new StoreArray of track matched PXDCluster.");
32 setPropertyFlags(c_ParallelProcessingCertified);
35 addParam(
"PXDClustersName", m_pxdClustersName,
"StoreArray name of the input PXD clusters", std::string(
"PXDClusters"));
36 addParam(
"TracksName", m_tracksName,
"StoreArray name of the input tracks", std::string(
"Tracks"));
37 addParam(
"RecoTracksName", m_recoTracksName,
"StoreArray name of the input recoTracks", std::string(
"RecoTracks"));
38 addParam(
"outputArrayName", m_outputArrayName,
"StoreArray name of the output PXD clusters",
39 std::string(
"PXDClustersFromTracks"));
40 addParam(
"InheritRelations", m_inheritance,
41 "Set true if you want to inherit PXDCluster relation with StoreArray RecoTracks, the default is true",
bool(
true));
46 B2DEBUG(20,
"Destructor");
99 if (recoTrack_cluster.
size() == 0) {
103 if (!track_recoTrack.
size()) {
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
The PXDClustersFromTracks 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
virtual ~PXDClustersFromTracksModule()
if required
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.
Class that bundles various TrackFitResults.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.