11#include <tracking/trackFindingVXD/variableExtractors/VariableExtractor.h>
12#include <tracking/dataobjects/RecoTrack.h>
13#include <tracking/dataobjects/RecoHitInformation.h>
15#include <genfit/FitStatus.h>
16#include <mdst/dataobjects/Track.h>
17#include <mdst/dataobjects/MCParticle.h>
18#include <framework/gearbox/Const.h>
33 addVariable(prefix +
"flipped_pz_estimate", variableSet);
34 addVariable(prefix +
"tan_lambda_estimate", variableSet);
44 addVariable(prefix +
"omega_estimate", variableSet);
46 addVariable(prefix +
"flipped_z_estimate", variableSet);
48 addVariable(prefix +
"outGoingArmTime", variableSet);
49 addVariable(prefix +
"quality_flip_indicator", variableSet);
50 addVariable(prefix +
"inGoingArmTime", variableSet);
60 if (not track or not flippedRecoTrack) {
65 if (not flippedTrack) {
72 if (not trackFitResult or not flippedTrackFitResult) {
77 const auto& unflippedCovariance = trackFitResult->
getCovariance6();
78 const auto& unflippedMomentum = trackFitResult->
getMomentum();
79 const auto& unflippedPosition = trackFitResult->
getPosition();
81 const auto& flippedMomentum = flippedTrackFitResult->
getMomentum();
82 const auto& flippedPosition = flippedTrackFitResult->
getPosition();
static const float floatNaN
quiet_NaN
static const ChargedStable pion
charged pion particle
A mixin class to attach a name to an object. Based on class with same name in CDC package.
This is the Reconstruction Event-Data Model Track.
float getOutgoingArmTime()
Return the track time of the outgoing arm.
float getIngoingArmTime()
Return the track time of the ingoing arm.
float getFlipQualityIndicator() const
Get the 1st flipping quality attached to this RecoTrack as a reference for flipping.
T * getRelated(const std::string &name="", const std::string &namedRelation="") const
Get the object to or from which this object has a relation.
FROM * getRelatedFrom(const std::string &name="", const std::string &namedRelation="") const
Get the object from which this object has a relation.
Values of the result of a track fit with a given particle hypothesis.
double getPValue() const
Getter for Chi2 Probability of the track fit.
TMatrixDSym getCovariance6() const
Position and Momentum Covariance Matrix.
double getCotTheta() const
Getter for tanLambda with CDF naming convention.
double getOmega() const
Getter for omega.
std::vector< float > getCov() const
Getter for all covariance matrix elements of perigee parameters.
double getD0() const
Getter for d0.
ROOT::Math::XYZVector getMomentum() const
Getter for vector of momentum at closest approach of track in r/phi projection.
ROOT::Math::XYZVector getPosition() const
Getter for vector of position at closest approach of track in r/phi projection.
Class that bundles various TrackFitResults.
const TrackFitResult * getTrackFitResultWithClosestMassByName(const Const::ChargedStable &requestedType, const std::string trackFitResultsName) const
Return the track fit (from TrackFitResult with specified name) for a fit hypothesis with the closest ...
Abstract base class for different kinds of events.