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 <mdst/dataobjects/HitPatternCDC.h>
19 #include <framework/gearbox/Const.h>
35 addVariable(prefix +
"seed_pz_estimate", variableSet);
36 addVariable(prefix +
"seed_pz_variance", variableSet);
37 addVariable(prefix +
"seed_z_estimate", variableSet);
38 addVariable(prefix +
"seed_tan_lambda_estimate", variableSet);
39 addVariable(prefix +
"seed_pt_estimate", variableSet);
40 addVariable(prefix +
"seed_x_estimate", variableSet);
41 addVariable(prefix +
"seed_y_estimate", variableSet);
42 addVariable(prefix +
"seed_py_variance", variableSet);
43 addVariable(prefix +
"seed_d0_estimate", variableSet);
44 addVariable(prefix +
"seed_omega_variance", variableSet);
45 addVariable(prefix +
"svd_layer6_clsTime", variableSet);
46 addVariable(prefix +
"seed_tan_lambda_variance", variableSet);
47 addVariable(prefix +
"seed_z_variance", variableSet);
50 addVariable(prefix +
"svd_layer3_positionSigma", variableSet);
51 addVariable(prefix +
"first_cdc_layer", variableSet);
52 addVariable(prefix +
"last_cdc_layer", variableSet);
53 addVariable(prefix +
"InOutArmTimeDifference", variableSet);
54 addVariable(prefix +
"InOutArmTimeDifferenceError", variableSet);
55 addVariable(prefix +
"inGoingArmTime", variableSet);
56 addVariable(prefix +
"inGoingArmTimeError", variableSet);
57 addVariable(prefix +
"outGoingArmTime", variableSet);
58 addVariable(prefix +
"outGoingArmTimeError", variableSet);
74 if (cdc_list.size() > 0) {
75 auto first_cdc_list = cdc_list.front();
76 auto last_cdc_list = cdc_list.back();
85 if (svdcdc_recoTrack) {
89 auto svdcdc_charge_sign = svdcdc_recoTrack->
getChargeSeed() > 0 ? 1 : -1;
91 const uint16_t svdcdc_NDF = 0xffff;
92 auto svdcdc_FitResult =
TrackFitResult(svdcdc_pos, svdcdc_mom, svdcdc_cov,
93 svdcdc_charge_sign,
Const::pion, 0, svdcdc_b_field, 0, 0,
101 float seed_pt_estimate = svdcdc_mom.Rho();
115 if (svdHit->getSensorID().getLayerNumber() == 3) {
118 if (svdHit->getSensorID().getLayerNumber() == 6) {
static ROOT::Math::XYZVector getFieldInTesla(const ROOT::Math::XYZVector &pos)
return the magnetic field at a given position in Tesla.
static const ChargedStable pion
charged pion particle
This is the Reconstruction Event-Data Model Track.
float getInOutArmTimeDifference()
Return the difference between the track times of the ingoing and outgoing arms.
float getOutgoingArmTime()
Return the track time of the outgoing arm.
std::vector< Belle2::RecoTrack::UsedSVDHit * > getSVDHitList() const
Return an unsorted list of svd hits.
ROOT::Math::XYZVector getPositionSeed() const
Return the position seed stored in the reco track. ATTENTION: This is not the fitted position.
unsigned int getNumberOfSVDHits() const
Return the number of svd hits.
unsigned int getNumberOfCDCHits() const
Return the number of cdc hits.
float getIngoingArmTimeError()
Return the error of the track time of the ingoing arm.
float getOutgoingArmTimeError()
Return the error of the track time of the outgoing arm.
float getIngoingArmTime()
Return the track time of the ingoing arm.
float getInOutArmTimeDifferenceError()
Return the error of the difference between the track times of the ingoing and outgoing arms.
const TMatrixDSym & getSeedCovariance() const
Return the covariance matrix of the seed. ATTENTION: This is not the fitted covariance.
short int getChargeSeed() const
Return the charge seed stored in the reco track. ATTENTION: This is not the fitted charge.
ROOT::Math::XYZVector getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
std::vector< Belle2::RecoTrack::UsedCDCHit * > getSortedCDCHitList() const
Return a sorted list of cdc hits. Sorted by the sortingParameter.
T * getRelated(const std::string &name="", const std::string &namedRelation="") const
Get the object to or from which this object has a relation.
Values of the result of a track fit with a given particle hypothesis.
Abstract base class for different kinds of events.