 |
Belle II Software
release-05-02-19
|
13 #include <tracking/trackFindingVXD/variableExtractors/VariableExtractor.h>
14 #include <tracking/dataobjects/RecoTrack.h>
15 #include <tracking/dataobjects/RecoHitInformation.h>
17 #include <genfit/FitStatus.h>
18 #include <root/TVector3.h>
26 class RecoTrackExtractor :
public VariableExtractor {
31 explicit RecoTrackExtractor(std::vector<Named<float*>>& variableSet,
const std::string& prefix =
""):
32 VariableExtractor(),
m_prefix(prefix)
45 addVariable(prefix +
"seed_Mom_Theta", variableSet);
50 addVariable(prefix +
"N_tracking_hits", variableSet);
58 addVariable(prefix +
"Fit_NFailedPoints", variableSet);
60 addVariable(prefix +
"Fit_Successful", variableSet);
65 addVariable(prefix +
"POCA_Pos_Theta", variableSet);
71 addVariable(prefix +
"POCA_Mom_Theta", variableSet);
100 if (rt_TrackFitStatus) {
117 TVector3 linePoint(0., 0., 0.);
118 TVector3 lineDirection(0., 0., 1.);
123 reco_sop.extrapolateToLine(linePoint, lineDirection);
137 B2WARNING(
"RecoTrackExtractor: recoTrack BeamPipe POCA extrapolation failed!\n"
138 <<
"-->" <<
e.what());
unsigned int getNumberOfPXDHits() const
Return the number of pxd hits.
double getCharge() const
Get the fitted charge.
Exception class for error handling in GENFIT (provides storage for diagnostic information)
const genfit::FitStatus * getTrackFitStatus(const genfit::AbsTrackRep *representation=nullptr) const
Return the track fit status for the given representation or for the cardinal one. You are not allowed...
double getChi2() const
Get chi^2 of the fit.
bool wasFitSuccessful(const genfit::AbsTrackRep *representation=nullptr) const
Returns true if the last fit with the given representation was successful.
#StateOnPlane with additional covariance matrix.
const genfit::MeasuredStateOnPlane & getMeasuredStateOnPlaneFromFirstHit(const genfit::AbsTrackRep *representation=nullptr) const
Return genfit's MeasuredStateOnPlane for the first hit in a fit useful for extrapolation of measureme...
unsigned int getNumberOfSVDHits() const
Return the number of svd hits.
unsigned int getNumberOfTrackingHits() const
Return the number of cdc + svd + pxd hits.
double getTimeSeed() const
Return the time seed stored in the reco track. ATTENTION: This is not the fitted time.
This is the Reconstruction Event-Data Model Track.
virtual double getPVal() const
Get the p value of the fit.
TVector3 getPositionSeed() const
Return the position seed stored in the reco track. ATTENTION: This is not the fitted position.
Abstract base class for different kinds of events.
double getNdf() const
Get the degrees of freedom of the fit.
unsigned int getNumberOfCDCHits() const
Return the number of cdc hits.
TVector3 getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
short int getChargeSeed() const
Return the charge seed stored in the reco track. ATTENTION: This is not the fitted charge.
Class where important numbers and properties of a fit can be stored.