11#include <framework/datastore/StoreArray.h>
12#include <framework/datastore/RelationsObject.h>
13#include <framework/core/FrameworkExceptions.h>
14#include <framework/geometry/VectorUtil.h>
16#include <genfit/Track.h>
18#include <tracking/dataobjects/RecoHitInformation.h>
20#include <Math/Vector3D.h>
39 BELLE2_DEFINE_EXCEPTION(NoTrackFitResult,
"No track fit result available for this hit (e.g. DAF has removed it).")
108 c_matchedWrongCharge,
130 static void registerRequiredRelations(
132 std::string
const& pxdHitsStoreArrayName =
"",
133 std::string
const& svdHitsStoreArrayName =
"",
134 std::string
const& cdcHitsStoreArrayName =
"",
135 std::string
const& bklmHitsStoreArrayName =
"",
136 std::string
const& eklmHitsStoreArrayName =
"",
137 std::string
const& recoHitInformationStoreArrayName =
"");
155 RecoTrack(
const ROOT::Math::XYZVector& seedPosition,
const ROOT::Math::XYZVector& seedMomentum,
const short int seedCharge,
156 const std::string& storeArrayNameOfPXDHits =
"",
157 const std::string& storeArrayNameOfSVDHits =
"",
158 const std::string& storeArrayNameOfCDCHits =
"",
159 const std::string& storeArrayNameOfBKLMHits =
"",
160 const std::string& storeArrayNameOfEKLMHits =
"",
161 const std::string& storeArrayNameOfRecoHitInformation =
"");
184 const std::string& storeArrayNameOfRecoTracks =
"",
185 const std::string& storeArrayNameOfPXDHits =
"",
186 const std::string& storeArrayNameOfSVDHits =
"",
187 const std::string& storeArrayNameOfCDCHits =
"",
188 const std::string& storeArrayNameOfBKLMHits =
"",
189 const std::string& storeArrayNameOfEKLMHits =
"",
190 const std::string& storeArrayNameOfRecoHitInformation =
"",
191 const bool recreateSortingParameters =
false
204 const ROOT::Math::XYZVector& momentum,
short charge,
205 const TMatrixDSym& covariance,
double timeSeed)
const;
232 bool reversed =
false, std::optional<double> optionalMinimalWeight = std::nullopt);
244 RightLeftInformation rightLeftInformation = RightLeftInformation::c_undefinedRightLeftInformation,
245 OriginTrackFinder foundByTrackFinder = OriginTrackFinder::c_undefinedTrackFinder)
247 return addHit(cdcHit, rightLeftInformation, foundByTrackFinder, sortingParameter);
259 OriginTrackFinder foundByTrackFinder = OriginTrackFinder::c_undefinedTrackFinder)
261 return addHit(pxdHit, foundByTrackFinder, sortingParameter);
273 OriginTrackFinder foundByTrackFinder = OriginTrackFinder::c_undefinedTrackFinder)
275 return addHit(svdHit, foundByTrackFinder, sortingParameter);
287 OriginTrackFinder foundByTrackFinder = OriginTrackFinder::c_undefinedTrackFinder)
289 return addHit(bklmHit, foundByTrackFinder, sortingParameter);
301 OriginTrackFinder foundByTrackFinder = OriginTrackFinder::c_undefinedTrackFinder)
303 return addHit(eklmHit, foundByTrackFinder, sortingParameter);
311 template<
class HitType>
319 if (recoHitInformation.getRelatedFrom<
RecoTrack>(this->getArrayName()) ==
this) {
321 return &recoHitInformation;
330 template <
class HitType>
338 template <
class HitType>
346 template <
class HitType>
354 template <
class HitType>
362 template <
class HitType>
371 template <
class HitType>
379 template <
class HitType>
391 const genfit::TrackPoint* getCreatedTrackPoint(
const RecoHitInformation* recoHitInformation)
const;
410 template <
class HitType>
414 return std::find_if(relatedTracksToHit.
begin(), relatedTracksToHit.
end(), [
this](
const RecoTrack & recoTrack) {
415 return &recoTrack == this;
416 }) != relatedTracksToHit.
end();
483 return ROOT::Math::XYZVector(seed(0), seed(1), seed(2));
490 return ROOT::Math::XYZVector(seed(3), seed(4), seed(5));
584 void flipTrackDirectionAndCharge(
const genfit::AbsTrackRep* representation =
nullptr);
587 std::tuple<ROOT::Math::XYZVector, ROOT::Math::XYZVector, short> extractTrackState()
const;
618 bool wasFitSuccessful(
const genfit::AbsTrackRep* representation =
nullptr)
const;
621 const genfit::FitStatus*
getTrackFitStatus(
const genfit::AbsTrackRep* representation =
nullptr)
const
621 const genfit::FitStatus*
getTrackFitStatus(
const genfit::AbsTrackRep* representation =
nullptr)
const {
…}
628 bool hasTrackFitStatus(
const genfit::AbsTrackRep* representation =
nullptr)
const;
650 genfit::AbsTrackRep* getTrackRepresentationForPDG(
int pdgCode)
const;
658 std::vector<RecoHitInformation*> getRecoHitInformations(
bool getSorted =
false)
const;
664 const genfit::MeasuredStateOnPlane& getMeasuredStateOnPlaneFromFirstHit(
const genfit::AbsTrackRep* representation =
nullptr)
const;
670 const genfit::MeasuredStateOnPlane& getMeasuredStateOnPlaneFromLastHit(
const genfit::AbsTrackRep* representation =
nullptr)
const;
676 const genfit::MeasuredStateOnPlane& getMeasuredStateOnPlaneFromRecoHit(
const RecoHitInformation* recoHitInfo,
677 const genfit::AbsTrackRep* representation =
nullptr)
const;
682 const genfit::MeasuredStateOnPlane& getMeasuredStateOnPlaneClosestTo(
const ROOT::Math::XYZVector& closestPoint,
683 const genfit::AbsTrackRep* representation =
nullptr);
694 void estimateArmTime();
755 RecoHitInfo->setSortingParameter(recoHitInformationSize - RecoHitInfo->getSortingParameter() - 1);
765 template<
class HitType>
774 HitType*
const hit = hitInformation.getRelatedTo<HitType>(storeArrayNameOfHits);
775 if (hit !=
nullptr && pickFunction(hitInformation, hit)) {
776 mapFunction(hitInformation, hit);
787 template<
class HitType>
790 std::function<
bool(
const RecoHitInformation&,
const HitType*)>
const& pickFunction)
const
796 const HitType*
const hit = hitInformation.getRelatedTo<HitType>(storeArrayNameOfHits);
797 if (hit !=
nullptr && pickFunction(hitInformation, hit)) {
798 mapFunction(hitInformation, hit);
808 template<
class HitType>
820 template<
class HitType>
822 std::function<
void(
const RecoHitInformation&,
const HitType*)>
const& mapFunction)
const
881 void deleteFittedInformation();
890 void deleteFittedInformationForRepresentation(
const genfit::AbsTrackRep* rep);
893 std::string getInfoHTML()
const override;
948 template<
class HitType,
class ...Args>
949 bool addHit(
const HitType* hit, Args&& ... params)
949 bool addHit(
const HitType* hit, Args&& ... params) {
…}
968 template <
class HitType>
971 hit->addRelationTo(
this);
986 template <
class HitType>
990 if (recoHitInformation ==
nullptr) {
991 B2FATAL(
"Queried hit is not in the reco track! Did you prune it?");
993 return recoHitInformation;
1001 template <
class HitType>
1011 template<
class HitType>
1017 std::vector<const RecoHitInformation*> relatedHitInformationAsVector;
1018 relatedHitInformationAsVector.reserve(relatedHitInformation.
size());
1021 relatedHitInformationAsVector.push_back(&hitInformation);
1023 std::sort(relatedHitInformationAsVector.begin(), relatedHitInformationAsVector.end(), [](
const RecoHitInformation * a,
1025 return a->getSortingParameter() < b->getSortingParameter();
1028 std::vector<HitType*> hitList;
1029 hitList.reserve(relatedHitInformationAsVector.size());
1031 HitType* relatedHit = hitInformation->getRelatedTo<HitType>(storeArrayNameOfHits);
1032 if (relatedHit !=
nullptr) {
1033 hitList.push_back(relatedHit);
1043 template<
class HitType>
1044 std::vector<HitType*>
getHitList(
const std::string& storeArrayNameOfHits)
const
1047 std::vector<HitType*> hitList;
1048 hitList.reserve(relatedHits.
size());
1049 for (HitType& hit : relatedHits) {
1051 hitList.push_back(&hit);
1044 std::vector<HitType*>
getHitList(
const std::string& storeArrayNameOfHits)
const {
…}
1069 B2DEBUG(100,
"Dirty flag is set. The result may not be in sync with the latest changes. Refit the track to be sure.");
This class allows access to the genfit::Track of the RecoTrack.
static genfit::Track & getGenfitTrack(RecoTrack &recoTrack)
Give access to the RecoTrack's genfit::Track.
static void swapGenfitTrack(RecoTrack &recoTrack, const genfit::Track *track)
Set the genfit track of a Recotrack copying the information from another genfit track.
static genfit::AbsTrackRep * createOrReturnRKTrackRep(RecoTrack &recoTrack, int PDGcode)
Checks if a TrackRap for the PDG id of the RecoTrack (and its charge conjugate) does already exit and...
This is the Reconstruction Event-Data Model Track.
size_t addHitsFromRecoTrack(const RecoTrack *recoTrack, unsigned int sortingParameterOffset=0, bool reversed=false, std::optional< double > optionalMinimalWeight=std::nullopt)
Add all hits from another RecoTrack to this RecoTrack.
void setChargeSeed(const short int chargeSeed)
Set the charge seed stored in the reco track. ATTENTION: This is not the fitted charge.
RecoTrack & operator=(RecoTrack const &)=delete
Delete the copy construtr.
TrackingDetector getTrackingDetector(const HitType *hit) const
Return the tracking detector of a given hit (every type) or throws an exception of the hit is not rel...
RecoHitInformation::UsedCDCHit UsedCDCHit
Copy the definitions from the RecoHitInformation to this class.
void mapOnHits(const std::string &storeArrayNameOfHits, std::function< void(RecoHitInformation &, HitType *)> const &mapFunction, std::function< bool(const RecoHitInformation &, const HitType *)> const &pickFunction)
Call a function on all hits of the given type in the store array, that are related to this track.
const std::vector< genfit::AbsTrackRep * > & getRepresentations() const
Return a list of track representations. You are not allowed to modify or delete them!
const TMatrixDSym & getSeedCovariance() const
Return the covariance matrix of the seed. ATTENTION: This is not the fitted covariance.
std::vector< Belle2::RecoTrack::UsedSVDHit * > getSortedSVDHitList() const
Return a sorted list of svd hits. Sorted by the sortingParameter.
bool addBKLMHit(const UsedBKLMHit *bklmHit, const unsigned int sortingParameter, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds a bklm hit with the given information to the reco track.
float m_2ndFlipqualityIndicator
Quality index for flipping.
void mapOnHits(const std::string &storeArrayNameOfHits, std::function< void(RecoHitInformation &, HitType *)> const &mapFunction)
Call a function on all hits of the given type in the store array, that are related to this track.
void mapOnHits(const std::string &storeArrayNameOfHits, std::function< void(const RecoHitInformation &, const HitType *)> const &mapFunction) const
Call a function on all hits of the given type in the store array, that are related to this track.
bool addCDCHit(const UsedCDCHit *cdcHit, const unsigned int sortingParameter, RightLeftInformation rightLeftInformation=RightLeftInformation::c_undefinedRightLeftInformation, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds a cdc hit with the given information to the reco track.
void deleteFittedInformation()
Delete all fitted information for all representations.
float getInOutArmTimeDifference()
Return the difference between the track times of the ingoing and outgoing arms.
std::vector< Belle2::RecoTrack::UsedPXDHit * > getPXDHitList() const
Return an unsorted list of pxd hits.
float getOutgoingArmTime()
Return the track time of the outgoing arm.
float m_ingoingArmTimeError
Error of the track time of the ingoing arm.
bool hasCDCHits() const
Returns true if the track has cdc hits.
unsigned int getNumberOfBKLMHits() const
Return the number of bklm hits.
const std::string & getStoreArrayNameOfEKLMHits() const
Name of the store array of the eklm hits.
float m_flipqualityIndicator
Quality index for flipping.
void mapOnHits(const std::string &storeArrayNameOfHits, std::function< void(const RecoHitInformation &, const HitType *)> const &mapFunction, std::function< bool(const RecoHitInformation &, const HitType *)> const &pickFunction) const
Call a function on all hits of the given type in the store array, that are related to this track.
std::vector< Belle2::RecoTrack::UsedSVDHit * > getSVDHitList() const
Return an unsorted list of svd hits.
RecoHitInformation::RecoHitDetector TrackingDetector
Copy the definitions from the RecoHitInformation to this class.
static RecoTrack * createFromTrackCand(const genfit::TrackCand &trackCand, const std::string &storeArrayNameOfRecoTracks="", const std::string &storeArrayNameOfPXDHits="", const std::string &storeArrayNameOfSVDHits="", const std::string &storeArrayNameOfCDCHits="", const std::string &storeArrayNameOfBKLMHits="", const std::string &storeArrayNameOfEKLMHits="", const std::string &storeArrayNameOfRecoHitInformation="", const bool recreateSortingParameters=false)
Create a reco track from a genfit::TrackCand and save it to the given store array.
void setPositionAndMomentum(const ROOT::Math::XYZVector &positionSeed, const ROOT::Math::XYZVector &momentumSeed)
Set the position and momentum seed of the reco track. ATTENTION: This is not the fitted position or m...
std::string m_storeArrayNameOfCDCHits
Store array name of added CDC hits.
friend class RecoTrackGenfitAccess
The RecoTrackGenfitAccess need to access the genfit track (which is intended)!
bool addEKLMHit(const UsedEKLMHit *eklmHit, const unsigned int sortingParameter, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds an eklm hit with the given information to the reco track.
void setSortingParameter(const HitType *hit, unsigned int sortingParameter)
Set the sorting parameter or throws an exception of the hit is not related to the track....
bool addPXDHit(const UsedPXDHit *pxdHit, const unsigned int sortingParameter, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds a pxd hit with the given information to the reco track.
std::vector< Belle2::RecoTrack::UsedCDCHit * > getSortedCDCHitList() const
Return a sorted list of cdc hits. Sorted by the sortingParameter.
std::vector< Belle2::RecoTrack::UsedBKLMHit * > getBKLMHitList() const
Return an unsorted list of bklm hits.
std::vector< Belle2::RecoTrack::UsedCDCHit * > getCDCHitList() const
Return an unsorted list of cdc hits.
const std::string & getStoreArrayNameOfSVDHits() const
Name of the store array of the svd hits.
void estimateArmTime()
This function calculates the track time of the ingoing and outgoing arms and their difference.
MatchingStatus m_matchingStatus
Flag used in the MCRecoTracksMatcherModule.
ROOT::Math::XYZVector getPositionSeed() const
Return the position seed stored in the reco track. ATTENTION: This is not the fitted position.
bool m_hasIngoingArmTime
Internal storage of the final ingoing arm time is set.
RecoHitInformation::UsedEKLMHit UsedEKLMHit
Copy the definitions from the RecoHitInformation to this class.
MatchingStatus
Enum for the matching status of this reco track (set by the matching modules in the tracking package)...
int m_nSVDHitsOfOutgoingArm
Number of SVD clusters of the outgoing arm.
bool m_hasOutgoingArmTime
Internal storage of the final outgoing arm time is set.
genfit::AbsTrackRep * getCardinalRepresentation() const
Get a pointer to the cardinal track representation. You are not allowed to modify or delete it!
const std::string & getStoreArrayNameOfPXDHits() const
Name of the store array of the pxd hits.
float m_outgoingArmTime
Track time of the outgoing arm.
void setRightLeftInformation(const HitType *hit, RightLeftInformation rightLeftInformation)
Set the right left information or throws an exception of the hit is not related to the track....
std::vector< HitType * > getSortedHitList(const std::string &storeArrayNameOfHits) const
Return a sorted list of hits of the given type in the store array that are related to this track.
void setDirtyFlag(const bool &dirtyFlag=true)
Set to true, if you want to rebuild the measurements and do the fit independent on changes of the hit...
std::vector< Belle2::RecoTrack::UsedEKLMHit * > getSortedEKLMHitList() const
Return a sorted list of eklm hits. Sorted by the sortingParameter.
std::string m_storeArrayNameOfBKLMHits
Store array name of added BKLM hits.
unsigned int getNumberOfEKLMHits() const
Return the number of eklm hits.
RightLeftInformation getRightLeftInformation(const HitType *hit) const
Return the right left information of a given hit (every type) or throws an exception of the hit is no...
unsigned int getNumberOfSVDHits() const
Return the number of svd hits.
OriginTrackFinder getFoundByTrackFinder(const HitType *hit) const
Return the found by track finder flag for the given hit (every type) or throws an exception of the hi...
unsigned int getNumberOfCDCHits() const
Return the number of cdc hits.
int getNSVDHitsOfIngoingArm()
Return the number of clusters used to estimate the ingoing arm time.
bool addHit(const HitType *hit, Args &&... params)
Add a generic hit with the given parameters for the reco hit information.
unsigned int getNumberOfTrackingHits() const
Return the number of cdc + svd + pxd hits.
short int m_charge
Storage for the charge. All other helix parameters are saved in the genfit::Track.
RecoHitInformation::UsedBKLMHit UsedBKLMHit
Copy the definitions from the RecoHitInformation to this class.
float getIngoingArmTimeError()
Return the error of the track time of the ingoing arm.
bool hasHit(const HitType *hit) const
Returns true if the given hit is in the track.
void setMatchingStatus(MatchingStatus matchingStatus)
Set the matching status (used by the TrackMatcher module)
std::vector< Belle2::RecoTrack::UsedEKLMHit * > getEKLMHitList() const
Return an unsorted list of eklm hits.
std::vector< HitType * > getHitList(const std::string &storeArrayNameOfHits) const
Return an unsorted list of hits of the given type in the store array that are related to this track.
RecoTrack(const RecoTrack &)=delete
Delete the copy construtr.
unsigned int getSortingParameter(const HitType *hit) const
Return the sorting parameter for a given hit (every type) or throws an exception of the hit is not re...
RecoHitInformation * getRecoHitInformationSafely(HitType *hit) const
Returns the reco hit information for a given hit or throws an exception if the hit is not related to ...
bool hasPXDHits() const
Returns true if the track has pxd hits.
ClassDefOverride(RecoTrack, 15)
Making this class a ROOT class.
RecoTrack * copyToStoreArrayUsingSeeds(StoreArray< RecoTrack > &storeArray) const
Append a new RecoTrack to the given store array and copy its general properties, but not the hits the...
const std::string & getStoreArrayNameOfBKLMHits() const
Name of the store array of the bklm hits.
void setTimeSeed(const double timeSeed)
Set the time seed. ATTENTION: This is not the fitted time.
bool hasOutgoingArmTime()
Check if the outgoing arm time is set.
bool m_dirtyFlag
Bool is hits were added to track after fitting and the measurements should be recalculated.
unsigned int getNumberOfHitsOfGivenType(const std::string &storeArrayNameOfHits) const
Get the number of hits for the given hit type in the store array that are related to this track.
float getOutgoingArmTimeError()
Return the error of the track time of the outgoing arm.
void setFoundByTrackFinder(const HitType *hit, OriginTrackFinder originTrackFinder)
Set the found by track finder flag or throws an exception of the hit is not related to the track.
float getIngoingArmTime()
Return the track time of the ingoing arm.
bool hasEKLMHits() const
Returns true if the track has eklm hits.
genfit::TrackCand createGenfitTrackCand() const
Create a genfit::TrackCand out of this reco track and copy all information to the track candidate.
void setSeedCovariance(const TMatrixDSym &seedCovariance)
Set the covariance of the seed. ATTENTION: This is not the fitted covariance.
float getQualityIndicator() const
Get the quality index attached to this RecoTrack given by one of the reconstruction algorithms....
const std::string & getStoreArrayNameOfRecoHitInformation() const
Name of the store array of the reco hit information.
float get2ndFlipQualityIndicator() const
Get the 2nd flipping quality attached to this RecoTrack as a reference for flipping.
int m_nSVDHitsOfIngoingArm
Number of SVD clusters of the ingoing arm.
void set2ndFlipQualityIndicator(const float qualityIndicator)
Set the 2nd flipping quality attached to this RecoTrack.
RecoHitInformation * getRecoHitInformation(HitType *hit) const
Return the reco hit information for a generic hit from the storeArray.
void setFlipQualityIndicator(const float qualityIndicator)
Set the 1st flipping quality attached to this RecoTrack.
RecoTrack * copyToStoreArray(StoreArray< RecoTrack > &storeArray) const
Append a new RecoTrack to the given store array and copy its general properties, but not the hits the...
void addHitWithHitInformation(const HitType *hit, RecoHitInformation *recoHitInformation)
Add the needed relations for adding a generic hit with the given hit information and reset track time...
RecoTrack * copyToStoreArrayUsing(StoreArray< RecoTrack > &storeArray, const ROOT::Math::XYZVector &position, const ROOT::Math::XYZVector &momentum, short charge, const TMatrixDSym &covariance, double timeSeed) const
Append a new RecoTrack to the given store array and copy its general properties, but not the hits the...
void setQualityIndicator(const float qualityIndicator)
Set the quality index attached to this RecoTrack. 0 means likely fake.
float m_qualityIndicator
Quality index for classification of fake vs. MC-matched Tracks.
std::vector< RecoHitInformation * > getRecoHitInformations(bool getSorted=false) const
Return a list of all RecoHitInformations associated with the RecoTrack.
MatchingStatus getMatchingStatus() const
Return the matching status set by the TrackMatcher module.
bool m_isArmTimeComputed
true if the arms times are already computed, false otherwise
std::string m_storeArrayNameOfSVDHits
Store array name of added SVD hits.
std::vector< Belle2::RecoTrack::UsedBKLMHit * > getSortedBKLMHitList() const
Return a sorted list of bklm hits. Sorted by the sortingParameter.
const std::string & getStoreArrayNameOfCDCHits() const
Name of the store array of the cdc hits.
float m_ingoingArmTime
Track time of the ingoing arm.
std::vector< Belle2::RecoTrack::UsedPXDHit * > getSortedPXDHitList() const
Return a sorted list of pxd hits. Sorted by the sortingParameter.
float getInOutArmTimeDifferenceError()
Return the error of the difference between the track times of the ingoing and outgoing arms.
bool getDirtyFlag() const
This returns true, if a hit was added after the last fit and measurement creation and a refit should ...
void revertRecoHitInformationSorting()
Revert the sorting order of the RecoHitInformation.
bool hasBKLMHits() const
Returns true if the track has bklm hits.
short int getChargeSeed() const
Return the charge seed stored in the reco track. ATTENTION: This is not the fitted charge.
bool hasIngoingArmTime()
Check if the ingoing arm time is set.
float getFlipQualityIndicator() const
Get the 1st flipping quality attached to this RecoTrack as a reference for flipping.
RecoHitInformation::RightLeftInformation RightLeftInformation
Copy the definitions from the RecoHitInformation to this class.
float m_outgoingArmTimeError
Error of the track time of the outgoing arm.
RecoHitInformation::OriginTrackFinder OriginTrackFinder
Copy the definitions from the RecoHitInformation to this class.
const TVectorD & getStateSeed() const
Return the state seed in the form posX, posY, posZ, momX, momY, momZ. ATTENTION: This is not the fitt...
ROOT::Math::XYZVector getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
genfit::Track m_genfitTrack
Internal storage for the genfit track.
int getNSVDHitsOfOutgoingArm()
Return the number of clusters used to estimate the outgoing arm time.
RecoHitInformation::UsedSVDHit UsedSVDHit
Copy the definitions from the RecoHitInformation to this class.
std::string m_storeArrayNameOfEKLMHits
Store array name of added EKLM hits.
RecoTrack()
Empty constructor for ROOT. Do not use!
unsigned int getNumberOfPXDHits() const
Return the number of pxd hits.
std::string m_storeArrayNameOfPXDHits
Store array name of added PXD hits.
bool addSVDHit(const UsedSVDHit *svdHit, const unsigned int sortingParameter, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds a svd hit with the given information to the reco track.
void checkDirtyFlag() const
Helper: Check the dirty flag and produce a warning, whenever a fit result is accessed.
const genfit::Track & getGenfitTrack() const
Returns genfit track.
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...
RecoHitInformation::UsedPXDHit UsedPXDHit
Copy the definitions from the RecoHitInformation to this class.
double getTimeSeed() const
Return the time seed stored in the reco track. ATTENTION: This is not the fitted time.
const std::vector< genfit::TrackPoint * > & getHitPointsWithMeasurement() const
Return a list of measurements and track points, which can be used e.g. to extrapolate....
bool hasSVDHits() const
Returns true if the track has svd hits.
std::string m_storeArrayNameOfRecoHitInformation
Store array of added RecoHitInformation.
void swapArmTimes()
Swap arm times, booleans and nSVDHits.
unsigned int getNumberOfTotalHits() const
Return the number of cdc + svd + pxd + bklm + eklm hits.
Class for type safe access to objects that are referred to in relations.
size_t size() const
Get number of relations.
iterator end()
Return iterator to last entry +1.
iterator begin()
Return iterator to first entry.
void addRelationTo(const RelationsInterface< TObject > *object, float weight=1.0, const std::string &namedRelation="") const
std::string getArrayName() const
RelationVector< FROM > getRelationsFrom(const std::string &name="", const std::string &namedRelation="") const
FROM * getRelatedFrom(const std::string &name="", const std::string &namedRelation="") const
RelationVector< TO > getRelationsTo(const std::string &name="", const std::string &namedRelation="") const
Accessor to arrays stored in the data store.
T * appendNew()
Construct a new T object at the end of the array.
static constexpr auto XYZToTVector
Helper function to convert XYZVector to TVector3.
#define BELLE2_DEFINE_EXCEPTION(ClassName, Message)
Macro that defines an exception with the given message template.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.