9#include <framework/logging/Logger.h>
10#include <tracking/modules/vxdtfRedesign/TrackFinderVXDCosmicsStandalone.h>
26 addParam(
"SpacePointTrackCandArrayName",
28 "name for StoreArray< SpacePointTrackCand> to be filled.",
35 "Cut value to be applied to reduced chi2 of fit.",
m_qualityCut);
38 "Minimal number of SpacePoints for a candidate.",
m_minSPs);
44 "Sorting mode used when adding new SPs.\n 1: by radius,\n 2: by x,\n 3: by y (default).",
m_sortingMode);
64 std::pair<std::vector<double>, std::vector<double>> res =
m_SCC.getResult();
67 sptc.setChargeSeed(1.);
68 sptc.setQualityIndicator(
m_SCC.getReducedChi2());
70 TMatrixDSym covSeed(6);
77 sptc.setCovSeed(covSeed);
79 TVectorD stateSeed6D(6);
80 double momentumFactor = 100.;
81 stateSeed6D(0) = res.first[0];
82 stateSeed6D(1) = res.first[1];
83 stateSeed6D(2) = res.first[2];
84 stateSeed6D(3) = momentumFactor * res.second[0];
85 stateSeed6D(4) = momentumFactor * res.second[1];
86 stateSeed6D(5) = momentumFactor * res.second[2];
88 sptc.set6DSeed(stateSeed6D);
89 B2DEBUG(10,
"new SPTC with nhits = " << sptc.getNHits() <<
" and reduced chi2 = " << sptc.getQualityIndicator() <<
".");
90 m_TCs.appendNew(sptc);
@ c_DontWriteOut
Object/array should be NOT saved by output modules.
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...
Storage for (VXD) SpacePoint-based track candidates.
Accessor to arrays stored in the data store.
unsigned short m_sortingMode
Sorting mode used for adding new SpacePoints of a candidate.
int m_maxRejectedSPs
Parameter for the maximal number of SpacePoints to be excluded for a refit before rejecting the event...
void initialize() override
Initialize.
void event() override
event
StandaloneCosmicsCollector m_SCC
Line fit algorithm used for VXD standalone cosmics track finding.
StoreArray< Belle2::SpacePointTrackCand > m_TCs
Output container: StoreArray for the TCs created in this module.
double m_qualityCut
Module parameter to set maximal reduced chi2 value allowed for the fit.
int m_minSPs
Module parameter setting the minimal required number of SpacePoints for the fit.
std::vector< std::string > m_spacePointsNames
SpacePoint collection name.
TrackFinderVXDCosmicsStandaloneModule()
Constructor.
std::vector< StoreArray< SpacePoint > > m_spacePoints
The storeArray for SpacePoints.
std::string m_PARAMSpacePointTrackCandArrayName
Name for StoreArray<SpacePointTrackCand> to be filled.
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.