10#include <tracking/trackFindingCDC/numerics/WithWeight.h>
12#include <genfit/MeasuredStateOnPlane.h>
13#include <Math/Vector3D.h>
29 template <
class ASeed,
class AHit>
39 template <
class AState>
45 m_seedMSoP(path.front()->getMeasuredStateOnPlane()),
48 m_hits.reserve(path.size());
51 const Hit* hit = state->getHit();
56 if (state->isFitted()) {
57 const double stateChi2 = state->getChi2();
75 const std::vector<const AHit*>&
getHits()
const
135 const genfit::MeasuredStateOnPlane&
getMSoP()
const
Object for temporary storage of a CKF tree search result.
double getMaximalChi2() const
Getter for the maximal chi2 of all stored hits. NAN means there is no valid chi2 at all.
AHit Hit
Copy hit definition.
CKFResult(const std::vector< TrackFindingCDC::WithWeight< const AState * > > &path, const genfit::MeasuredStateOnPlane &mSoP)
Constructor from the path of the result and the final mSoP, which defines the track position of the r...
genfit::MeasuredStateOnPlane m_mSoP
The measured state on plane, which this result was initialized with.
const ROOT::Math::XYZVector & getPosition() const
Get the position this track should start at.
short getCharge() const
Set the charge of the track.
const ASeed * getSeed() const
Getter for the stored seeds.
double getMinimalChi2() const
Getter for the minimal chi2 of all stored hits. NAN means there is no valid chi2 at all.
ROOT::Math::XYZVector m_trackMomentum
The momentum this track should start at (defined at the position)
double getChi2() const
Getter for the chi2.
std::vector< const AHit * > m_hits
The stored hits.
TrackFindingCDC::Weight m_weightSum
The stored sum of weights.
short m_trackCharge
The charge of the track.
double m_chi2
The stored chi2.
const genfit::MeasuredStateOnPlane & getMSoP() const
Getter for the mSoP associated with this result.
const std::vector< const AHit * > & getHits() const
Getter for the stored hits.
const ASeed * m_seed
The stored seed.
ASeed Seed
Copy seed definition.
double getWeightSum() const
Getter for the sum of weights.
double m_maximalChi2
The maximal 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.
genfit::MeasuredStateOnPlane m_seedMSoP
The measured state on plane, which was used from the seed.
double m_minimalChi2
The minimal chi2 of the single states NAN means there is no valid chi2 at all.
const genfit::MeasuredStateOnPlane & getSeedMSoP() const
Getter for the mSoP of the seed associated with this result.
const ROOT::Math::XYZVector & getMomentum() const
Get the momentum this track should start at (defined at the position)
A mixin class to attach a weight to an object.
Abstract base class for different kinds of events.