9 #include "../include/PXDSVDCutModule.h"
21 setDescription(
"The module to deactivate the SpacePointTrackCandidates with less than *minSVDSPs* SVD SpacePoints.");
22 setPropertyFlags(c_ParallelProcessingCertified);
24 addParam(
"minSVDSPs", m_minSVDSPs,
25 "Minimum number of SVD SpacePoints to keep a SpacePointTrackCandidate",
int(3));
27 addParam(
"SpacePointTrackCandsStoreArrayName", m_SpacePointTrackCandsStoreArrayName,
28 "Name of StoreArray containing the SpacePointTrackCandidates to be estimated.", std::string(
""));
41 const std::vector<const Belle2::SpacePoint*> sorted_spacepoints = aTC.getSortedHits();
42 int n_svd_spacepoints = 0;
44 for (
auto& spacepoint : sorted_spacepoints)
The module to deactivate the SpacePointTrackCandidates with less than minSVDSPs SVD SpacePoints.
std::string m_SpacePointTrackCandsStoreArrayName
sets the name of the expected StoreArray containing SpacePointTrackCands
void initialize() override
Initializes the Module.
void event() override
Applies the selected quality estimation method for a given set of TCs.
int m_minSVDSPs
Minimum number of SVD SpacePointss to keep a SpacePointTrackCandidate.
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event
Storage for (VXD) SpacePoint-based track candidates.
@ c_isActive
bit 11: SPTC is active (i.e.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.