Belle II Software development
CKFToPXDResult Class Reference

Specialized CKF Result for extrapolating into the PXD. More...

#include <CKFToPXDResult.h>

Inheritance diagram for CKFToPXDResult:
CKFResult< RecoTrack, SpacePoint >

Public Types

using Seed = RecoTrack
 Copy seed definition.
 
using Hit = SpacePoint
 Copy hit definition.
 

Public Member Functions

 CKFToPXDResult (const std::vector< TrackFindingCDC::WithWeight< const CKFToPXDState * > > &path)
 Constructor using a path.
 
void addToRecoTrack (RecoTrack &recoTrack) const
 Called in the exporter findlet for adding this to a already created reco track.
 
const std::vector< const SpacePoint * > & getHits () const
 Getter for the stored hits.
 
const RecoTrackgetSeed () const
 Getter for the stored seeds.
 
double getChi2 () const
 Getter for the chi2.
 
double getMaximalChi2 () const
 Getter for the maximal chi2 of all stored hits. NAN means there is no valid chi2 at all.
 
double getMinimalChi2 () const
 Getter for the minimal chi2 of all stored hits. NAN means there is no valid chi2 at all.
 
const ROOT::Math::XYZVector & getPosition () const
 Get the position this track should start at.
 
const ROOT::Math::XYZVector & getMomentum () const
 Get the momentum this track should start at (defined at the position)
 
short getCharge () const
 Set the charge of the track.
 
double getWeightSum () const
 Getter for the sum of weights.
 
const genfit::MeasuredStateOnPlane & getSeedMSoP () const
 Getter for the mSoP of the seed associated with this result.
 
const genfit::MeasuredStateOnPlane & getMSoP () const
 Getter for the mSoP associated with this result.
 

Private Types

using Super = CKFResult< RecoTrack, SpacePoint >
 The parent class.
 

Private Attributes

const RecoTrackm_seed
 The stored seed.
 
std::vector< const SpacePoint * > m_hits
 The stored hits.
 
double m_chi2
 The stored chi2.
 
double m_maximalChi2
 The maximal chi2 of the single states. NAN means there is no valid chi2 at all.
 
double m_minimalChi2
 The minimal chi2 of the single states NAN means there is no valid chi2 at all.
 
ROOT::Math::XYZVector m_trackPosition
 The position this track should start at.
 
ROOT::Math::XYZVector m_trackMomentum
 The momentum this track should start at (defined at the position)
 
short m_trackCharge
 The charge of the track.
 
TrackFindingCDC::Weight m_weightSum
 The stored sum of weights.
 
genfit::MeasuredStateOnPlane m_seedMSoP
 The measured state on plane, which was used from the seed.
 
genfit::MeasuredStateOnPlane m_mSoP
 The measured state on plane, which this result was initialized with.
 

Detailed Description

Specialized CKF Result for extrapolating into the PXD.

Definition at line 21 of file CKFToPXDResult.h.

Member Typedef Documentation

◆ Hit

using Hit = SpacePoint
inherited

Copy hit definition.

Definition at line 36 of file CKFResult.h.

◆ Seed

using Seed = RecoTrack
inherited

Copy seed definition.

Definition at line 34 of file CKFResult.h.

◆ Super

using Super = CKFResult<RecoTrack, SpacePoint>
private

The parent class.

Definition at line 23 of file CKFToPXDResult.h.

Constructor & Destructor Documentation

◆ CKFToPXDResult()

CKFToPXDResult ( const std::vector< TrackFindingCDC::WithWeight< const CKFToPXDState * > > &  path)
explicit

Constructor using a path.

Definition at line 19 of file CKFToPXDResult.cc.

19 :
20 Super(path, path.back()->getMeasuredStateOnPlane())
21{
22 B2ASSERT("Path should not be empty", not path.empty());
23}
CKFResult< RecoTrack, SpacePoint > Super
The parent class.

Member Function Documentation

◆ addToRecoTrack()

void addToRecoTrack ( RecoTrack recoTrack) const

Called in the exporter findlet for adding this to a already created reco track.

Definition at line 25 of file CKFToPXDResult.cc.

26{
27 unsigned int sortingParameter = 0;
28 for (const SpacePoint* spacePoint : TrackFindingCDC::reversedRange(getHits())) {
29 RelationVector<PXDCluster> relatedClusters = spacePoint->getRelationsTo<PXDCluster>();
30 for (const PXDCluster& cluster : relatedClusters) {
31 recoTrack.addPXDHit(&cluster, sortingParameter, Belle2::RecoHitInformation::c_SVDtoPXDCKF);
32 sortingParameter++;
33 }
34 }
35}
const std::vector< const SpacePoint * > & getHits() const
Getter for the stored hits.
Definition: CKFResult.h:75
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
Definition: PXDCluster.h:30
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.
Definition: RecoTrack.h:258
Class for type safe access to objects that are referred to in relations.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
Definition: SpacePoint.h:42

◆ getCharge()

short getCharge ( ) const
inlineinherited

Set the charge of the track.

Definition at line 117 of file CKFResult.h.

118 {
119 return m_trackCharge;
120 }
short m_trackCharge
The charge of the track.
Definition: CKFResult.h:156

◆ getChi2()

double getChi2 ( ) const
inlineinherited

Getter for the chi2.

Definition at line 87 of file CKFResult.h.

88 {
89 return m_chi2;
90 }

◆ getHits()

const std::vector< const SpacePoint * > & getHits ( ) const
inlineinherited

Getter for the stored hits.

Definition at line 75 of file CKFResult.h.

76 {
77 return m_hits;
78 }
std::vector< const SpacePoint * > m_hits
The stored hits.
Definition: CKFResult.h:144

◆ getMaximalChi2()

double getMaximalChi2 ( ) const
inlineinherited

Getter for the maximal chi2 of all stored hits. NAN means there is no valid chi2 at all.

Definition at line 93 of file CKFResult.h.

94 {
95 return m_maximalChi2;
96 }
double m_maximalChi2
The maximal chi2 of the single states. NAN means there is no valid chi2 at all.
Definition: CKFResult.h:148

◆ getMinimalChi2()

double getMinimalChi2 ( ) const
inlineinherited

Getter for the minimal chi2 of all stored hits. NAN means there is no valid chi2 at all.

Definition at line 99 of file CKFResult.h.

100 {
101 return m_minimalChi2;
102 }
double m_minimalChi2
The minimal chi2 of the single states NAN means there is no valid chi2 at all.
Definition: CKFResult.h:150

◆ getMomentum()

const ROOT::Math::XYZVector & getMomentum ( ) const
inlineinherited

Get the momentum this track should start at (defined at the position)

Definition at line 111 of file CKFResult.h.

112 {
113 return m_trackMomentum;
114 }
ROOT::Math::XYZVector m_trackMomentum
The momentum this track should start at (defined at the position)
Definition: CKFResult.h:154

◆ getMSoP()

const genfit::MeasuredStateOnPlane & getMSoP ( ) const
inlineinherited

Getter for the mSoP associated with this result.

Definition at line 135 of file CKFResult.h.

136 {
137 return m_mSoP;
138 }
genfit::MeasuredStateOnPlane m_mSoP
The measured state on plane, which this result was initialized with.
Definition: CKFResult.h:162

◆ getPosition()

const ROOT::Math::XYZVector & getPosition ( ) const
inlineinherited

Get the position this track should start at.

Definition at line 105 of file CKFResult.h.

106 {
107 return m_trackPosition;
108 }
ROOT::Math::XYZVector m_trackPosition
The position this track should start at.
Definition: CKFResult.h:152

◆ getSeed()

const RecoTrack * getSeed ( ) const
inlineinherited

Getter for the stored seeds.

Definition at line 81 of file CKFResult.h.

82 {
83 return m_seed;
84 }
const RecoTrack * m_seed
The stored seed.
Definition: CKFResult.h:142

◆ getSeedMSoP()

const genfit::MeasuredStateOnPlane & getSeedMSoP ( ) const
inlineinherited

Getter for the mSoP of the seed associated with this result.

Definition at line 129 of file CKFResult.h.

130 {
131 return m_seedMSoP;
132 }
genfit::MeasuredStateOnPlane m_seedMSoP
The measured state on plane, which was used from the seed.
Definition: CKFResult.h:160

◆ getWeightSum()

double getWeightSum ( ) const
inlineinherited

Getter for the sum of weights.

Definition at line 123 of file CKFResult.h.

124 {
125 return m_weightSum;
126 }
TrackFindingCDC::Weight m_weightSum
The stored sum of weights.
Definition: CKFResult.h:158

Member Data Documentation

◆ m_chi2

double m_chi2
privateinherited

The stored chi2.

Definition at line 146 of file CKFResult.h.

◆ m_hits

std::vector<const SpacePoint *> m_hits
privateinherited

The stored hits.

Definition at line 144 of file CKFResult.h.

◆ m_maximalChi2

double m_maximalChi2
privateinherited

The maximal chi2 of the single states. NAN means there is no valid chi2 at all.

Definition at line 148 of file CKFResult.h.

◆ m_minimalChi2

double m_minimalChi2
privateinherited

The minimal chi2 of the single states NAN means there is no valid chi2 at all.

Definition at line 150 of file CKFResult.h.

◆ m_mSoP

genfit::MeasuredStateOnPlane m_mSoP
privateinherited

The measured state on plane, which this result was initialized with.

Definition at line 162 of file CKFResult.h.

◆ m_seed

const RecoTrack * m_seed
privateinherited

The stored seed.

Definition at line 142 of file CKFResult.h.

◆ m_seedMSoP

genfit::MeasuredStateOnPlane m_seedMSoP
privateinherited

The measured state on plane, which was used from the seed.

Definition at line 160 of file CKFResult.h.

◆ m_trackCharge

short m_trackCharge
privateinherited

The charge of the track.

Definition at line 156 of file CKFResult.h.

◆ m_trackMomentum

ROOT::Math::XYZVector m_trackMomentum
privateinherited

The momentum this track should start at (defined at the position)

Definition at line 154 of file CKFResult.h.

◆ m_trackPosition

ROOT::Math::XYZVector m_trackPosition
privateinherited

The position this track should start at.

Definition at line 152 of file CKFResult.h.

◆ m_weightSum

TrackFindingCDC::Weight m_weightSum
privateinherited

The stored sum of weights.

Definition at line 158 of file CKFResult.h.


The documentation for this class was generated from the following files: