9#include "tracking/modules/trackSetEvaluatorVXD/AddVXDTrackCandidateSubSetsModule.h"
19 setDescription(
"Module that creates additional candidates that each miss a different SpacePoint.");
24 "Minimal number of SpacePoints required for the original SpacePointTrackCandidate to create subsets from it."
25 " Should be at least 4, so that the subsets have 3 SpacePoints.",
37 std::vector<int> trackCandIndices;
38 trackCandIndices.reserve(nTracks);
41 trackCandIndices.push_back(sptc.getArrayIndex());
44 for (
int iCand : trackCandIndices) {
52 int nHits = sptc->getNHits();
57 for (
int iHit = 0; iHit < nHits; ++iHit) {
58 std::vector<const SpacePoint*> tmp = sptc->getHits();
59 tmp.erase(tmp.begin() + iHit);
SpacePointTrackCandCreator< StoreArray< Belle2::SpacePointTrackCand > > m_sptcCreator
member variables
void initialize() override final
Requires SpacePointTrackCands.
AddVXDTrackCandidateSubSetsModule()
Constructor of the module.
void event() override final
event loop.
int m_minOriginalSpacePoints
Minimal number of SPs of the original SPTC.
void addSubCandidates(int iCand)
Actually creates the new SPTCs by removing single SPs from the SPTC with the provided StoreArray inde...
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
StoreArray for input SpacePointTrackCands.
std::string m_nameSpacePointTrackCands
Name of input StoreArray containing SpacePointTrackCands.
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...
@ c_isActive
bit 11: SPTC is active (i.e.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
int getEntries() const
Get the number of objects in the array.
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.