 |
Belle II Software
release-05-01-25
|
11 #include <framework/logging/Logger.h>
12 #include <tracking/modules/vxdtfRedesign/TrackFinderVXDCosmicsStandalone.h>
28 addParam(
"SpacePointTrackCandArrayName",
30 "name for StoreArray< SpacePointTrackCand> to be filled.",
37 "Cut value to be applied to reduced chi2 of fit.",
m_qualityCut);
40 "Minimal number of SpacePoints for a candidate.",
m_minSPs);
46 "Sorting mode used when adding new SPs.\n 1: by radius,\n 2: by x,\n 3: by y (default).",
m_sortingMode);
66 std::pair<std::vector<double>, std::vector<double>> res =
m_SCC.
getResult();
69 sptc.setChargeSeed(1.);
72 TMatrixDSym covSeed(6);
79 sptc.setCovSeed(covSeed);
81 TVectorD stateSeed6D(6);
82 double momentumFactor = 100.;
83 stateSeed6D(0) = res.first[0];
84 stateSeed6D(1) = res.first[1];
85 stateSeed6D(2) = res.first[2];
86 stateSeed6D(3) = momentumFactor * res.second[0];
87 stateSeed6D(4) = momentumFactor * res.second[1];
88 stateSeed6D(5) = momentumFactor * res.second[2];
90 sptc.set6DSeed(stateSeed6D);
91 B2DEBUG(10,
"new SPTC with nhits = " << sptc.getNHits() <<
" and reduced chi2 = " << sptc.getQualityIndicator() <<
".");
T * appendNew()
Construct a new T object at the end of the array.
std::vector< StoreArray< SpacePoint > > m_spacePoints
The storeArray for SpacePoints.
void setDescription(const std::string &description)
Sets the description of the module.
std::vector< std::string > m_spacePointsNames
SpacePoint collection name.
std::vector< const SpacePoint * > getSPTC()
Getter for the sorted list of SpacePoints used for the final fit which met the given requirements.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
TrackFinderVXDCosmicsStandaloneModule()
Constructor.
int m_minSPs
Module parameter setting the minimal required number of SpacePoints for the fit.
std::string m_PARAMSpacePointTrackCandArrayName
Name for StoreArray<SpacePointTrackCand> to be filled.
double getReducedChi2()
Getter for the final reduced chi squared value obtained for the set of SpacePoints used for the last ...
@ c_DontWriteOut
Object/array should be NOT saved by output modules.
void initialize() override
Initialize.
void addSpacePoints(std::vector< StoreArray< SpacePoint >> SPs)
Function to initialize the track finder anew for an event with its set of SpacePoints provided via th...
StandaloneCosmicsCollector m_SCC
Line fit algorithm used for VXD standalone cosmics track finding.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Abstract base class for different kinds of events.
StoreArray< Belle2::SpacePointTrackCand > m_TCs
Output container: StoreArray for the TCs created in this module.
bool doFit(double qualityCut, int maxRejected, int minSPs)
Function to perform the actual line fit based on the StoreArray of SpacePoints provided.
void setSortingMode(unsigned short index)
Set sorting mode used in addSpacePoints.
unsigned short m_sortingMode
Sorting mode used for adding new SpacePoints of a candidate.
double m_qualityCut
Module parameter to set maximal reduced chi2 value allowed for the fit.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
std::pair< std::vector< double >, std::vector< double > > getResult()
Getter for the position and momentum seed resulting from the linear fit.
void event() override
event
int m_maxRejectedSPs
Parameter for the maximal number of SpacePoints to be excluded for a refit before rejecting the event...
Storage for (VXD) SpacePoint-based track candidates.